LatheJockey81
Technical User
I've successfully used str_replace(blah,blah,blah) to parse "tags" in news article posts for the website I'm working on( But now I need to take the tags a step further... This clan(Yeah... I'm in a gaming clan) has started divisions... and the divisions have their own colors. I made a function to write up the colors based on the division name, but the member's division is stored in the member database.
I made the main(news) page replace the tags [cn] and [/cn] with calls to the function to properly color the name between the tags... but it has no way of knowing HOW to color it.
I want to pull the string from between the tags and check it against the member database to determine what colors to replace the string with, and then do exactly that.
Is there a command I'm overlooking?
I made the main(news) page replace the tags [cn] and [/cn] with calls to the function to properly color the name between the tags... but it has no way of knowing HOW to color it.
I want to pull the string from between the tags and check it against the member database to determine what colors to replace the string with, and then do exactly that.
Is there a command I'm overlooking?