![]() |
<if> statement based on forum ID?
Is it possible to do an if statement based on forum ID?
I want to add an image to postbit dependent on the forum the thread was posted in. So basically Id like it to be IF thread is in Forum 1 Use 1.gif IF thread is in Forum 2 Use 2.jpg Else use 3.gif Can anyone help me out? Thanks. |
HTML Code:
<if condition="$forumid==1"> $forum[forumid] $foruminfo[forumid] $thread[forumid] $threadinfo[forumid] $GLOBAL[forumid] |
Display Information On a Per Forum Basis
-------------------------------------------------- This conditional allows you to display information on a per forum basis. This can be helpful if you wish to display different advertisements depending on what forum that the user is in. You would simply replace X with the forum id that you wish the information to appear in. HTML Code: <if condition="$forum[forumid] == X"></if> and on the other hand you can use the ! to do the opposite and display the information in every forum but the id you list HTML Code: <if condition="$forum[forumid] != X"></if> or if you have multiple forums you wish to include something with you can use an array such as this HTML Code: <if condition="in_array($forum['forumid'], array(1,2,3,6))"></if> I found this information on vBulletinSetup, thread: http://forum.vbulletinsetup.com/f18/...list-2185.html ~OZ |
All times are GMT. The time now is 01:54 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:
|