1
Satine
Member Ranks Display
  • 2004/12/18 9:22

  • Satine

  • Just popping in

  • Posts: 1

  • Since: 2004/12/18


Greetings,

I was wondering how one would display the member ranks along side the usernames when you click on the Members link to show all members of the site?

I have tried a few things to no avail.

Thanks in advance,

Satine

2
Mithrandir
Re: Member Ranks Display

inside the loop of modules/xoopsmembers/index.php:
$foundusers =& $member_handler->getUsers($criteriatrue);
foreach (
array_keys($foundusers) as $j) {

around line 344, you should put this:
$userdata['rank'] = $foundusers[$j]->rank;

Then in the template xoopsmembers_searchresult.html, you should add
<td class="odd" align="center"><{$users[i].rank.title}>td>

where you want it to show up.

Note that the rank is an array of id (rank ID, not user ID), title and image so therefore you need that extra .title to get the title.

However, I do want to warn against this, as you will add a database query for each displayed user on that page. Unfortunately, the rank handling is not so well-formed in XOOPS, yet. But if your traffic is not overwhelming, it shouldn't matter _that_ much - just so that you don't complain about it afterwards

3
Gliderpilot
Re: Member Ranks Display
  • 2004/12/19 15:20

  • Gliderpilot

  • Just popping in

  • Posts: 3

  • Since: 2004/12/18


where do i get that members-display-module ? i cant find it on this site.

4
limecity
Re: Member Ranks Display
  • 2004/12/19 16:11

  • limecity

  • Friend of XOOPS

  • Posts: 1602

  • Since: 2003/7/6 0


@Gliderpilot
Its not a module, its a block which u can find it in the admin area. Browse around ur admin site

5
Gliderpilot
Re: Member Ranks Display
  • 2005/1/3 16:54

  • Gliderpilot

  • Just popping in

  • Posts: 3

  • Since: 2004/12/18


i really cant find it, can someone help pleaz?

Login

Who's Online

432 user(s) are online (58 user(s) are browsing Support Forums)


Members: 0


Guests: 432


more...

Donat-O-Meter

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

Latest GitHub Commits