The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
HELP PLEASE!! Help with preg_replace
Hello all. I'm working on the following replacement routine in my PHP Include end (no, I'm not allowed to hack the bbcodeparser)
I'm getting this error Parse error: parse error, expecting `'('' in /web/boards/includes/functions.php(1932) : eval()'d code(36) : regexp code on line 1 Fatal error: Failed evaluating code: str_ireplace(Array, Array, 'WBURG'); in /web/boards/includes/functions.php(1932) : eval()'d code on line 36 here's the code PHP Code:
|
#2
|
||||
|
||||
change
PHP Code:
PHP Code:
|
#3
|
||||
|
||||
Xenon, you're change yielded this parse error
Code:
Parse error: parse error, expecting `'('' in /web/boards/includes/functions.php(1932) : eval()'d code(36) : regexp code on line 1 Fatal error: Failed evaluating code: str_ireplace(Array, Array, ''); in /web/boards/includes/functions.php(1932) : eval()'d code on line 3 |
#4
|
||||
|
||||
Ok, this works - sorta
PHP Code:
This is pissing me off REAL bad. |
#5
|
||||
|
||||
I'm almost there, but I have one remaining problem. Here's my code
PHP Code:
How do I stop it from searching through the string twice? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|