Printing FEU details on a page

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
andy25
Forum Members
Forum Members
Posts: 13
Joined: Thu Jan 22, 2009 2:24 pm

Printing FEU details on a page

Post 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.
alby

Re: Printing FEU details on a page

Post 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
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Printing FEU details on a page

Post by jmcgin51 »

Calguy's User Directory was just released.
andy25
Forum Members
Forum Members
Posts: 13
Joined: Thu Jan 22, 2009 2:24 pm

Re: Printing FEU details on a page

Post by andy25 »

This is great thanks.  Works perfectly.  I just need to figure out how to include the if statement. 

Thanks again!
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: Printing FEU details on a page

Post 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?
Last edited by tyman00 on Tue Mar 10, 2009 3:33 pm, edited 1 time in total.
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
andy25
Forum Members
Forum Members
Posts: 13
Joined: Thu Jan 22, 2009 2:24 pm

Re: Printing FEU details on a page

Post 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.
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: Printing FEU details on a page

Post 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
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
andy25
Forum Members
Forum Members
Posts: 13
Joined: Thu Jan 22, 2009 2:24 pm

Re: Printing FEU details on a page

Post 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}

User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Printing FEU details on a page

Post 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  :)
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
andy25
Forum Members
Forum Members
Posts: 13
Joined: Thu Jan 22, 2009 2:24 pm

Re: Printing FEU details on a page

Post by andy25 »

@Rolf -  Thanks for your input but unfortunately this didnt work either. 
Post Reply

Return to “Modules/Add-Ons”