The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Require Login

2 posters

Go down

Require Login Empty Require Login

Post by KCUF September 21st 2012, 01:59

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));
}
avatar
KCUF
Forumember

Posts : 151
Reputation : 2
Language : english

Back to top Go down

Require Login Empty Re: Require Login

Post by runawayhorses September 21st 2012, 04:39

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.
avatar
runawayhorses
Hyperactive

Male Posts : 2537
Reputation : 166
Language : English
Location : United States

http://runawayhorses.alldiscussion.net/

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum