|
Re: How to prevent anonymous from viewing members profiles? (-) [message #11056 is a reply to message #11054] |
Tue, 17 June 2003 13:57 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Cannot be done, unless you make changes to the usrinfo.php.t, which would prevent anon user access to the profile page. This check is fairly easy to add and would look something like this:
<?php if (!_uid) { exit('no access to profile page to anon users'); } ?>
FUDforum Core Developer
|
|
|
|
Re: Thanks! (-) [message #12116 is a reply to message #11072] |
Mon, 28 July 2003 23:03 |
Nightshade
Messages: 9 Registered: July 2003
Karma: 0
|
Junior Member |
|
|
I put this at the top of that file, then tried the bottom, and even in the middle where I thought it should go. But my guests still have access to the member's profiles.
I'm not a programmer, I'm a net admin, so you'll have to forgive my lack of coding abilities.
<update>
It doesn't go in that file. You put that code in the findusers.tmpl
I put mine right after {TEMPLATE-DATA: admin_cp} and it worked perfectly.
Thanks for the code!
<final edit, I hope>
My bad, you have to still put it in the above file, to disable them being able to get a member's list, but the code the "Master" posted does stop anon users if they just click on a link name.
[Updated on: Mon, 28 July 2003 23:23] Report message to a moderator
|
|
|
|
|
Re: Thanks! (-) [message #12141 is a reply to message #12126] |
Tue, 29 July 2003 22:12 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
You can either disable the entire member list to everyone but the admin or leave it enabled for all members.
FUDforum Core Developer
|
|
|