The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Conditional question
There's something wrong here.
How should I correct it ? Code:
<if condition="$bbuserinfo[usergroupid]==6 || ($permissions['linkspermissions'] & CANEDIT) || ($permissions['linkspermissions'] & CANDEL)"> |
#2
|
|||
|
|||
i don't think you can use a bitwise AND (&) in a template.
|
#3
|
||||
|
||||
Actually I think I got it solved, probably a missing closing </if> tag somewhere
Marco, I think it can be done |
#4
|
||||
|
||||
well not to hijack the thread, but i have a question about array's,
now this is the normal if conditional I use in templates to select multiple usergroups. HTML Code:
<if conditional="$bbuserinfo[usergroupid] == X OR $bbuserinfo[usergroupid] == Y"> Some code here </if> Thanks. Also i though PHP was only allowed to be used in the phpinclude_ templates. Is this not true? |
#5
|
||||
|
||||
is_member_of , or in_array, perhaps ?
|
#6
|
||||
|
||||
Quote:
HTML Code:
<if condition="is_member_of($usergroupid,X,Y,Z)">
that right? Still a novice coder. Edit, no spaces or it complains, but that works. |
#7
|
||||
|
||||
Quote:
Quote:
Or just refer here |
#8
|
||||
|
||||
Quote:
thanks. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|