This page in: English - Deutsch - Español - Français - Italiano - Lietuvių - Nederlands - Norsk - Polski - Русский - Svenska - Tiếng Việt - عربي - 日本語 简体中文
Front End Users
tip #1: to replace a login form with a welcome message and signout link, on successful login by a particular usergroup, use this in your template:
<!--customContent: startif group=DummyUserGroupName -->
{cms_module module='FrontEndUsers' form='logout'}
<!--customContent: else -->
{cms_module module='FrontEndUsers' form='login'}
<!--customContent: endif -->
another form of code:
{if $ccuser->loggedin() && $ccuser->memberof('members')}
{cms_module module=FrontEndUsers form=logout}
{content}
{else}
{global_content name='Front End Users'}
{/if}
note: requires the Custom Content module.
Get User Properties
Here is a snippet of SMARTY to access and printout FEU properties for the currently logged in user.
{if $customcontent_loggedin > 0}
<p>Welcome <strong>{$customcontent_loginname}</strong></p>
{$feu_smarty->get_user_properties($customcontent_loggedin,'userprops')}
<h3>Userprops</h3>
{$userprops|print_r}
{else}
<p>You are not logged in.</p>{/if}
To display a specific user property, use: {$userprops.propertyname)
note: requires the Custom Content module.
Credit: kendo451
Related links:
This page in:
English -
Deutsch -
Español -
Français -
Italiano -
Lietuvių -
Nederlands -
Norsk -
Polski -
Česky -
Русский -
Svenska -
Tiếng Việt -
عربي -
日本語
简体中文
