Welcome to Geeklog, Anonymous Monday, October 14 2024 @ 05:32 pm EDT
Geeklog Forums
Simple user list
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
This is something that has been requested before and since I needed it myself recently, I hacked the code from admin/user.php a bit to make a (simple) user list. Of course, it does not display email addresses and I also made it so that only logged-in users can view the list.
You can view the source or download it from geeklog.info. Have fun.
bye, Dirk
17
19
Quote
Status: offline
greatgerm
Forum User
Newbie
Registered: 09/05/02
Posts: 7
Since I'm still a little new to php and a lotta new to GL I guess the best thing to do is ask. How would I need to hack this to get the users seperated into the groups they belong to? Or even better be able to choose the group you want to look at.
22
16
Quote
Anonymous
Anonymous
May I ask, how do you apply it?
Sam
16
15
Quote
Status: offline
samstone
Forum User
Full Member
Registered: 09/29/02
Posts: 820
This is very useful. Thanks Dirk!
A question. What is the best way to link this url? Create a link under "Sections" or is it possible to add it to "Admins Only" Block?
Are you aware of that even after you signed out, you still can access to this page? Plus, it automatically sign you in. That's sort of dangerous because if someone after me click on it and mass around with administration like changing my user password.
I hope this will become a standard feature in version 2.
Sam
18
17
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
For the one site where I use it, I just hard-coded a link to it in the menu bar in header.thtml.
There's no need to add it to the Admin menu since the Admin already has a user list ...
Not sure what you mean by "it automatically sign you in". Nobody can take over the admin account without your password (or the cookie on your browser).
bye, Dirk
16
13
Quote
Anonymous
Anonymous
I have added it under "Admins Only" block. One reason is that I only want the admin users (usually the group leaders) to see it. They are not given the User Admin permission so they don't get the regular "Users" link in their menu.
Another reason is I like your conveniant "Send Email" link, that I don't have on the default "Users" listing and editing page. It is useful when I want to send an email just to an idividual.
I have fixed the problem of automatic sign in problem.
After all it is a very useful feature to have.
Thanks,
Sam
18
20
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by johnjr: Dirk, where do you put the file 'userlist.php'?
Just drop it into your public_html directory. You'll have to add a link to it manually somewhere, e.g. in the menu or from a block.
bye, Dirk
16
10
Quote
Status: offline
johnjr
Forum User
Chatty
Registered: 02/08/04
Posts: 68
Works nicely! Thanks Dirk.
I am interested in trying to limit the User List that is displayed, to only those users that are assigned to a particular Group, instead of showing all Logged In Users. Any suggestions on how to do that, easily? Ideally, the User List would only show the Users who are part of the same Group (or Groups) of the User who is 'viewing' that List.
John
I am interested in trying to limit the User List that is displayed, to only those users that are assigned to a particular Group, instead of showing all Logged In Users. Any suggestions on how to do that, easily? Ideally, the User List would only show the Users who are part of the same Group (or Groups) of the User who is 'viewing' that List.
John
16
22
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by johnjr: I am interested in trying to limit the User List that is displayed, to only those users that are assigned to a particular Group
That stuff is a bit tricky ... As the Admin, you have such a list in the list of groups (second column from the right). You'll have to lift the code for that from admin/group.php, function listusers()
bye, Dirk
14
19
Quote
Status: offline
johnjr
Forum User
Chatty
Registered: 02/08/04
Posts: 68
How about having the SQL lookup in the User List code, only look up records where the user belongs to the specific desired group? Which field in the sql table is this information kept? Obviously, if I wanted the code to 'find' users who belong to a different group, I would have to hard-code another 'version' of the User List 'program'.
John
John
18
18
Quote
Status: offline
Blaine
Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
Just as a note: You also have a memberlist feature with the forum plugin. Under the forum features in your user block and it has sortable headings - click a heading again to reverse the order.
Geeklog components by PortalParts -- www.portalparts.com
Geeklog components by PortalParts -- www.portalparts.com
12
20
Quote
"I
Anonymous
Hi, it works great, but is there a way to have it sort by the date of when a user joined? I get so lost looking in between the admin list and that list.
20
11
Quote
All times are EDT. The time is now 05:32 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content