Page 1 of 1

Display FEU information to user

Posted: Tue Jan 06, 2015 10:37 am
by pwg
Hi,

I'm having trouble working out how to display FEU registration information to the user.

My client is hoping to be able to have users login - enter some data, answer a few questions, and then make this entered data viewable to only the user (and site admins).

I've tried adding

Code: Select all

{$feu_smarty->get_userinfo($something.userid,'uinfo')}
to the smarty data input on the options tab, calling {$something} (and {$something.userid}in the template but no go.

Any ideas? Or am I going about this completely the wrong way?

Thanks again for any help.

Cheers,

Paul

Re: Display FEU information to user

Posted: Tue Jan 06, 2015 6:31 pm
by Dr.CSS
Try User Directory...

Re: Display FEU information to user

Posted: Wed Jan 07, 2015 8:24 am
by Jeff
You first need to get the logged in userid -- I usually use the CustomContent module, but it might be in a smarty var by FEU check {get_template_vars}

Then once you have the userid you can use the call that you referenced:

Code: Select all

{$feu_smarty->get_userinfo($userid, $myinfo);
Then you would use {$myinfo.something} further in the page or template. Use |@print_r on the variable to see what is in it.

I would be careful where you place them, referencing something in a template that originated in a page is usually a bad idea.

Thanks,
Jeff

Re: Display FEU information to user

Posted: Thu Jan 08, 2015 9:36 pm
by pwg
Thanks Dr and Jeff,

Appreciate the advice - I'll have a play and see how it goes.

cheers,

Paul