The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
multiple id's for if condition="$bbuserinfo
I have set a conditional for a private menu section on my vbadvanced site using this code:
Code:
<if condition="$bbuserinfo[usergroupid]==6"> So if I try 6,14 I get this error: Code:
The following error occurred when attempting to evaluate this template: Parse error: parse error, unexpected ',' in /home/archimed/public_html/redpill/includes/adminfunctions_template.php(3096) : eval()'d code on line 8 This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish. I'm obviously missing something small here, but I can't seem to find it. |
#2
|
||||
|
||||
There is a hack that will let you use a list of usergroups. It takes a minute to install and is a joy to have.
https://vborg.vbsupport.ru/showthrea...t=is_member_of |
#3
|
||||
|
||||
You can always make use of arrays and in_array
|
#4
|
||||
|
||||
Quote:
|
#5
|
|||
|
|||
Quote:
|
#6
|
||||
|
||||
Quote:
works fine |
#7
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|