The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
what's wrong with this conditional i thought i was being quite creative?
PHP Code:
i'm not sure if it's me trying to use the wrong function or just bad coding?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. |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|