Page 1 of 1

Front End Users (FEU) obtain values [Solved]

Posted: Wed May 21, 2014 11:30 pm
by douglas1438
Hi all,

I'm sorry this is really simple but it is late and I just can't get my head around it or find a solution on the forum, guess it is to simple.

All I want to do is obtain a field value for a user. So I have a value for the field post_code how do I get it in to a variable I can use within my template?

Know it is along these lines but can't get it to work.

Code: Select all

{$feu_smarty->get_userid($username,'uinfo')}
{$feu_smarty->get_userinfo($something.userid,'uinfo')}
{$uinfo|@print_r}
Thanks Chris

Re: Front End Users (FEU) obtain values

Posted: Thu May 22, 2014 12:04 am
by Jo Morg
Not sure about what you need, but, maybe:

Code: Select all

{$feu_smarty->get_userid($username,'uid')}
{$feu_smarty->get_userinfo($uid,'uinfo')}
{$uinfo|@print_r}
or

Code: Select all

{$feu_smarty->get_userid($username,'uid')}
{$feu_smarty->get_user_properties($uid,'userprops')}
{$userprops|@print_r}
However you need to have a valid username in $username beforehand...

Re: Front End Users (FEU) obtain values [Solved]

Posted: Thu May 22, 2014 9:45 pm
by douglas1438
Perfect, thank you very much.