Page 1 of 1
Printing FEU details on a page
Posted: Mon Mar 09, 2009 5:13 pm
by andy25
Is there a way of printing a list of users and their custom details which i created in FEU for example there home address e.t.c?
I have a page which i created that allows for them to tick a box to have their details displayed to others. I need to create an if statement which says only if this box is ticked then print their results.
Any help would be appreciated.
Thanks in advance.
Re: Printing FEU details on a page
Posted: Mon Mar 09, 2009 6:22 pm
by alby
andy25 wrote:
Is there a way of printing a list of users and their custom details which i created in FEU for example there home address e.t.c?
I know
Frontend User Listing but never used, search in forge ...
Alby
Re: Printing FEU details on a page
Posted: Mon Mar 09, 2009 7:24 pm
by jmcgin51
Calguy's User Directory was just released.
Re: Printing FEU details on a page
Posted: Tue Mar 10, 2009 9:59 am
by andy25
This is great thanks. Works perfectly. I just need to figure out how to include the if statement.
Thanks again!
Re: Printing FEU details on a page
Posted: Tue Mar 10, 2009 3:24 pm
by tyman00
I am glad that more people besides myself can put CGUserDirectory to use, that means it wasn't a wasted sponsorship
What to you mean by including an if statement?
Re: Printing FEU details on a page
Posted: Tue Mar 10, 2009 3:31 pm
by andy25
Ive got a field called agreement in the FEU properties which is a custom field they tick when they sign up.
I only want to show the users who have ticked the box.
Ive tried things like (including the closing tags the other end):
{if ($entry.agreement > 0)}
{if $entry.agreement == 1}
e.t.c
I didnt know about the user directory one. Does this include filtering?
=========
Also on a seperate note i cannot display their email. Ive managed to show every other field i need but not this.
I have tried:
{$entry->username}
{$entry->email}
As well as the default thats in the template. None of which display the users email address.
Re: Printing FEU details on a page
Posted: Tue Mar 10, 2009 3:38 pm
by tyman00
1. It's been awhile since I beta tested CGUserDirectory (CGUD)... try doing it this way: {if ($entry->agreement == 1)}
2. Try putting {get_template_vars} in your template to see the available variables you can call into your CGUD template. This is a good tutorial to get you started with templating -->
http://calguy1000.com/Blogs/12/60/basic ... kills.html
Re: Printing FEU details on a page
Posted: Tue Mar 10, 2009 3:52 pm
by andy25
Thanks for your efforts. It didnt work..here is my code.
Name / Credentials / Position
Address
Email
Tel No.
{foreach from=$items item=entry}
{if ($entry->members_list == 1)}
{$entry.title} {$entry.first_name} {$entry.last_name}, {$entry.credentials}{$entry.position}
{$entry.work_address}
{$entry.work_postcode}
{$entry.work_country}
{if isset($entry.properties.email)}
Email Me
{/if}
{$entry.work_phone}
{/if}
{/foreach}
Re: Printing FEU details on a page
Posted: Wed Mar 11, 2009 4:03 pm
by Rolf
Hi all
I'm also using CGUserDirectory.
Very nice module, it does just what I wanted.
Thanks to Calguy and his sponsor!!!
@andy25
Try using {$oneuser.properties.first_name} in stead of {$entry.first_name}
Hope this helps a bit.
Rolf

Re: Printing FEU details on a page
Posted: Wed Mar 11, 2009 4:22 pm
by andy25
@Rolf - Thanks for your input but unfortunately this didnt work either.