PDA

View Full Version : How to get forumid and use a conditional


Black Snow
09-09-2014, 09:37 AM
Hi again,

I want to show some text in a specific forum (which atm is 132). I have used the conditional:
<vb:if condition="$forumid == 132"><strong style="color:#FF0000;">This thread is archived!</strong><hr /></vb:if>

When I view the thread in this forum, it doesn't show the text from the conditional. Anyone have any ideas?

ozzy47
09-09-2014, 09:45 AM
Try this.

<vb:if condition="$forum[forumid] == 132"><strong style="color:#FF0000;">This thread is archived!</strong><hr /></vb:if>

Or this.

<vb:if condition="$GLOBALS[forumid] == 132"><strong style="color:#FF0000;">This thread is archived!</strong><hr /></vb:if>

You can find the template conditional article here, https://vborg.vbsupport.ru/showthread.php?t=231525

Black Snow
09-09-2014, 09:50 AM
I did use your first code a while back but got asked to change it and it worked. See here: https://vborg.vbsupport.ru/showthread.php?t=296345

I will try it again and see what happens.

--------------- Added 1410260114 at 1410260114 ---------------

Thanks ozzy47, the GLOBALS code worked. Thanks mate.

Can't like your post as I need to like others first lol.