Frontendusers restrict page display

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
crossland
Forum Members
Forum Members
Posts: 24
Joined: Fri Sep 11, 2009 9:55 am

Frontendusers restrict page display

Post by crossland »

Having installed the FrontEndUsers module (1.12.12), I have created a user and added them to a new group members.

Then, I have copied a template to a new one adding the following line just below the </__body> tag:

{if !$ccuser->loggedin()}{redirect_page page=’login’}{/if}

This is producing the following error:

Fatal error: Call to a member function loggedin() on a non-object in /var/www/html/tmp/templates_c/%%01^013^01360D26%%tpl_body%3A23.php on line 7

Do I need to instantiate an object first?
If so, are there any examples of how to do this?

I am using CMSMS 1.9.2.

Would be grateful for any assistance!
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Frontendusers restrict page display

Post by Wishbone »

$ccuser is an object of the CustomContent module that works with FEU to restrict access to pages. Do you also have CustomContent installed?
crossland
Forum Members
Forum Members
Posts: 24
Joined: Fri Sep 11, 2009 9:55 am

Re: Frontendusers restrict page display

Post by crossland »

Installing CustomContent fixed it.

Thanks for your help.
Post Reply

Return to “Modules/Add-Ons”