MyBB Community Forums
[How To?] Group only navigation bar - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: [How To?] Group only navigation bar (/thread-224157.html)



Group only navigation bar - DuckyQ - 2019-08-05

Hey folks,

Never signed up and always been a long time lurker and now I need your help. I am wanting to add a link onto my navigation bar but I want only members in Administrator group to see it. Is this possible?

Thanks
ducky


RE: Group only navigation bar - iAndrew - 2019-08-05

You could use template conditionals.
https://community.mybb.com/thread-31860.html

Should be
<if $GLOBALS['mybb']->user['usergroup'] == 1 then>
Your link here
</if>

Download it from here
http://mybbhacks.zingaburga.com/showthread.php?tid=464


RE: Group only navigation bar - DuckyQ - 2019-08-06

Perfect! thanks Andrew