Topic: Portal / registered users only

I use the portal from Tubby but i miss one thingie...

how can i make a portal registered protected. So only registered users can view it and guest receive a message to regsiter/login?

I tried this, but this is not working you get a message 'unable to fetch'.

if($pun_user['is_guest']) { message($lang_common['No permission']);
;}
PunnyBunny..

Re: Portal / registered users only

On that page is there something like:

define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';
require PUN_ROOT.'lang/'.$pun_user['language'].'/common.php';

Re: Portal / registered users only

jups

PunnyBunny..

4 (edited by Tubby 2007-03-03 01:31)

Re: Portal / registered users only

open up index.php

find:

require PUN_ROOT.'lang/'.$pun_user['language'].'/portal.php';

after add:

if ($pun_user['is_guest'])
    message("GTFO!");

Re: Portal / registered users only

Thanks tubby but that don't work...still get "unable to fetch".

PunnyBunny..

6

Re: Portal / registered users only

could you copy and paste your index.php coding here so i can have a look at it.