The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Require Login

View previous topic View next topic Go down

Require Login

Post by KCUF on September 21st 2012, 12:59 am

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));
}

KCUF
Forumember

Posts : 151
Reputation : 2
Language : english

Back to top Go down

Re: Require Login

Post by runawayhorses on September 21st 2012, 3:39 am

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.

runawayhorses
Hyperactive

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

http://runawayhorses.alldiscussion.net/

Back to top Go down

View previous topic View next topic Back to top


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