The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Conditional based on strstr()
what's wrong with this conditional i thought i was being quite creative?
PHP Code:
oh and i read php.net before i came here too |
#2
|
|||
|
|||
Quote:
Back to your problem. I think your approach is not the best. What if the message is different (strstr would be false), it would not include the message. Why not just a plain and simple: PHP Code:
|
#3
|
|||
|
|||
I'd have to agree and even submit that if that user passes anything in that var, assume it to be a change and use it. A very simple if($personal_message). Why ask for custom input if you are going to second guess them?
If they just ammend the message with the your above code, the logic would ignore it if I understand it correctly. Do sanity checks on it if passed in like globalize at least, but not second guess their customization. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|