1
WebAngel
Admin for Members List Module
  • 2002/2/12 14:26

  • WebAngel

  • Just popping in

  • Posts: 16

  • Since: 2002/1/2 2


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!

2
onokazu
Re: Admin for Members List Module
  • 2002/2/12 14:33

  • onokazu

  • XOOPS Founder

  • Posts: 617

  • Since: 2001/12/13


That sounds cool..

3
WebAngel
Re: Admin for Members List Module
  • 2002/2/13 15:44

  • WebAngel

  • Just popping in

  • Posts: 16

  • Since: 2002/1/2 2


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.)

4
Mikki
Re: Admin for Members List Module
  • 2002/2/13 18:33

  • Mikki

  • Just popping in

  • Posts: 5

  • Since: 2002/1/21


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

5
WebAngel
Re: Admin for Members List Module
  • 2002/2/13 18:50

  • WebAngel

  • Just popping in

  • Posts: 16

  • Since: 2002/1/2 2


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?


6
onokazu
Re: Admin for Members List Module
  • 2002/2/13 19:32

  • onokazu

  • XOOPS Founder

  • Posts: 617

  • Since: 2001/12/13


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.

7
Mikki
Re: Admin for Members List Module
  • 2002/2/13 20:46

  • Mikki

  • Just popping in

  • Posts: 5

  • Since: 2002/1/21


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

8
simonvl
Re: Admin for Members List Module
  • 2004/4/11 20:34

  • simonvl

  • Just popping in

  • Posts: 44

  • Since: 2004/1/28


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

Login

Username:
Password:

Lost Password? Register now!

Who's Online

63 user(s) are online (31 user(s) are browsing Support Forums)


Members: 0


Guests: 63


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jun 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits