Front End Users and Custom Content depreciated

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
jarradc1984
New Member
New Member
Posts: 2
Joined: Fri Jan 15, 2016 12:16 am

Front End Users and Custom Content depreciated

Post 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
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Front End Users and Custom Content depreciated

Post 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} 
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.
jarradc1984
New Member
New Member
Posts: 2
Joined: Fri Jan 15, 2016 12:16 am

Re: Front End Users and Custom Content depreciated

Post by jarradc1984 »

Thanks so very much.
Locked

Return to “Modules/Add-Ons”