tags:

views:

90

answers:

1
$user = &JFactory::getUser();

$uid = $user->get('id'); //works 
$umail = $user->get('email'); //works 
$unamed = $user->get('posname'); //does not work

Why can't I use JFactory to get the fields that I have added by myself on the Joomla user table. Is there another simple way they could be gotten?

A: 

You need the usermeta plugin as posname is not part of the user model

http://joomlacode.org/gf/project/usermeta/

Jeepstone
I tried using it but it does not work. Do I have any other option
yankitwizzy
Can you elaborate? What problem are you having?
Jeepstone