View Full Version : What is function to check if user is member of a usergroup?
leitel
Tue 27th Apr '04, 12:36am
What is function to check if user is member of a usergroup?
IsMemberOf or something. Can't find. :(
While on the subject, is there a way to check if a user has access to a forum which would INCLUDE ALL usergroups of which a user may be a member.
Zachery
Tue 27th Apr '04, 12:58am
What is function to check if user is member of a usergroup?
IsMemberOf or something. Can't find. :(
While on the subject, is there a way to check if a user has access to a forum which would INCLUDE ALL usergroups of which a user may be a member.
Do you want to check if their part of a secondary usergroup or a full usergroup
leitel
Tue 27th Apr '04, 1:21am
Do you want to check if their part of a secondary usergroup or a full usergroup
I suppose either way. Normally though, I make all primary as Registered except for myself as admin.
What I lost was the conditional statement something like: <if condition="<user[userid] is member of usergroup>">
Maybe this flag needs to be set in php?
Zachery
Tue 27th Apr '04, 1:23am
use <if condition="$bbuserinfo[usergroupid] == X"> display somthing for that pirmary usergroup </if>
or
<if condition="is_member_of($bbuserinfo, X)"> Show if they are either in the primary usergroup or their part of the member group </if>
:)
leitel
Tue 27th Apr '04, 12:35pm
Thanks! :)
vBulletin® v3.8.0 Release Candidate 2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.