The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Forum If Condition How?
How would i create a piece of html that would show only in 2 forums (ids) that would show a message? im no good at the conditionals.. is theer a list of them etc?
|
#2
|
||||
|
||||
Code:
<if condition="in_array($forum['forumid'], array(X,Y))"> text here <else /> other text </if> |
#3
|
||||
|
||||
Use this instead:
Code:
<if condition="in_array($foruminfo['forumid'], array(X,Y))"> It works! </if> |
#4
|
||||
|
||||
Can this be used to restrict certain user groups from seeing a link on the navbar by using $bbuserinfo['membergroupids']? If so, how? The code I tried did not work.
Code:
<if condition="in_array($bbuserinfo['membergroupids'], array('5,6,7,10')"> <td class="vbmenu_control"><a href="../maillogin.html">WebMail</a> </if> |
#5
|
||||
|
||||
Can anyone help on this?
|
#6
|
|||
|
|||
i would think that would work.. why not just try it?
|
#7
|
|||
|
|||
I use this for the nav bar
Code:
<if condition="!$show['guest']">Link info here </if> |
#8
|
||||
|
||||
Quote:
Can you comma seperate the usergroups if you have more than one? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|