The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
str_replace code?
I got this code in my admin file, however I need to add a str_replace before the data is posted. The str_replace code I'm trying to add is below, but I'm having problems on where it would actually go.
PHP Code:
PHP Code:
|
#2
|
||||
|
||||
1./ NEVER use addslashes, it does a bad job.
2./ You need to change your variables in your query to match those in your replaces. 3./ You have 2 un-closed if's and one un-closed for statement. |
#3
|
||||
|
||||
The trouble is the code was written by a co-author of the modification - hes since moved on to new projects not associated with vbulletin. I wrote the flash files, and re-wrote some of the PHP code, but got totally lost with the str-replace code in the admin file, so I got a modification throwing up errors that I'm not sure how to fix.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|