xoops forums

WebAngel

Just popping in
Posted on: 2002/2/12 14:26
WebAngel
WebAngel (Show more)
Just popping in
Posts: 16
Since: 2002/1/2 2
#1

Admin for Members List Module

Wouldn't it be nice to select which of the user profile details to show in the Members list (and which to supress?) Perhaps INTERESTS is something worthwhile showing on one site, on another it's location and contact info. Let the Admin decide!

onokazu

XOOPS Founder
Posted on: 2002/2/12 14:33
onokazu
onokazu (Show more)
XOOPS Founder
Posts: 617
Since: 2001/12/13
#2

Re: Admin for Members List Module

That sounds cool..

WebAngel

Just popping in
Posted on: 2002/2/13 15:44
WebAngel
WebAngel (Show more)
Just popping in
Posts: 16
Since: 2002/1/2 2
#3

Re: Admin for Members List Module

While you're in there... how about linking in the RANKS database so we can sort users by ranking. In my case I'm using ranking for Department (turning off the posting counters.)

Mikki

Just popping in
Posted on: 2002/2/13 18:33
Mikki
Mikki (Show more)
Just popping in
Posts: 5
Since: 2002/1/21
#4

Re: Admin for Members List Module

If this is not implemented as part of the admin in the final version, the index.php in the memberslist module folder can be modified quite easily... For example, I got rid of the "most recent new user" part, deleted the "registered on" and "url" columns, and it's initially sorted by real name... It would also be pretty easy to add "Interests" as well... The code in the index.php file is nicely written and straightforward - it didn't take me long to find out where to make the changes, and I'm very much a PHP beginner...

- Mikki

WebAngel

Just popping in
Posted on: 2002/2/13 18:50
WebAngel
WebAngel (Show more)
Just popping in
Posts: 16
Since: 2002/1/2 2
#5

Re: Admin for Members List Module

I too have hacked this to show the fields I want to show. That's easy when the users table is already there. The RANKS table is not in this module yet, so you'd have to pull in the rank field for each user from the users table, than access the ranks table to get the associated description (and of course the image), then throw all that into a sortable array and.. pant pant..

Then first XOOPS dev team update to this memberslist module comes along and there you sit with your beautiful hacked version you can't bear to part with...

Hey Mikki, what do you say we join the Dev team instead?

onokazu

XOOPS Founder
Posted on: 2002/2/13 19:32
onokazu
onokazu (Show more)
XOOPS Founder
Posts: 617
Since: 2001/12/13
#6

Re: Admin for Members List Module

The easiest way to get rank info for each user in the membesrlist is to do like this

$rank = $userinfo->getRank();

Now, $rank['title'] holds the title of user rank and $rank['image'] holds the name of image file for the rank. You can only do this after line 181 in index.php though, where each user object $userinfo is instantiated.

Mikki

Just popping in
Posted on: 2002/2/13 20:46
Mikki
Mikki (Show more)
Just popping in
Posts: 5
Since: 2002/1/21
#7

Re: Admin for Members List Module

Lol... well, I'll just have to hack the next version as well then - I changed about 5 lines of code .

We could just start the XOOPS Texas affiliate site!

- Mikki

simonvl

Just popping in
Posted on: 2004/4/11 20:34
simonvl
simonvl (Show more)
Just popping in
Posts: 44
Since: 2004/1/28
#8

Re: Admin for Members List Module

As you can see, I have been struggling to do just this... can you help me by posting the code somewhere? Did you manage to make the user rank available to the search form?
Would be great if you answered "yes" to these!
Simon