SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Pandora Tipem's Avatar
    Join Date
    Feb 2006
    Posts
    450
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Mimicing BBCode in my CMS

    Hi,

    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.,

    Code:
    <color=red>this is red noob</color>
    
    -- OR --
    
    <color=#FF0000>red, also, noob!</color>
    (triangular brackets used to demonstrate point)

    Thanks
    Tipem no fancy sig, yup
    Need Neopets Help? Try Neopets
    fun adoptable eggs

  2. #2
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,807
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  3. #3
    Pandora Tipem's Avatar
    Join Date
    Feb 2006
    Posts
    450
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks! Found what I was looking for!!
    Tipem no fancy sig, yup
    Need Neopets Help? Try Neopets
    fun adoptable eggs


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •