1
Zyvek
Real Name in Top Posters
  • 2006/10/19 22:08

  • Zyvek

  • Just popping in

  • Posts: 2

  • Since: 2005/3/29


How do I edit the Top Posters block to show the users real name instead of their user name?

Is there an defined variable that I can replace $user.name with, i.e. $user.realname or do I need to predeclare that somewhere else? If so where? user.php?

Thanks.

2
hervet
Re: Real Name in Top Posters
  • 2006/11/23 7:38

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


edit the file /xoops/modules/system/blocks/system_blocks.php

then find this line :
$block['users'][$i]['name'] = $topposters[$i]->getVar('uname');


and replace it with :
$block['users'][$i]['name'] = $topposters[$i]->getVar('name');


BUT the real name must be filled or you will not see anything.

Login

Who's Online

357 user(s) are online (112 user(s) are browsing Support Forums)


Members: 0


Guests: 357


more...

Donat-O-Meter

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

Latest GitHub Commits