1 (edited by StevenBullen 2006-05-17 11:45)

Topic: Question... ($pun_user['is_guest'])

Any easy way for this...

($pun_user['is_guest'])

Can I make it so that the above will include members?

So that not only group id 3 will be used but also 4.

I know I can add a || but was hoping to do it this way as my code is based around the is_guest.

Thanks people.

EDIT:
Oh yeah! It may be damn easy, but I am at work and cant go looking through code... sad So would be appreciated. Thanks again.

Re: Question... ($pun_user['is_guest'])

if(in_array($pun_user['g_id'], array(3, 4)))
message($lang_common['No view']);

Something like that? Then you can easily change who can't access smile

3 (edited by StevenBullen 2006-05-23 14:47)

Re: Question... ($pun_user['is_guest'])

Found what I was looking for...

define('PUN_MEMBER', 4);

in common.php

added

define('PUN_BF', 6);
and a few more...

in common.php

Its a nice touch, because now if I change my groups about... all my other code based around groups doesnt have to be modified. smile