Front End Users (FEU) obtain values [Solved]

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
douglas1438
Forum Members
Forum Members
Posts: 80
Joined: Thu Jul 21, 2011 10:29 am

Front End Users (FEU) obtain values [Solved]

Post 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
Last edited by douglas1438 on Thu May 22, 2014 9:44 pm, edited 1 time in total.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1978
Joined: Mon Jan 29, 2007 4:47 pm

Re: Front End Users (FEU) obtain values

Post 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...
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
douglas1438
Forum Members
Forum Members
Posts: 80
Joined: Thu Jul 21, 2011 10:29 am

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

Post by douglas1438 »

Perfect, thank you very much.
Post Reply

Return to “Modules/Add-Ons”