hey
i have a problem with the FEU usage. i would like to present different content for different user groups on the same page. i tried to solve this with an UDT, but i need to know how to check
a) if a user is logged in
b) the user-group(s) of the logged-in user
to select which content should be displayed!
i.e.
1) user not logged in: message: you have to login
2) user logged-in, group standard: message: you are a standard user
3) user logged in, group admin: message: you are a admin...
can anybody help me?
regards
christian
FEU login status
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: FEU login status
{if $ccuser->memberof('foo_group')}
You are a member of the foo group
{elseif $ccuser->memberof('bar_group')}
You are a member of the bar group
{else}
You are not logged in, or not a member of either of the above groups.
{/if}
You are a member of the foo group
{elseif $ccuser->memberof('bar_group')}
You are a member of the bar group
{else}
You are not logged in, or not a member of either of the above groups.
{/if}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
-
- Forum Members
- Posts: 75
- Joined: Sun Jun 15, 2008 2:29 pm
Re: FEU login status
ah thanks... but i'm using FEU with advanced content!
your solution seems only to work with custom content. (i get an error using this)
greets
christian
your solution seems only to work with custom content. (i get an error using this)
greets
christian