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!
Frontendusers restrict page display
Re: Frontendusers restrict page display
$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
Installing CustomContent fixed it.
Thanks for your help.
Thanks for your help.