Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 2 Months, 3 Weeks, 4 Days ago Have link be for certain groups
#1
Solved: 2 Months, 3 Weeks, 4 Days ago
I have created a new link that when clicked it will bring users somewhere on my site, but i only want it to show if the user is apart of a certain group. (Just like how mod or admin cp's will only show if you are mod or admin).

Not sure if this will help but the group id (or what i think gid stands for) is 8 [ gid=8 ].

In the attachment below the link "Premium Control Panel" should only be access by the group stated above and staff.

Any help is appreciated thanks.
Reply
#2
Solved: 2 Months, 3 Weeks, 4 Days ago
You can use the template conditional, inside your template, to achieve the desired results.

<if $GLOBALS['mybb']->user['usergroup'] == 8 then>
this test will only be seen by usergroup 8 Smile
</if>

(if you are using the template conditional plugin)
Hey man, what's up?
Reply
#3
Solved: 2 Months, 3 Weeks, 4 Days ago
(09-10-2019, 03:22 AM)Michael2014 Wrote: You can use the template conditional, inside your template, to achieve the desired results.

<if $GLOBALS['mybb']->user['usergroup'] == 8 then>
this test will only be seen by usergroup 8 Smile
</if>

(if you are using the template conditional plugin)
Thank you so much!
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)