Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Groups to see other links in navbar?
#1
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.
Reply
#2
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>
[Image: ZbrcFs]

[Image: xWEF8R]

Reply
#3
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)