Topic: User list Locking
I need help. I want to lock my User list (Members) unless you are logged in to the forum. How can I go about doing this?
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 modifications, plugins and integrations → User list Locking
I need help. I want to lock my User list (Members) unless you are logged in to the forum. How can I go about doing this?
in userlist.php find
if ($pun_user['g_read_board'] == '0')
message($lang_common['No view']);
replace with
if ($pun_user['g_read_board'] == '1')
message($lang_common['No view']);
that will make it where guest can't view
for admin view only change it to this
if ($pun_user['g_id'] > PUN_MOD)
message($lang_common['No permission']);
fantastic! thank you.
Perfect... Thanks shinko_metsuo!
This don't work for 1.2.9. Any ideas?
I got 1.2.9 to work by changing in userlist.php
if ($pun_user['g_read_board'] == '0')
message($lang_common['No view']);
to
if ($pun_user['g_title'] == 'Guest')
message($lang_common['No view']);
That worked... Thanks Tenkawa!
It was pointed out to me this is a better way to do it.
Thanks
if ($pun_user['g_read_board'] == '0' || $pun_user['is_guest'])
message($lang_common['No view']);
Thanks for the update...
You might be interested to install this mod i just wrote..
PunBB Forums → PunBB 1.2 modifications, plugins and integrations → User list Locking
Powered by PunBB, supported by Informer Technologies, Inc.