![]() |
Setting a Condition in Vbulletin
I have a conditional statement as follows:
<if condition="$show['custom']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/custom.gif" alt="$vbphrase[custom]" /> </if> Where and how do I set the condition "$show['custom']" ? Do I just put the code $show['custom'] somewhere in the post that this is a condition for? is there a Set condition command? Thank you for the help. |
Thanks again to all who helped.
|
I'd like to know this too.
I already posted something similar like this on vbulletin.com, i'll let you know if it comes up with something useful. |
Set it in a plugin. You'll have to use the right plugin, but in most basic cases, "global_start" is the one you want.
PHP Code:
Code:
<if condition="$show['custom'] = true"> |
Quote:
|
Quote:
|
Thx guys.
How should i create a plugin if i want to do this? I'm trying to create a new condition so i can show an image when the img tag is used on forumdisplay similar like the trashcan (when a post is soft deleted) and paperclip (attachments). I know that i need to edit the threadbit template but i don't know how to use a condition or how to create a custom one to show a small image when the img tag is used. See this for an example of what i wrote for my phpBB forum. Notice the camera's, they only show when the img tag is used in the topic. Any ideas? Thx in advance. |
All times are GMT. The time now is 09:23 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:
|