Making one upper link bar link member group specific?

Started by Gargoyle, November 30, 2013, 07:21:02 PM

Previous topic - Next topic

Gargoyle

I want to add a link to the upper link bar but make it for a specific membergroup. The membergroup will not be a primary group. Im gonna dig around the code for a bit...

Thanks for any help!

Arantor

in_array($group_id, $user_info['groups']) will work... $user_info['groups'] contains all the groups the current user is in at the present time.
Holder of controversial views, all of which my own.


Gargoyle

So if I go like this

if in_array($group_id, $user_info['groups']) == 21

I could make it a specific group?

;D

Arantor

Not like that, no

But if you did if(in_array(21, $user_info['groups'])) it might work ;)
Holder of controversial views, all of which my own.


Gargoyle

Ah... Better... Thanks a ton!!! Saved me about 2 days work!! LOL!!!

Thanks a ton! I will give it a shot, but I am sure it'll work.

Advertisement: