Require Login
2 posters
Page 1 of 1
Require Login
This hack makes it so that login is required to view faq.php, groupcp.php, index.php, memberlist.php or search.php.
Need help installing this please.
-----[ OPEN ]----------------------------
#
faq.php
#
#-----[ FIND ]----------------------------
#
init_userprefs($userdata);
#
#-----[ AFTER, ADD ]--------------------
#
if ($userdata['user_id'] == ANONYMOUS)
{
redirect(append_sid('login.'.$phpEx));
}
#
#-----[ OPEN ]----------------------------
#
groupcp.php
#
#-----[ FIND ]----------------------------
#
init_userprefs($userdata);
#
#-----[ AFTER, ADD ]--------------------
#
if ($userdata['user_id'] == ANONYMOUS)
{
redirect(append_sid('login.'.$phpEx));
}
#
#-----[ OPEN ]----------------------------
#
index.php
#
#-----[ FIND ]----------------------------
#
init_userprefs($userdata);
#
#-----[ AFTER, ADD ]--------------------
#
if ($userdata['user_id'] == ANONYMOUS)
{
redirect(append_sid('login.'.$phpEx));
}
#
#-----[ OPEN ]----------------------------
#
memberlist.php
#
#-----[ FIND ]----------------------------
#
init_userprefs($userdata);
#
#-----[ AFTER, ADD ]--------------------
#
if ($userdata['user_id'] == ANONYMOUS)
{
redirect(append_sid('login.'.$phpEx));
}
#
#-----[ OPEN ]----------------------------
#
search.php
#
#-----[ FIND ]----------------------------
#
init_userprefs($userdata);
#
#-----[ AFTER, ADD ]--------------------
#
if ($userdata['user_id'] == ANONYMOUS)
{
redirect(append_sid('login.'.$phpEx));
}
Need help installing this please.
-----[ OPEN ]----------------------------
#
faq.php
#
#-----[ FIND ]----------------------------
#
init_userprefs($userdata);
#
#-----[ AFTER, ADD ]--------------------
#
if ($userdata['user_id'] == ANONYMOUS)
{
redirect(append_sid('login.'.$phpEx));
}
#
#-----[ OPEN ]----------------------------
#
groupcp.php
#
#-----[ FIND ]----------------------------
#
init_userprefs($userdata);
#
#-----[ AFTER, ADD ]--------------------
#
if ($userdata['user_id'] == ANONYMOUS)
{
redirect(append_sid('login.'.$phpEx));
}
#
#-----[ OPEN ]----------------------------
#
index.php
#
#-----[ FIND ]----------------------------
#
init_userprefs($userdata);
#
#-----[ AFTER, ADD ]--------------------
#
if ($userdata['user_id'] == ANONYMOUS)
{
redirect(append_sid('login.'.$phpEx));
}
#
#-----[ OPEN ]----------------------------
#
memberlist.php
#
#-----[ FIND ]----------------------------
#
init_userprefs($userdata);
#
#-----[ AFTER, ADD ]--------------------
#
if ($userdata['user_id'] == ANONYMOUS)
{
redirect(append_sid('login.'.$phpEx));
}
#
#-----[ OPEN ]----------------------------
#
search.php
#
#-----[ FIND ]----------------------------
#
init_userprefs($userdata);
#
#-----[ AFTER, ADD ]--------------------
#
if ($userdata['user_id'] == ANONYMOUS)
{
redirect(append_sid('login.'.$phpEx));
}
KCUF- Forumember
- Posts : 151
Reputation : 2
Language : english
Re: Require Login
There is a setting for this in the Admin panel, its not a hack.
Go to AP>>Users & Groups>>Special rights>>
On that page scroll down the page until you see "Rights", from there you can adjust who sees those things you mentioned. If you set it for "Members" then guests will have to login or register to view them.
Go to AP>>Users & Groups>>Special rights>>
On that page scroll down the page until you see "Rights", from there you can adjust who sees those things you mentioned. If you set it for "Members" then guests will have to login or register to view them.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum