Take the 2-minute tour ×
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

3 Answers 3

up vote 5 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. Some of the user object 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:

$user->guest

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.

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 alway more advanced solutions like building your own component or application.

JED Extensions

share|improve this answer
2  
There's also instructions here docs.joomla.org/Creating_a_profile_plugin about customizing the profile plugin for other fields as well –  George Wilson May 17 at 21:12
    
Just remember to update the database queries as the link provided above uses old coding standards: docs.joomla.org/Selecting_data_using_JDatabase –  Lodder May 17 at 23:09

@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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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