The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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. |
#2
|
||||
|
||||
![]() HTML Code:
<if condition="$forumid==1"> Use 1.gif <else /> <if condition="$forumid==2"> Use 2.jpg <else /> use 3.gif </if> </if> $forum[forumid] $foruminfo[forumid] $thread[forumid] $threadinfo[forumid] $GLOBAL[forumid] |
#3
|
||||
|
||||
![]()
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 |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|