[solved] problems password protecting pages with FEU and CC modules

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
stevegos

[solved] problems password protecting pages with FEU and CC modules

Post 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
Last edited by stevegos on Sun Aug 16, 2009 6:49 pm, edited 1 time in total.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: problems password protecting pages with FEU and CC modules

Post 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}
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: problems password protecting pages with FEU and CC modules

Post by Jeff »

If you are doing the check on page use:

Code: Select all

{if $customcontent_loggedin}
If you are putting it in the template:

Code: Select all

{if $ccuser->loggedin()}
Also make sure that you turn off the  "cachable" flag on the option tab.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: problems password protecting pages with FEU and CC modules

Post by calguy1000 »

FYI: about:

Code: Select all

{if $customcontent_loggedin}
this syntax is deprecated, and will be removed soon.
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.
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: problems password protecting pages with FEU and CC modules

Post by Jeff »

calguy1000 wrote: FYI: about:

Code: Select all

{if $customcontent_loggedin}
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 '->'.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: problems password protecting pages with FEU and CC modules

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

Re: problems password protecting pages with FEU and CC modules

Post 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
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.
stevegos

Re: problems password protecting pages with FEU and CC modules

Post 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
Bo Mellberg
Forum Members
Forum Members
Posts: 10
Joined: Fri Oct 16, 2009 12:24 pm

Re: [solved] problems password protecting pages with FEU and CC modules

Post by Bo Mellberg »

Just want to add to the praise. The how-to pdf is REALLY helpful and beginners friendly.

Best regards,

/Bo
Locked

Return to “Modules/Add-Ons”