OriginalUtter
OriginalUtter

Reputation: 669

Joomla 3.1 add fields to user profile

I want to add more fields to the user profiles, such as an image URL. I want it to work just like this:

$user = JFactory::getUser();
echo "Your name is {$user->name}, your email is {$user->email}, and your username is 
{$user->username}";

In other words, i want to be able to do this:

$profilepicture = $user->image;

Is this possible? And how is it done?

Upvotes: 1

Views: 5187

Answers (2)

marcanuy
marcanuy

Reputation: 24022

Upvotes: 2

Elin
Elin

Reputation: 6770

You can make your own user plugin by cloning the current one and adding whatever fields you need to the xml. Or you can just add another xml form to the current one but you'd have to modify the core to tell it when to use the fields. Or just change one of the fields in the current form to a media field.

Upvotes: 0

Related Questions