PDA

View Full Version : vB IF Statement in Newthread Template


Black Snow
03-20-2013, 08:04 PM
Hi,

I want to show a notification in the "newthread" template. I have it all set up BUT I only want it to show in a specific forum.

I have tried this:
<vb:if condition="$forum[forumid] == 37">
But it doesn't seem to work when creating a new thread. I was going to use this in an IF statement but it would then show in all forums:
THIS_SCRIPT = "newthread"
Is there a way to get it to show ONLY in "X" forum(s) in the "newthread" template?

kh99
03-21-2013, 12:36 AM
Try using $forumid instead of $forum[forumid]. There's no need to check THIS_SCRIPT if you're putting it in the newthread template since it's only used in one script anyway.

Black Snow
03-21-2013, 05:05 PM
Perfect, thank you