[SOLVED]how to retrieve propertie of FEU

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
tyty
New Member
New Member
Posts: 5
Joined: Mon Oct 24, 2011 9:45 am

[SOLVED]how to retrieve propertie of FEU

Post by tyty »

Hi all
I use module frontend user and i need to retrieve some properties like surname, name.
Is there a way to retrieve them after user connection.

i tried custom content but i just found a smarty tag to retrieve username (email by default)

I didn't see anything about that
Thank you for your help
Last edited by tyty on Sun Nov 06, 2011 6:51 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: how to retrieve propertie of FEU

Post by Dr.CSS »

You need to explain what you mean by retrieve...

more info = more help...
tyty
New Member
New Member
Posts: 5
Joined: Mon Oct 24, 2011 9:45 am

Re: how to retrieve propertie of FEU

Post by tyty »

hello

i'm working on a reservation module for my crossfit box
idea it's when a user is logged he can reserve a course
in this time i use a form with 2 inputs name and surname
But it will be more simple if i can recover some user properties from FEU

thanks for you help
mcDavid
Power Poster
Power Poster
Posts: 377
Joined: Tue Mar 31, 2009 8:45 pm

Re: how to retrieve propertie of FEU

Post by mcDavid »

Take a look at the FrontEndUsers.api.php file in the FrontEndUsers module. It contains a lot of functions you can use in your module. You can probably guess how they work by looking at the function names and the variables they use. You'll probably need GetUserPropertyFull().
spcherub
Power Poster
Power Poster
Posts: 402
Joined: Fri Jun 06, 2008 5:54 pm

Re: how to retrieve propertie of FEU

Post by spcherub »

Also look in the FEU Help Section:

Code: Select all

{$feu_smarty->get_user_properties($uid,$assign)}
This function can be used to extract a list of properties for the specified user and assign them to a smarty variable with the specified name.

Example:
{$feu_smarty->get_user_properties(5,'userprops')}
{$userprops|@print_r}
tyty
New Member
New Member
Posts: 5
Joined: Mon Oct 24, 2011 9:45 am

[SOLVED]how to retrieve propertie of FEU

Post by tyty »

i will take a look on this file and smarty tag
thank you for the help
spcherub
Power Poster
Power Poster
Posts: 402
Joined: Fri Jun 06, 2008 5:54 pm

Re: how to retrieve propertie of FEU

Post by spcherub »

Also if you use the {FrontEndUser} tag in your template or page, it exports all the custom fields as smarty variables. So if you have you first and surname fields defined as fname and sname, you will find you can use {$fname} and {$sname} in your template/page - As long as you have the {FrontEndUser} tag inserted above. This is your simplest option.
tyty
New Member
New Member
Posts: 5
Joined: Mon Oct 24, 2011 9:45 am

Re: how to retrieve propertie of FEU

Post by tyty »

hi
{$feu_smarty->get_user_properties($uid,'name')}

it work's thank you
Post Reply

Return to “Modules/Add-Ons”