[solved] $ccuser->loggedin() generates smarty error

This is a FORK of the CMS Made Simple project and is not oficially supported in any way by the CMS Made Simple development team.
Locked
smansman
Forum Members
Forum Members
Posts: 28
Joined: Wed Apr 23, 2008 6:08 pm

[solved] $ccuser->loggedin() generates smarty error

Post by smansman »

Hi. I'm running
CMS Made Simple 1.2.4b with multilanguage support from alby .
I'm using PHP 4.3.9,
MySQL 4.1.20.
Apache 2.0.52 running on Linux  2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 under centos
FrontEndUsers 1.4.2
CustomContent 1.5

I execute the following code to test out (as in the tutorial)

{if $ccuser->loggedin()}
You are authorized to see this text
{else}
You are not authorized yet, you need to log in
{/if}

and get the following error:
string(131) "Smarty error: [in content:content_en line 1]: syntax error: unidentified token ';loggedin()' (Smarty_Compiler.class.php, line 1407)"

If anyone could give me any sugestion I would be thankful
I have tried to search on the forum and google but found only something sugesting to use another function something with custom content but that did not work

Thank you in advance
Last edited by smansman on Sat May 03, 2008 6:41 pm, edited 1 time in total.
alby

Re: $ccuser->loggedin() generates smarty error

Post by alby »

smansman wrote: and get the following error:
string(131) "Smarty error: [in content:content_en line 1]: syntax error: unidentified token ';loggedin()' (Smarty_Compiler.class.php, line 1407)"
Try to toggle off your editor in content textarea

Alby
Last edited by alby on Sat May 03, 2008 5:49 pm, edited 1 time in total.
bighitter
New Member
New Member
Posts: 7
Joined: Fri Feb 29, 2008 3:09 pm

Re: [solved] $ccuser->loggedin() generates smarty error

Post by bighitter »

Hi Alby

I see you suggest you have solved this issue, I am new to CMSMS and have installed successfully version 1.3 Cuba.

I have the same issue as smansman and struggling to solve it.

You say "toggle off your editor in content text area". I know this may sound silly to you but how would I do this?

Can I ask for instructions on how to do this

Many Thanks

Big Hitter
bighitter
New Member
New Member
Posts: 7
Joined: Fri Feb 29, 2008 3:09 pm

Re: [solved] $ccuser->loggedin() generates smarty error

Post by bighitter »

Right Ok guys,

I have now disabled the wysiwyg editor and submitted the page and still despite the code being correct I get an error

It is as follows

Parse error: syntax error, unexpected T_STRING in C:\wamp\www\website\tmp\templates_c\60^%%70^707^707A8977%%content%3Acontent_en.php on line 3

I hope you can help.

I am using Cuba 1.3, PHP 5.2.5, MySQL 5.0.45 and Apache 2.2.6

Do you have any ideas guys? All help is very much appreciated

Cheers

BigHitter
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: [solved] $ccuser->loggedin() generates smarty error

Post by Dr.CSS »

Any page using FEU or any variation such as Custom content w/ FEU needs to have the Cache:  on the edit page option tab unticked...

Don't cache these pages, if you forgot then viewed the page you will get errors, go to Site Admin > Global Settings and clear the cache...
thebooks
New Member
New Member
Posts: 2
Joined: Sat May 17, 2008 7:23 am

Re: [solved] $ccuser->loggedin() generates smarty error

Post by thebooks »

thanks for all your suggestions everyone, but things are still not working for me. I have cleared the "cacheable" check box on the page, and cleared the cache on site admin - global settings. But, I am still receiving the following:

string(131) "Smarty error: [in content:content_en line 1]: syntax error: unidentified token ';loggedin()' (Smarty_Compiler.class.php, line 1407)" string(138) "Smarty error: [in content:content_en line 1]: syntax error: unidentified token ';memberof('staff')' (Smarty_Compiler.class.php, line 1407)"
Parse error: parse error, unexpected '>' in /home/faithpi/www/portal/tmp/templates_c/51^%%70^707^707A8977%%content%3Acontent_en.php on line 5

I too would be grateful for any help anyone can offer.
alby

Re: [solved] $ccuser->loggedin() generates smarty error

Post by alby »

thebooks wrote: thanks for all your suggestions everyone, but things are still not working for me. I have cleared the "cacheable" check box on the page, and cleared the cache on site admin - global settings. But, I am still receiving the following:
Read my Reply #1, toggle your editor
you have not -> but encoding chars: -$gt;

or BETTER drop, from content, your logic and put in template, for example:

{if $ccuser->loggedin()}
  {content block="private"}
{else}
  {content}
{/if}

Alby
smriti
New Member
New Member
Posts: 5
Joined: Wed Sep 24, 2008 4:12 pm

Re: [solved] $ccuser->loggedin() generates smarty error

Post by smriti »

Hi,
I'm not clear on where the logic can be put outside of the content area. Can you please clarify?

Thanks,
Smriti
alby

Re: [solved] $ccuser->loggedin() generates smarty error

Post by alby »

smriti wrote: I'm not clear on where the logic can be put outside of the content area. Can you please clarify?
See the example:
alby wrote: or BETTER drop, from content, your logic and put in template, for example:

{if $ccuser->loggedin()}
  {content block="private"}
{else}
  {content}
{/if}
This code (logic) is not in content area but in template (generic user not edit this).
In content put editing code only (html) and use your wysiwyg editor.

Alby
Locked

Return to “[locked] CMSMS MLE fork”