The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
conditions
I just had a question about using a if condition. I'm wanting to show a certain varible in my threadbit ONLY if it's one forum id.
eg. I want it to show a variable $myvariable, when say forum id = 12. I'm wondering on how I can do this best? do i have to use the if condition statement, or can I use <if forumid =12> or I assume I may have to create a plugin for the if condition to be true? Hopefully someone can push me in the correct spot. Thanks. |
#2
|
||||
|
||||
Code:
<if condition="$forum['forumid'] == 12"> |
#3
|
||||
|
||||
thanks for the help, appreciate it
*slaps himself for not knowing how easy it could be* EDIT: hmmm that doesn't seem to work.. not sure why?? |
#4
|
||||
|
||||
Because it's $thread['forumid'] in the threadbit template.
|
#5
|
||||
|
||||
ah yes.. I forgot about that, you need $post = postbit, $forum = forumhome, $thread = threadbit.
Thanks I'll try it out. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|