Sign up ×
Joomla Stack Exchange is a question and answer site for Joomla! administrators, users, developers and designers. It's 100% free, no registration required.

I want to make a custom profile page which will only display the details of the user who has logged into my website. I need to display

  • username
  • name
  • registered email

Is it also possible to create custom fields but not at the registation form, only when they login, they should be able to edit their profile page.

share|improve this question

4 Answers 4

up vote 13 down vote accepted

Joomla Access User Info - The user object

To get the user information for the current user:

$user = JFactory::getUser();

It will return the User Object.
Here, some of the most common user object's variables:

  • id ($user->id)
  • name ($user->name)
  • username ($user->username)
  • groups ($user->groups)
  • email ($user->email).

You can check if the user is logged-in with the:


You can check for the user's access privileges with the authorize function, e.g:

$user->authorise('core.admin', 'com_component')

User Profiles

For extra custom fields, this depends on what you are trying to achieve. There is a Joomla core plugin "User Profile" which contains many custom profile fields and which you can customize further.

Update: To access the User Profile Data

jimport( 'joomla.user.helper' ); 
$user = JFactory::getUser();
$userId = $user->id; 
$userProfile = JUserHelper::getProfile( $userId );

echo "Main Address :" . $userProfile->profile['address1'];

At the other hand there are other 3rd party extensions like Community Builder, JomSocial, Easy Social that let you build a user community site, where you can have users with extended profile information. If you don't need to build a community, there are other extensions that either override/extend the com_user core component or they work in conjunction with it and give you extra control over the user management.

But as said, it depends on what you want to do. For example if you just plan to build a forum, the forum extensions have extra profile fields.

Of course there are always more advanced solutions like building your own component or application.

Joomla.Platform / User API

JED Extensions

share|improve this answer
There's also instructions here about customizing the profile plugin for other fields as well – George Wilson May 17 '14 at 21:12
Just remember to update the database queries as the link provided above uses old coding standards: – Lodder May 17 '14 at 23:09
Do you know how to retrieve profile information? – cha Nov 7 '14 at 8:11
yes, check the updated answer – FFrewin Nov 7 '14 at 8:40

@Lodder is correct. If you want just some basic fields, then you can use Joomla User Profile plugin, which comes with Joomla itself.

If you want to create some customized fields, then there are various options available like, Community Builder, JomSocial, EasySocial and other socila networking solution. But if don't want the full community solution then you can look for the extension which are built for only user profiling. Joom Profile can be an option for you.

share|improve this answer

You should really do some research before asking a question like this. 2 seconds on Google and you would have all the information you needed.

There is a in User Profile plugin that comes with Joomla. In the Joomla backend, go to

Extensions (top menu) >> Plugin Manager >> User Profile.

You will see the following custom fields:

  • Address 1
  • Address 2
  • City Region
  • Country
  • Postal / ZIP Code
  • Phone
  • Web site
  • Favourite Book
  • About Me
  • Date of Birth

You can choose which ones you want on the registration and profile page. If these fields aren't the ones you're looking for, then you might want to look at Community Builder. This extension allows you to add your own custom fields and integrates with other extensions.

share|improve this answer
I find your first sentence funny as this is the first result on Google for me. Though a bit of redundant information doesn't hurt anybody. – Benjammin' May 21 at 0:26

In addition to the answers above, you might want to take a look at a plugin called Nice User Info. It can display some user information when a user is logged in. A free versiion is also available, but with limited functionality.

To use it, simply add {niceuserinfo:usergroup}, and supports the following information:

  • User ID
  • Full Name
  • Username
  • Email Address
  • Group Name(s)
  • Group ID(s)
  • Registration Date
  • Last Visit Date
  • Visitor’s IP Address
share|improve this answer

protected by FFrewin Aug 28 at 20:18

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.