Topic: page access to a cirtin group

i wna make a page only accessible by a certain user group, but i am unsure what code to put into that page to make it only accessible by group 2?

any ideas?

Sorry. Unactive due to personal life.

Re: page access to a cirtin group

if($pun_user['g_id'] != 2)
    message($lang_common['No permission']);
Looking for a certain modification for your forum? Please take a look here before posting.

Re: page access to a cirtin group

and how do i make this apply to the menu, i cant seem to add a link that can only be seen by group 2 ???

    if ($pun_user['g_id'] != 2)
    {
        $links[] = '<li id="portalnavregister"><a href="register.php">'.$lang_common['Register'].'</a>';
        $links[] = '<li id="portalnavlogin"><a href="login.php">'.$lang_common['Login'].'</a>';

    }


is that wrong?

Sorry. Unactive due to personal life.

Re: page access to a cirtin group

== if you want it to only be seen gy group 2