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
[solved] problems password protecting pages with FEU and CC modules
-
stevegos
[solved] problems password protecting pages with FEU and CC modules
Last edited by stevegos on Sun Aug 16, 2009 6:49 pm, edited 1 time in total.
Re: problems password protecting pages with FEU and CC modules
Yes.stevegos wrote: Have I missed something here?
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
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.
Code: Select all
{if $customcontent_loggedin}Code: Select all
{if $ccuser->loggedin()}-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: problems password protecting pages with FEU and CC modules
FYI: about:
this syntax is deprecated, and will be removed soon.
Code: Select all
{if $customcontent_loggedin}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.
Re: problems password protecting pages with FEU and CC modules
Too bad. I like using it so I didn't have worry about TINYmce messing up my '->'.calguy1000 wrote: FYI: about:this syntax is deprecated, and will be removed soon.Code: Select all
{if $customcontent_loggedin}
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: problems password protecting pages with FEU and CC modules
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:
therefore logic and content should not mix.
btw:
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.{if !$ccuser->loggedin()}
{redirect_page page='login'}
{/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.
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: problems password protecting pages with FEU and CC modules
I've just released a new document that should help describe how all this stuff works a bit better:
http://calguy1000.com/downloads.html
http://calguy1000.com/downloads.html
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.
-
stevegos
Re: problems password protecting pages with FEU and CC modules
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
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
-
Bo Mellberg
- Forum Members

- Posts: 10
- Joined: Fri Oct 16, 2009 12:24 pm
Re: [solved] problems password protecting pages with FEU and CC modules
Just want to add to the praise. The how-to pdf is REALLY helpful and beginners friendly.
Best regards,
/Bo
Best regards,
/Bo
