The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
str_replace/eregi_replace in msg // looped.
Since Xenon and NTLDR helped me with the SQL searching problem (again, thankies much guys. ) I've been attempting to play with foreach and while.
I'm already aware of eregi_replace and str_replace and they work beautifully, however for the life of me I can't seem to get this replacement loop down. I'd like for $message and str_replace (or eregi_replace) with a SQL table called $cc to filter and output the loop. The $cc table contains an auto-incrementing field called tagid. The term to be searched for in $message is $cc[tags]. It's replacement is $cc[tagsname]. Again, it's not the eregi or str_replace that's killing me.. this example works: PHP Code:
Any suggestions? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|