Topic: Hide user data from guest
How can I hide a member's profile from un-reggistered users?
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 troubleshooting → Hide user data from guest
How can I hide a member's profile from un-reggistered users?
You can't. On the other hand, e-mail addresses are not displayed for guests, so it's not the end of the world.
would it be possible if in the fuctions.php file you moved the userlist section down so only members can view that?
that would not help at all, it would just remove userlist from the menu but it can still be accessed and its not the userlist its the profiles
you could just add
if (!$pun_user['is_guest']) {
profile.php stuff
}
else {
error('go away')
}
I changed line 30 of profile.php to:
if (($pun_user['g_read_board'] == '0' || $pun_user['is_guest']) && !isset($_GET['key']))
message($lang_common['No view']);
Can permissions like this be handled by mods?
No, permissions are set by administrators only.
tres: I do believe putting ?key=a in the URL gets you around that
Which has been reported earlier, yes.
Duh... thanks,
A better test,
if (($pun_user['g_read_board'] == '0' && !isset($_GET['key']) || $pun_user['is_guest']))
message($lang_common['No view']);
If I make this an option on the admin panel how do I submit the changes?
Erm, hopefully you don't have the verification thing enabled: that would mean you can't use verification
I'm not sure what you mean.
I tested by using a different browser, and registering as a new user. Password was sent by email and I was able to login and post.
I meant if you actually had to use the key variable (if you choose Verify new registrations in Admin Options).
PunBB Forums → PunBB 1.2 troubleshooting → Hide user data from guest
Powered by PunBB, supported by Informer Technologies, Inc.