![]() |
quick template question
I'm coding an add-on for vbulletin at the moment, but stuck on something really basic. (typical... all the tricky bits are working).
I just need to check whether a string contains a certain value. I've already pulled an additional variable in on showthread.php ($userbadge) and just want to do the equivalent of PHP Code:
Just not very familiar with vbulletin templates, so a pointer at this stage would be really helpful. from what I have managed to find out, I think that conditions only let you apply very limited PHP functions. One solution would be to add to the functions that can be used - can this be done? Thanks. |
1 Attachment(s)
It would be
Code:
<if condition="stristr($post['haystack'],'needle')"></if> http://www.vbulletin.com/docs/html/m...n_conditionals You can add to the list of allowed functions in a plugin, like in the attached example, however, it's best to first see if you can do the same thing with an already allowed function. |
All times are GMT. The time now is 05:31 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|