Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

how do i make it so certain groups can't view certain links on nav bar?

Aloittaja ruaduck, toukokuu 21, 2008, 01:00:33 IP

« edellinen - seuraava »

ruaduck

I have a bunch of links up at the nav bar on the top of the page and i was wondering how i can make it so that people who are just regular members or in certain member groups can't view that link?

sawz

i'm not sure if you can do it for certain groups, but you can hide links from non members using this: if($context['user']['is_logged'])  as a part of your menu links.
keep smiling, they'll always wonder what your up too.....

Eliana Tamerin

if(in_array($user_info['group'],array(1,2,3,4)))
show the button

Make sure that the $user_info global is declared in index.template.php.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Advertisement: