![]() |
Conditional question
There's something wrong here.
How should I correct it ? :) Code:
<if condition="$bbuserinfo[usergroupid]==6 || ($permissions['linkspermissions'] & CANEDIT) || ($permissions['linkspermissions'] & CANDEL)"> |
i don't think you can use a bitwise AND (&) in a template.
|
Actually I think I got it solved, probably a missing closing </if> tag somewhere :D
Marco, I think it can be done :) |
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"> Thanks. Also i though PHP was only allowed to be used in the phpinclude_ templates. Is this not true? |
is_member_of , or in_array, perhaps ? :)
|
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. :) |
Quote:
:) Quote:
Or just refer here |
Quote:
thanks. |
All times are GMT. The time now is 10:04 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|