Page 1 of 1

Frontendusers restrict page display

Posted: Sun Mar 20, 2011 4:45 pm
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!

Re: Frontendusers restrict page display

Posted: Sun Mar 20, 2011 7:42 pm
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?

Re: Frontendusers restrict page display

Posted: Sun Mar 20, 2011 9:52 pm
by crossland
Installing CustomContent fixed it.

Thanks for your help.