1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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:

    SEMrush
     
    killer12345, Jan 7, 2011 IP
    SEMrush