Announcement

Collapse
No announcement yet.

Hide Top Button To Certain Groups

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

  • Jake Bunce
    replied
    Originally posted by Diva
    Hi Jake! Thank you for responding.

    So if it's for different groups then I do this:

    Code:
    <if condition="!is_member_of($bbuserinfo, X, X, X)">
    
    BUTTON CODE HERE
    
    </if>
    As Zach said, you need to use multiple calls.

    But the condition I posted says, "If the user is not a member of that one group, thereby making the condition true for all other groups." So you shouldn't need multiple usergroupids.

    Leave a comment:


  • Zachery
    replied
    Not quite, You would need to either need to run multiple checks or change the checking abit. If you want to check for multiple usergroups you should only show it to the ones who you need to see it, instead of hiding it from the one

    <if condition="is_member_of($bbuserinfo, X) OR is_member_of($bbuserinfo, Y) OR is_member_of($bbuserinfo, Z)">

    Leave a comment:


  • Diva
    replied
    Hi Jake! Thank you for responding.

    So if it's for different groups then I do this:

    Code:
    <if condition="!is_member_of($bbuserinfo, X, X, X)">
    
    BUTTON CODE HERE
    
    </if>

    Leave a comment:


  • Jake Bunce
    replied
    This should work:

    Code:
    <if condition="!is_member_of($bbuserinfo, X)">
    
    BUTTON CODE HERE
    
    </if>
    Where X is the usergroupid of the Registered group.

    Leave a comment:


  • Diva
    started a topic Hide Top Button To Certain Groups

    Hide Top Button To Certain Groups

    Hi. I am trying to make a top button only visible to certain groups. Here is how I have the usergroups:

    Registered
    Members (custom group that can see Members forum after 50 posts)
    Moderators
    Admins

    What I want is for the Members, Moderators and Admins to see certain top buttons.

    I just can't figure out how to make the condition. Any help is very appreciated.
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X