Bbc Colour Code Need

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Bbc Colour Code Need

    need bbc colour code function.

    ex-[colour=red]RED[/colour]
    <div align="center">My Web Community ......... http://pahasara.net



    </div>

    #2
    Code:
    $text = preg_replace("/\[color\=(.*?)\](.*?)\[\/color\]/i","<font color=\"\\1\">\\2</font>", $text);

    Comment


      #3
      Code:
      $text = preg_replace("/\[color\=(.*?)\](.*?)\[\/color\]/i","<font color=\"\\1\">\\2</font>", $text);
      [/b]

      thankz bro.
      <div align="center">My Web Community ......... http://pahasara.net



      </div>

      Comment


        #4
        wots the bbcode for users? anyone know
        Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

        <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

        Comment


          #5
          $text = preg_replace("/\[color\=(.*?)\](.*?)\[\/color\]/i","<div style=\"color:"\\1\"></div>, $text);
          well dont know if it will work, but div much better than font

          Click here!!!

          Comment

          Working...
          X