bbcodeparse() & forcing a link color

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sde
    Member
    • May 2002
    • 47

    bbcodeparse() & forcing a link color

    I want to be able to make the link color of posts different than the link color of the rest of the forum. This is because the rest of my forum uses a dark color which is hard to distinguish against the normal text of the forum.

    i'm looking in the bbcoddparse() function in functions.php and trying to edit the part that parses urls with no success.

    to me this looks like the area i need to address. i've tried placing <font color=#ffcc00> tags in between the <a href> </a> tags, but no effect took place.
    PHP Code:
    $replacearray = array(
             
    "<ol type=\"[url=file://5]\\5\">\\7</ol[/url]>",
             
    "<ul>\\4</ul>",
             
    "<li>",
             
    "<a href=""\"[url=http://www.6]http://www.\\6\[/url]" target=\"_blank\">\\8</a>",
             
    "<a href=""\"[url=file://5]\\5\[/url]" target=\"_blank\">\\7</a>",
             
    "<a href=""\"[url=http://www.5]http://www.\\5\[/url]" target=\"_blank\">\\5</a>",
             
    "<a href=""\"[url=file://4]\\4\[/url]" target=\"_blank\">\\4</a>",
             
    "</normalfont><blockquote><pre><smallfont>code:</smallfont><hr>\\5<hr></pre></blockquote><normalfont>",
             
    "</normalfont><blockquote><pre><smallfont>code:</smallfont><hr>\\5<hr></pre></blockquote><normalfont>",
             
    "java script:",
             
    "about :",
             
    "vbscript :"
            
    ); 
    there must be another place i have to edit because when i view source , my edits do not show up in the html.

    has anyone successfully done this or know how?

    thanks in advance for any insight.
    Last edited by sde; Wed 5 Mar '03, 12:35pm.
  • sde
    Member
    • May 2002
    • 47

    #2
    err .. sometimes i think too hard .. this code at the end of the function fixes it.
    PHP Code:
    $bbcode=str_replace("<a href","<a class=post href",$bbcode); 
    then just 'modify' the style in the control panel.

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...