1
shashi_bi
Replacing Username with Real NAme
  • 2006/9/4 18:13

  • shashi_bi

  • Just popping in

  • Posts: 28

  • Since: 2006/4/24


Hi

How can i show the Real Name instead of User name in all the pages ,. Is there any option for this .

I have installed following modules

Xhelp
NEws
Message Board
Wiwi Mod

How can I make a member use his username to login, but his realname replace the username shown in most pages like who is online, newbb...etc

2
RachelVirago
Re: Replacing Username with Real NAme

In NewBB module settings
-------------------------
Show Realname

Replace username with user's real name.
-------------------------
Select yes

with my installation this takes effect sitewide.

OPPs no sorry only within NewBB, but everyone seems happy with that it has never been raised.
Being transgender is NOT a choice.

3
noo-b
Re: Replacing Username with Real NAme
  • 2014/10/7 5:11

  • noo-b

  • Just can't stay away

  • Posts: 456

  • Since: 2007/10/23


Anyone can help..how do i change the username in who's online Block to display the realname instead of username...

TQ

4
zyspec
Re: Replacing Username with Real NAme
  • 2014/10/7 15:40

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


noo-b,

In XOOPS 2.5.7 ./modules/system/blocks/system_blocks.php replace line 46:

$uname $xoopsUser->getVar('uname');


with

$uname $xoopsUser->getVar('name');


Notice I just removed the "u" for which variable it's retrieving.

This should work... WARNING: I didn't try this so please use with caution... This will "gradually" update your Online block with the correct user name. It depends on what's already in your Online block & cache as to how long it will be beforeit takes effect. I believe if you update the system module after you do this and then clean the XOOPS cache you should see it take effect immediately.

5
noo-b
Re: Replacing Username with Real NAme
  • 2014/10/7 23:18

  • noo-b

  • Just can't stay away

  • Posts: 456

  • Since: 2007/10/23


thank you zyspec..its working...

Login

Who's Online

174 user(s) are online (81 user(s) are browsing Support Forums)


Members: 0


Guests: 174


more...

Donat-O-Meter

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

Latest GitHub Commits