1

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?

Re: User list Locking

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']);

3

Re: User list Locking

fantastic! thank you.

4

Re: User list Locking

Perfect... Thanks shinko_metsuo!

5

Re: User list Locking

This don't work for 1.2.9. Any ideas?

6 (edited by Tenkawa 2005-10-21 11:46)

Re: User list Locking

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']);

7

Re: User list Locking

That worked... Thanks Tenkawa!

8 (edited by Tenkawa 2005-10-21 18:52)

Re: User list Locking

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']);

9

Re: User list Locking

Thanks for the update...

10

Re: User list Locking

You might be interested to install this mod i just wrote..

http://www.punres.org/viewtopic.php?id=822