Subject: Simple user list

Posted on: 04/09/02 02:10pm
By: Dirk

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


Simple user list

Posted on: 05/09/02 04:09pm
By: greatgerm

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.

Simple user list

Posted on: 20/11/02 10:15am
By: Anonymous

May I ask, how do you apply it? Sam

Simple user list

Posted on: 20/11/02 11:34am
By: samstone

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

Simple user list

Posted on: 20/11/02 01:39pm
By: Dirk

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

Simple user list

Posted on: 20/11/02 07:05pm
By: 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

Re:Simple user list

Posted on: 24/10/03 08:10pm
By: rayban

A note of thanks to Dirk for this. Good on you.

Thank you,

Ray

Simple user list

Posted on: 18/09/04 12:04am
By: johnjr

Dirk, where do you put the file 'userlist.php'? Or did you put this code into the lib-custom.php file?

John

Simple user list

Posted on: 18/09/04 03:55am
By: Dirk

[QUOTE BY= johnjr] Dirk, where do you put the file 'userlist.php'?[/QUOTE]
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

Simple user list

Posted on: 18/09/04 09:34am
By: johnjr

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

Simple user list

Posted on: 18/09/04 12:37pm
By: Dirk

[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[/QUOTE]
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

Simple user list

Posted on: 19/09/04 11:36pm
By: johnjr

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

Simple user list

Posted on: 21/09/04 07:39pm
By: thedude

This solved my current needs.

Many thanks Dirk. As usual, Great Jobs...

The Dude

Simple user list

Posted on: 21/09/04 11:20pm
By: Blaine

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.

Simple user list

Posted on: 19/06/05 06:23pm
By: 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.

Re: Simple user list

Posted on: 12/03/07 02:48pm
By: Katsuhito

Dirk, Your userlist.php is a great hack. But I’d like to include the user’s lastlogin date. How can I do this? I'm a novice at php, and getting better Big Grin but I know almost nothing about SQL.

Re: Simple user list

Posted on: 09/12/07 05:56pm
By: orepa

Dirk,

How/where do I add the homepage and location to the "simple list" script so it will also display the information added to those fields? If somone else knows how to add those two fields, please advise.

Thanks,

Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=21254