XF 2.2 Navigation Secondary User Groups

jerrydoe

Member
Hello,

I need to show a navigation tab to only certain groups. In the navigation area I am doing this:
$xf.visitor.isMemberOf(1) <where group one is the group to show it to. This works.

BUT

The problem is that all the users are in this group and I am using the "secondary user groups" check boxes to determine user groups. How can I define who sees the menu tab based upon second user groups?

Thanks2022-02-25_11-48-55.jpg
 

Brogan

XenForo moderator
Staff member
You enter the condition in the field for the nav entry.

1645816543329.png

Use the ID of the group you want to see the tab - in your case VIP-MEMBER.
 
Top