Page 1 of 1

Front End Users and Custom Content depreciated

Posted: Fri Jan 15, 2016 12:33 am
by jarradc1984
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

Re: Front End Users and Custom Content depreciated

Posted: Fri Jan 15, 2016 1:02 am
by calguy1000
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:

Code: Select all

{$uid=feu_smarty::get_current_userid()}
so...

Code: Select all

{if feu_smarty::get_current_userid()}
  {FrontEndUsers}
{else}
  {redirect_page page=$something}
{/if} 

Re: Front End Users and Custom Content depreciated

Posted: Fri Jan 15, 2016 3:27 am
by jarradc1984
Thanks so very much.