Topic: User list menu item

Hello,
The opiton Use search Yes/No in groups administration doesn't work

in userlist.php there's:

if ($pun_user['g_read_board'] == '0')
    message($lang_common['No view']);

and should be:

if ($pun_user['g_read_board'] == '0')
    message($lang_common['No view']);
else if ($pun_user['g_search_users'] == '0')
    message($lang_search['No search permission']);

also in functions.php function generate_navlinks()
i've added:

if ($pun_user['g_search_users'] == '1')    $links[] = '<li id="navuserlist"><a href="userlist.php">'.$lang_common['User list'].'</a>';

It works for me smile

greetings !

Re: User list menu item

but its not meant to disable the userlist, its for disabling searching in the userlist

Re: User list menu item

OK, sorry, so it's not a bug. But I just don't want to allow the guest to view the whole userlist without loggin in.

Re: User list menu item

keemor wrote:

Hello,
The opiton Use search Yes/No in groups administration doesn't work

in userlist.php there's:

if ($pun_user['g_read_board'] == '0')
    message($lang_common['No view']);

and should be:

if ($pun_user['g_read_board'] == '0')
    message($lang_common['No view']);
else if ($pun_user['g_search_users'] == '0')
    message($lang_search['No search permission']);

also in functions.php function generate_navlinks()
i've added:

if ($pun_user['g_search_users'] == '1')    $links[] = '<li id="navuserlist"><a href="userlist.php">'.$lang_common['User list'].'</a>';

It works for me smile

greetings !

I think you should edit profile.php then too. In profile you may have information on emails for spam purposes.

Re: User list menu item

keemor: Being able to disable the userlist for certain user groups is a feature that will most likely be included in PunBB 1.3.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

6

Re: User list menu item

awesome. Just what I needed!

Re: User list menu item

This thread should be locked or moved to Troubleshooting since it's not a bug.

8

Re: User list menu item

Hmm works but admin is the only one that can use it now. I need the mods to see it also.

Re: User list menu item

Can i ask about tickets?