1
martyras
Retrieve "real name" from a specific "uid".
  • 2004/12/7 21:11

  • martyras

  • Just popping in

  • Posts: 37

  • Since: 2004/11/1


Hi, I am building a module and i would like to know how can I read the real name of a user from a specific "uid". If possible, i would like to read the config of news module to see if I have selected the username or real name for showing under title in the news. I tried using the function uname() from /modules/news/class.newsstory.php but with no luck! If someone can help me...

2
talunceford
Re: Retrieve "real name" from a specific "uid".

You might try this..

$realname = $xoopsUser->getVar('name');

Give that a shot.

3
martyras
Re: Retrieve "real name" from a specific "uid".
  • 2004/12/7 21:56

  • martyras

  • Just popping in

  • Posts: 37

  • Since: 2004/11/1


I think this is for the user that is logged in. I want to read the real name from a specific user's "uid". Thanks for posting.

4
dheltzel
Re: Retrieve "real name" from a specific "uid".
  • 2004/12/7 22:08

  • dheltzel

  • Not too shy to talk

  • Posts: 164

  • Since: 2003/1/8 1


Try this:

$member_handler =& xoops_gethandler('member');
$member =& $member_handler->getUser($uid);
$uname = $member->getVar('uname','E');

$uid is the userid you wish to query of course.

Dennis

Login

Who's Online

247 user(s) are online (162 user(s) are browsing Support Forums)


Members: 0


Guests: 247


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