[solved] FrontEndUsers - Login issue?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
rbaby
Forum Members
Forum Members
Posts: 144
Joined: Thu Feb 07, 2008 10:28 pm

[solved] FrontEndUsers - Login issue?

Post by rbaby »

CMSMS v1.12
CG Extensions 1.49.11
CG Simple Smarty 1.9.1
Custom Content 1.10
FrontEndUsers 1.30.6

I created a "secure" template with the following:

Code: Select all

{if $ccuser->loggedin()}
<h1>{title}</h1>
{content}
{else}
<h1>Login Required</h1>
<p>Please login for authorization to view content.</p>
{FrontEndUsers}
{/if}
I have a page that uses this template (page type: content--not protected) and I've used this approach in other installations before but this one doesn't seem to be cooperating. When I log in, it just refreshes the login page, no errors in console or logs that I can see at all.

Has anyone experienced this issue?
Last edited by rbaby on Thu Dec 10, 2015 10:02 pm, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: FrontEndUsers - Logging in just reloads the login page?

Post by Rolf »

Why not use the protected page content type. You don't need the (deprecated) Custom Content module...
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
rbaby
Forum Members
Forum Members
Posts: 144
Joined: Thu Feb 07, 2008 10:28 pm

Re: FrontEndUsers - Logging in just reloads the login page?

Post by rbaby »

Rolf wrote:Why not use the protected page content type. You don't need the (deprecated) Custom Content module...
Thanks Rolf, I will try that. I just got used to being able to prompt the login on every single page with the else, I didn't know how to do it as a Protected content page type.
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: [solved] FrontEndUsers - Login issue?

Post by Jeff »

The page/template might be getting cached. So it since it is render without the user being login, then everyone will see that until cache is cleared.
Post Reply

Return to “Modules/Add-Ons”