Advertisement

Display the logged in user's Full Name

General questions relating to Joomla! There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
room58
Joomla! Intern
Joomla! Intern
Posts: 65
Joined: Wed Apr 19, 2006 3:18 pm

Display the logged in user's Full Name

Post by room58 » Fri May 19, 2006 3:59 pm

How do I access the logged in user's full name, not their username? I can't find it anywhere. I've currently got:

Code: Select all

$userInfo = $mainframe->getUser();
<p><span id="welcome"><?php echo _HI;?></span> <?php echo $userInfo->username ;?></p>
but this just returns the username and not the full name so instead of Welcome Admin, I want Welcome John Smith

Advertisement
SHoggard
Joomla! Apprentice
Joomla! Apprentice
Posts: 44
Joined: Fri Oct 21, 2005 6:34 am

Re: Display the logged in user's Full Name

Post by SHoggard » Fri May 19, 2006 4:20 pm

I assume they are registering with you? I believe they need to tell you their name.

room58
Joomla! Intern
Joomla! Intern
Posts: 65
Joined: Wed Apr 19, 2006 3:18 pm

Re: Display the logged in user's Full Name

Post by room58 » Fri May 19, 2006 4:21 pm

Sorry, you misunderstood,

I just want to display their name and not their user name. There is a name in the database, I want want to know how to display it.  :)

User avatar
dhuelsmann
Joomla! Master
Joomla! Master
Posts: 19659
Joined: Sun Oct 02, 2005 12:50 am
Location: Omaha, NE
Contact:

Re: Display the logged in user's Full Name

Post by dhuelsmann » Fri May 19, 2006 4:41 pm

room58 wrote: Sorry, you misunderstood,

I just want to display their name and not their user name. There is a name in the database, I want want to know how to display it.  :)
backend (administrator) -> site modules -> login module -> parameters -> Name/Username -> select name.

Regards

Dave
Regards, Dave
Past Treasurer Open Source Matters, Inc.
Past Global Moderator
http://www.kiwaniswest.org

room58
Joomla! Intern
Joomla! Intern
Posts: 65
Joined: Wed Apr 19, 2006 3:18 pm

Re: Display the logged in user's Full Name

Post by room58 » Mon May 22, 2006 7:43 am

I'm not using the login module as you need to be logged in to view any content (extranet). I just wish to display the user's name as is in the login module, but without the login form elements.

Advertisement

Locked

Return to “General Questions - 1.0.x”