IPB shoutbox help

Discussion in 'Forum Management' started by killer12345, Jan 7, 2011.

  1. #1
    Need to change this code so it doesn't apply to the shoutbox.
    		if ( preg_match( '#\[\w#', $matches[2] ) )
    		{
    			$wFormatting = $matches[2];
    			$matches[2]  = $this->stripAllTags( $matches[2] );
    
                return $this->parseBbcode(  '[code]' . $matches[2] . '[/code]', 'display', 'code' );
            }
            else
            {
                return $this->parseBbcode( $matches[1] . '[code]' . $matches[2] . '[/code]' . $_extra, 'display', 'code' ); 
    		}
    	}
    PHP:
    If is shoutbox:
    		if ( preg_match( '#\[\w#', $matches[2] ) )
    		{
    			$wFormatting = $matches[2];
    			$matches[2]  = $this->stripAllTags( $matches[2] );
    
    			return $this->parseBbcode( $matches[1] . '[url="' . $matches[2] . '"]' . $wFormatting . '[/url]' . $_extra, 'display', 'url' );
    		}
    		else
    		{
    			return $this->parseBbcode( $matches[1] . '[url]' . $matches[2] . '[/url]' . $_extra, 'display', 'url' );
    		}
    	}
    PHP:

     
    killer12345, Jan 7, 2011 IP