Topic: Disable userlist

Hi

How can I disable userlist from showing up for guests?

2 (edited by MikeRulez 2006-10-08 05:57)

Re: Disable userlist

In the mod section either on here or punres theres a mod that allows you to do this. If you want to do with out that mod im not sure how the mod works but you could just edit the functions.php and search for the

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


and move it to the right spot which would be put with the logout and profile and such meaning that you have to be logged in to see it.

Note doing it that way i believe it will move its position to closer to the end of the list of links.



heres the mod

http://punbb.org/forums/viewtopic.php?id=9520

Re: Disable userlist

Thanks, that works. Now, as ADMIN, I would like to assign user groups to specific users. How can I do this? There doesn't seem to be any function to change a user's group? I tried searching for a user, but that gives me (an ADMIN user!) the message "You don't have permissions to see this forum". Any ideas why??!!

4

Re: Disable userlist

change the uselist.php 's name

5

Re: Disable userlist

qie wrote:

change the uselist.php 's name

why??

Re: Disable userlist

Mark wrote:
qie wrote:

change the uselist.php 's name

why??

Because if I wanted to see his userlist as a guest and didn't see the link, I'd type in <forumaddress>/userlist.php

Ofcourse there is a better way, that's been discused before. erick_p, use the forum search tool and you'll find it... the topic was active yesterday or the day before and was about the same thing your asking...

Why people never use search, I don't know... The least they could do is say that they where to lazy to use search...

echo "deadram"; echo; fortune;

7

Re: Disable userlist

if you dont want the userlist to be viewed by certain groups, you just use the mod by elbekko.

8 (edited by CodeXP 2006-10-08 19:04)

Re: Disable userlist

Easiest way would be to just change line 30 from:

if ($pun_user['g_read_board'] == '0')

to:

if ($pun_user['g_read_board'] == '0' || $pun_user['group_id'] == PUN_GUEST)

Re: Disable userlist

I would like to be able to assign specific users to user groups. How should I do it? That is the question.

10

Re: Disable userlist

erick_p wrote:

I would like to be able to assign specific users to user groups. How should I do it? That is the question.

The standard way is to go to their profile, click "administration" and select a group from the drop-down menu.

Re: Disable userlist

First of all, the link to atis mod that MikeRulez posted will work perfectly, just be sure to read the post through to the end for changes to atis' readme [posted by yours-truly].

For usergroup assignment, do this (its funny, a forum admincame to me only minutes ago asking the same thing (she thinkks its hard to remember where to find this 1)...
Userlist:<user>:administration:'choose user group'

Cheers,

TwoHawks
Love is the Function
No Form is the Tool

Re: Disable userlist

Under userlist, I do not see anything called administration.

What's even more intriguing, when I click on a user's name (and I am admin!), I see "You do not have permission to view these forums."

What gives?

Re: Disable userlist

erick_p...
1) you may need to chmod the cache folder permissions to 777 (in your installation directory) and/or delete your cache files within it (delete all the files except index.html .htaccess inside - I think this should work
2) just for asurance, you may wan to double-check the setting for  the url base in adminstration:options 
3) under userlist you will find what Idirected you to if you carefully read what I wrote...
Userlist:<user>:administration:'choose user group'  Click in succession where <user> = a particular user.

Hope thiis helps,
Cheers,

TwoHawks
Love is the Function
No Form is the Tool

14

Re: Disable userlist

I think there is bug in PunBB with disabling userlist roll You should change line 30 from:

if ($pun_user['g_read_board'] == '0')

to:

if ($pun_user['g_read_board'] == '0' || $pun_user['g_search_users'] == '0')

Now you can change in Setup group options and permissions --> Search user list which group is able to view userlist smile

Darmowe forum - Polish free forum hosting

15

Re: Disable userlist

you can alway just take that line out of the functions.php.....
that will do it also..

Q

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: Disable userlist

tomekf wrote:

I think there is bug in PunBB with disabling userlist roll You should change line 30 from:

if ($pun_user['g_read_board'] == '0')

to:

if ($pun_user['g_read_board'] == '0' || $pun_user['g_search_users'] == '0')

Now you can change in Setup group options and permissions --> Search user list which group is able to view userlist smile

That's not a bug though, since allowing freetext search is different from allowing a user to view the userlist wink