View Full Version : Quick Conditional Question
ChrisBaktis
03-25-2005, 11:58 PM
Im trying to base a conditional off of a members Additional User group - can this be done with the same conditional as the main usergroup?
<if condition="$bbuserinfo[usergroupid]==23">
Group 23 is the the members additional group. Im going to assume the usergroupid is not the same but dont know what it is.
Chris
Im trying to base a conditional off of a members Additional User group - can this be done with the same conditional as the main usergroup?
<if condition="$bbuserinfo[usergroupid]==23">
Group 23 is the the members additional group. Im going to assume the usergroupid is not the same but dont know what it is.
Chris
Use this:
<if condition="is_member_of($bbuserinfo, 23)">
That will check primary and secondary groups :)
ChrisBaktis
03-26-2005, 12:32 AM
I used the following expecting 'test' to show for only one member in the post bit:
<if condition="is_member_of($bbuserinfo, 23)">test</if>
But this didnt show 'test' for anyone.
ChrisBaktis
03-27-2005, 01:49 AM
I cant get any conditionals to work (one to do with user groups) in the post bit.
tnguy3n
03-27-2005, 04:02 AM
I cant get any conditionals to work (one to do with user groups) in the post bit.
maybe you're not in usergroupid 23, try 6 which is default admin group
ChrisBaktis
03-27-2005, 11:39 AM
The main point was that the <if condition="is_member_of($bbuserinfo, 23)">test</if> code was not working for the member I wanted it to work for - so I used the normal user group ID conditional with the primary usergroup and it didnt work either.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.