Results 1 to 3 of 3
Thread: Mimicing BBCode in my CMS
Jun 27, 2007, 11:24 #1
Mimicing BBCode in my CMS
I'm making a BBcode for my content management system. What I want to do is to add the [color] tag... does anybody know the regex/preg_replace stuff to do this?
Basically I want to be able to mimic the [color] tag used by forums. In the color tag I want to be able to use a word or a hexadecimal... e.g.,
<color=red>this is red noob</color> -- OR -- <color=#FF0000>red, also, noob!</color>
Jun 27, 2007, 11:58 #2
- Join Date
- Aug 2004
- Manchester UK
- 127 Post(s)
- 3 Thread(s)
Here are a few things to look at for you:
should help you in the right directionMike Swiffin - Community Team Advisor
The 2013 SitePoint Awards - Nominate your heroes now!
Only a woman can read between the lines of a one word answer.....
Jun 27, 2007, 12:00 #3