MyBB Community Forums

Full Version: Groups to see other links in navbar?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello.

How could I add a link that would only be visible to a group that I assign?

For example:

A normal user would see
------------
Home | Forums | Help | Search

------------

A group that I would like to add would see
------------
Home | Forums | Help | Search | Staff




Thanks, 
Zane.
Yes, you can do it with PHP in Templates plugin.
And then in templates you can use this code:
<if $mybb->user['usergroup'] == 2 then>
Code visible only to users in usergroup 2
</if>
What template would I edit? The header template correct?

- and how would I determine the number of the group?
- should I add <?php ?
- where would I place the link?

Figured it all out. Thanks.