Question about display registration information

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
scubindu

Question about display registration information

Post 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.
Last edited by scubindu on Fri Aug 07, 2015 7:13 am, edited 6 times in total.
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Re: Question about display registration information

Post 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...
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
Locked

Return to “Modules/Add-Ons”