Require user to be logged in

Articles and Information - phpBB 3.0 modifications and tweaks

Require user to be logged in

Postby Mick » Mon Mar 20, 2017 9:30 am

Require user to be logged in.

In the php file of the page you want to accomplish this, add the following somewhere near the top:

Code: Select all
if ($user->data['user_id'] == ANONYMOUS)
{
   login_box('', $user->lang['LOGIN']);
}
"The more connected we get the more alone we become" - Kyle Broflovski
User avatar
Mick
 
Posts: 24
Joined: Wed Mar 15, 2017 9:14 am

Return to Articles and information

Who is online

Users browsing this forum: No registered users and 2 guests

cron