Page 1 of 1

[solved] CustomContent/FEUser ccuser object not working

Posted: Tue Dec 11, 2007 10:45 pm
by Gillian.Hesse
Hi there,

I have just started working with FrontEndUser and CustomContent and came across a problem when trying to check if the user is logged in.

the following code

Code: Select all

{if $ccuser->loggedin()}
    Welcome user
{else}
    You are not authorised to view this message!
{/if}
produces the following error

Code: Select all

string(131) "Smarty error: [in content:content_en line 1]: syntax error: unidentified token ';loggedin()' (Smarty_Compiler.class.php, line 1407)"
Parse error: parse error in /Library/WebServer/Documents/cmsmadesimple-1.2/tmp/templates_c/87^%%70^707^707A8977%%content%3Acontent_en.php on line 4
The custom content smarty variables like customcontent_loggedin and customcontent_loginname all exist and I can use them  It just seems strange that I can't get the ccuser object to work.  I have tried some of the other methods (->groups(), ->memberofgroup()) and get similar problems.

I am using
CustomContent 1.4.10
FrontEndUsers 1.3.1

Thanks

Gill

Re: CustomContent/FEUser ccuser object not working

Posted: Tue Dec 11, 2007 10:46 pm
by calguy1000
disable the wysiwyg, it doesn't like the -> characters they get encoded as entities.

Re: CustomContent/FEUser ccuser object not working

Posted: Tue Dec 11, 2007 10:51 pm
by Gillian.Hesse
Thanks for the quick reply.  That was exactly the problem.

thanks

Gill