![]() |
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. |
Code:
<if condition="$forum['forumid'] == 12"> |
Quote:
*slaps himself for not knowing how easy it could be* EDIT: hmmm that doesn't seem to work.. not sure why?? |
Because it's $thread['forumid'] in the threadbit template.
|
ah yes.. I forgot about that, you need $post = postbit, $forum = forumhome, $thread = threadbit.
Thanks :D I'll try it out. |
All times are GMT. The time now is 10:29 PM. |
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:
|