How to hide userlist

From PunBB Resource Wiki

Jump to: navigation, search

How to hide userlist

Open

include/functions.php




FIND Code:

$links[] = '<li id="navuserlist"><a href="userlist.php">'.$lang_common['User list'].'</a>';


REPLACE WITH Code:

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


Open: userlist.php


FIND Code:

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

AFTER, ADD Code:

if ($pun_user['g_id'] > PUN_MOD)
    message($lang_common['No permission']);

Now guest can not see the userlist!


Smarty post on http://punbb.org/forums/viewtopic.php?pid=107683#p107683

Q

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox