Page 1 of 1

Question about display registration information

Posted: Sat Jun 27, 2015 1:12 am
by scubindu
Hello everyone!

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.
Thank's!

Have a nice day.

Ads: Khi nói về dịch vụ interenet và truyền hình thì fpt là đơn vị tiên phong đi đầu về lĩnh vực này. Dịch vụ fpt internet cap quang xin được gửi tới quý khách hàng chương trình khuyến mãi đặc biệt khi lắp mạng fpt đống đalắp mạng fpt hà đônglắp mạng fpt hải phòng với nhiều ưu đãi vô cùng hấp dẫn khi đăng ký như sau :Tăng ngay một bộ thiết bị modem cáp quang FPT có 2 râu , phát cực tốt, có tốc độ lên đến 300Mbps. Khi các bạn có nhu cầu lắp mạng fpt hải dươnglắp mạng fpt thanh oailắp mạng fpt hưng yên hãy liên hệ ngay với chúng tôi. Chúng tôi sẽ cử nhân viên lập tức đến nhà dang ky lap mang internet fpt cho quý khách. Chúng tôi sẽ hỗ trợ tư vấn tại nhà , ký hợp đồng tại nhà , thủ tục nhanh chóng.

Re: Question about display registration information

Posted: Mon Jun 29, 2015 4:10 pm
by JohnnyB
Where are you getting "something" from?

I like to use the CustomContent module to access FEU properties and then I place all of the logic inside of a template.

But, with the FEU module, I think you need to first get the userid of the logged in user and assign that to a variable. Then, you can get user information from that user id.

*** Not Tested ***
{$feu_smarty->get_userid($username,TheID)}
{$feu_smarty->get_userinfo($TheID,'TheInfo')}
{$TheInfo} --- this will hold the user's info. But, it may be in an array, so you'll probably have to loop through it to access the values. To find the values of the array, print them out like <pre>{$TheInfo|print_r}</pre>

And, probably will need to place the logic in your page template...