Log in

View Full Version : conditions


FreshFroot
08-30-2007, 06:37 AM
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.

Dismounted
08-30-2007, 11:41 AM
<if condition="$forum['forumid'] == 12">

FreshFroot
08-30-2007, 09:17 PM
<if condition="$forum['forumid'] == 12">
thanks for the help, appreciate it :D

*slaps himself for not knowing how easy it could be*

EDIT: hmmm that doesn't seem to work.. not sure why??

Kirk Y
08-30-2007, 09:41 PM
Because it's $thread['forumid'] in the threadbit template.

FreshFroot
08-31-2007, 12:28 AM
ah yes.. I forgot about that, you need $post = postbit, $forum = forumhome, $thread = threadbit.

Thanks :D I'll try it out.