Hi There,
Now that Custom Content is depreciated how do i perform the FEU equivalent of:
{if $ccuser->loggedin()}
i have scoured the forum and read the changelog however i have failed to find a solution.
in brief i have created a login page that i would like to redirect to another page if the user is already logged in.
i orginally would have used
{if $ccuser->loggedin()}
{FrontEndUsers}
{else}
{redirect_page page='some-page-alias'}
{/if}
Please help. Thanks in advance.
CMS Version 1.12.1
FrontEndUsers 1.30.5
PHP Version 5.4.43
Front End Users and Custom Content depreciated
-
jarradc1984
- New Member

- Posts: 2
- Joined: Fri Jan 15, 2016 12:16 am
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Front End Users and Custom Content depreciated
From the FrontEndUsers module help:
{feu_smarty::get_current_userid()}
This function returns the integer user id if the currently logged in user (if any).
Example:
so...
{feu_smarty::get_current_userid()}
This function returns the integer user id if the currently logged in user (if any).
Example:
Code: Select all
{$uid=feu_smarty::get_current_userid()}Code: Select all
{if feu_smarty::get_current_userid()}
{FrontEndUsers}
{else}
{redirect_page page=$something}
{/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.
-
jarradc1984
- New Member

- Posts: 2
- Joined: Fri Jan 15, 2016 12:16 am
Re: Front End Users and Custom Content depreciated
Thanks so very much.
