Guests can't access custom page

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Ideas Centre
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
tplowe
Registered User
Posts: 40
Joined: Mon May 09, 2005 3:50 am

Guests can't access custom page

Post 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!
tplowe
Registered User
Posts: 40
Joined: Mon May 09, 2005 3:50 am

Re: Guests can't access custom page

Post 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!
Locked

Return to “[3.0.x] Support Forum”