|
| Author |
Message |
IrishEye
Joined: 27 Sep 2005
Posts: 10
Location: Ireland
|
Posted: 10/21/2005, 10:38 pm Post subject: Hack for Memberlist viewing? |
|
|
Is there a hack that only allows registered members view the Memberlist?  _________________ ---------------------------------------
www.gwgdesign.com <-- Too Busy to work on it
www.twistfm.com <-- Money for Radio Equipment pending |
|
| Back to top |
|
 |
Patrick
Administrator
Joined: 28 Aug 2005
Posts: 2212
Location: Harbinger, NC, U.S.A.
|
|
| Back to top |
|
 |
IrishEye
Joined: 27 Sep 2005
Posts: 10
Location: Ireland
|
Posted: 10/22/2005, 1:26 pm Post subject: |
|
|
| Patrick wrote: |
Hello.
For which software? |
Hello Patrick,
How are ya ?
Its for PHPBB, can't find any setting for it in the new version so I guess its a hack, because I seen it on other sites in use.
And info?,
Many thanks _________________ ---------------------------------------
www.gwgdesign.com <-- Too Busy to work on it
www.twistfm.com <-- Money for Radio Equipment pending |
|
| Back to top |
|
 |
Thoul
Joined: 14 Sep 2005
Posts: 169
|
|
| Back to top |
|
 |
~HG~
Joined: 25 Sep 2005
Posts: 423
Location: Australia
|
Posted: 10/23/2005, 3:12 pm Post subject: |
|
|
I have removed the memberlist from the main menu and installed it only in Admin Control Panel so it is (technically) only accessible to admins.
Of course anyone could type /memberlist.php into the address bar to access it but not too many people would think of doing so.
If I wanted to prevent others from viewing it entirely I would change the name of the .php page to something other than memberlist. _________________ ~HG~
|| Click here to view all my phpBB Communities || |
|
| Back to top |
|
 |
Capmaster
Joined: 11 Oct 2005
Posts: 132
Location: Albuquerque, NM USA
|
Posted: 10/23/2005, 4:09 pm Post subject: Re: Hack for Memberlist viewing? |
|
|
| IrishEye wrote: |
Is there a hack that only allows registered members view the Memberlist?  |
Easy
You can add a bit of code to any of your linked php pages, like FAQ, memberlist, rules, etc. Just do this to each of the pages you wish protected:
| Quote: |
#
#-----[ FIND ]------------------------------------------
#
init_userprefs($userdata);
#
#-----[ AFTER, ADD ]------------------------------------------
#
if (!$board_config['allow_guests'] && !$userdata['session_logged_in']) {
redirect(append_sid('login.'.$phpEx.'?redirect=search.'.$phpEx));
}
#
|
An unregistered guest trying to access the page will be redirected to the login page  _________________ The Conversation Pit
Some mornings, it's just not worth chewing through the leather straps |
|
| Back to top |
|
 |
|