Page 1 of 1

FEU login status

Posted: Mon Aug 22, 2011 4:57 pm
by NashBridges
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

Re: FEU login status

Posted: Mon Aug 22, 2011 5:11 pm
by calguy1000
{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}

Re: FEU login status

Posted: Mon Aug 22, 2011 5:20 pm
by NashBridges
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