Page 1 of 1
[solved] problems password protecting pages with FEU and CC modules
Posted: Fri Aug 14, 2009 1:28 pm
by stevegos
Hi
I have cmsms 1.6.3 with latest versions of FEU and CC modules.
I need to have certain pages only accessable after the user login.
I have looked on the forums and have installed the FEU and the CC modules. I have setup the users in FEU and added the login box and that appears to work. But the help on the CC module says to add this to the protected page:
{if $customcontent_loggedin > 0}
Welcome {$customcontent_loginname}
{else}
You are not authorized to view this data
{/if}
but how do I protect the content of the page?
Even when logged in the page still says you are not autorised to view this data.
Have I missed something here?
Thanks, Steve
Re: problems password protecting pages with FEU and CC modules
Posted: Fri Aug 14, 2009 3:42 pm
by jmcgin51
stevegos wrote:
Have I missed something here?
Yes.
Try this instead:
{if $ccuser->loggedin()}
Welcome {$ccuser->username}
{else}
You are not authorized to view this data
{/if}
Re: problems password protecting pages with FEU and CC modules
Posted: Fri Aug 14, 2009 4:47 pm
by Jeff
If you are doing the check on page use:
If you are putting it in the template:
Also make sure that you turn off the "cachable" flag on the option tab.
Re: problems password protecting pages with FEU and CC modules
Posted: Fri Aug 14, 2009 4:56 pm
by calguy1000
FYI: about:
this syntax is deprecated, and will be removed soon.
Re: problems password protecting pages with FEU and CC modules
Posted: Fri Aug 14, 2009 5:10 pm
by Jeff
calguy1000 wrote:
FYI: about:
this syntax is deprecated, and will be removed soon.
Too bad. I like using it so I didn't have worry about TINYmce messing up my '->'.
Re: problems password protecting pages with FEU and CC modules
Posted: Fri Aug 14, 2009 5:15 pm
by calguy1000
WYSIWYGS are for content... content is what customers edit.... customers should not have the ability to edit anything to do with logic,
therefore logic and content should not mix.
btw:
{if !$ccuser->loggedin()}
{redirect_page page='login'}
{/if}
is a great trick to just redirect the user to the login page any time they try to access a page they shouldn't have access to.
Re: problems password protecting pages with FEU and CC modules
Posted: Sat Aug 15, 2009 12:28 am
by calguy1000
I've just released a new document that should help describe how all this stuff works a bit better:
http://calguy1000.com/downloads.html
Re: problems password protecting pages with FEU and CC modules
Posted: Sun Aug 16, 2009 6:49 pm
by stevegos
Thank you Thank you Thank you.
Thats an excellent how to document. I seemed to be having a dim moment, but your guide gave excellent clarity to the process and my site now works perfectly.
Thanks again.
Steve
Re: [solved] problems password protecting pages with FEU and CC modules
Posted: Mon Oct 19, 2009 9:13 am
by Bo Mellberg
Just want to add to the praise. The how-to pdf is REALLY helpful and beginners friendly.
Best regards,
/Bo