Announcement

Collapse
No announcement yet.

What is function to check if user is member of a usergroup?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • What is function to check if user is member of a usergroup?

    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.
    Larry Eitel - Administrator & Webmaster
    NoBlood.org
    Transfusion Alternatives and Blood Management

  • #2
    Originally posted by leitel
    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

    Comment


    • #3
      Originally posted by Zachery
      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?
      Larry Eitel - Administrator & Webmaster
      NoBlood.org
      Transfusion Alternatives and Blood Management

      Comment


      • #4
        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>

        Comment


        • #5
          Thanks!
          Larry Eitel - Administrator & Webmaster
          NoBlood.org
          Transfusion Alternatives and Blood Management

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...
          X