The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Conditional statement for Primary or Secondary Usergroup selection?
I have the following code for a usergroup conditional, but it only seems to work for primary usergroups. How can I have it look for primary or secondary?
HTML Code:
<!-- START Side Tab --> <vb:if condition="in_array($bbuserinfo[usergroupid], array(6,13,14))"> <a id="floating_link" href="http://sitename.com" target="_blank">Click</a> </vb:if> <!-- END Side Tab --> (Conditional codes seem to have changed a lot since vB4x) |
#2
|
|||
|
|||
As an inelegant solution, I just added another conditional: (using membergroupids instead of usergroupid)
HTML Code:
<!-- START Side Tab Secondary --> <vb:if condition="in_array($bbuserinfo[membergroupids], array(13))"> <a id="floating_link" href="http://somethingorother.com" target="_blank">Click Me</a> </vb:if> <!-- END Side Tab --> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|