Page 1 of 1

Guests can't access custom page

Posted: Tue Aug 18, 2009 3:35 pm
by tplowe
I have added a 2 custom pages accessed by 2 custom links in the menubar, in the overall_header. Everything works fine if you are logged in. But if a guest tries to access these page they are asked to login.

Howe do a change permissions for custom pages?

Also one of the pages contains links to downloadable PDF's so the guests also need permission to download files.

Do I need to alter this code in the custom pages?

Code: Select all

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
if ($user->data['user_id'] == ANONYMOUS)
{
    login_box('', $user->lang['LOGIN']);
} 

Thanks!

Re: Guests can't access custom page

Posted: Tue Aug 18, 2009 3:39 pm
by tplowe
OK.....just viewed this DOC: http://www.phpbb.com/kb/article/add-a-n ... -to-phpbb/

Think I got it, I just need to rewrite code.


OK fixed it!