[solved] CustomContent/FEUser ccuser object not working

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
Gillian.Hesse
Forum Members
Forum Members
Posts: 37
Joined: Thu Nov 08, 2007 1:29 pm

[solved] CustomContent/FEUser ccuser object not working

Post 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
Last edited by Gillian.Hesse on Tue Dec 11, 2007 10:51 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: CustomContent/FEUser ccuser object not working

Post by calguy1000 »

disable the wysiwyg, it doesn't like the -> characters they get encoded as entities.
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.
User avatar
Gillian.Hesse
Forum Members
Forum Members
Posts: 37
Joined: Thu Nov 08, 2007 1:29 pm

Re: CustomContent/FEUser ccuser object not working

Post by Gillian.Hesse »

Thanks for the quick reply.  That was exactly the problem.

thanks

Gill
Post Reply

Return to “CMSMS Core”