1
jeffgr
Xoops xmmemberstats small hack
  • 2006/10/24 19:29

  • jeffgr

  • Quite a regular

  • Posts: 263

  • Since: 2004/2/22


I noticed that in the list of members, only the member name linked back to that users' profile, and not the avatar displayed beside the name. Here is the code to replace to make the avatar also link back to the person's profile:

in the xmmemberstats module folder...

edit index.php

on line 289 replace:

echo "<td align='center'><img src='".XOOPS_URL."/uploads/".$userinfo->user_avatar()."' alt='' width='64' height='64' />&nbsp;</td>\n";

with

echo "<td align='center'><a href='".XOOPS_URL."/userinfo.php?uid=".$userinfo->uid()."'><img src='".XOOPS_URL."/uploads/".$userinfo->user_avatar()."' alt='' width='64' height='64' /></a>&nbsp;</td>\n";

You can see what I mean at:

http://myottawa.ca/modules/xmmemberstats/

Login

Who's Online

66 user(s) are online (51 user(s) are browsing Support Forums)


Members: 0


Guests: 66


more...

Donat-O-Meter

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

Latest GitHub Commits