Page 1 of 1
[solved] $ccuser->loggedin() generates smarty error
Posted: Sat May 03, 2008 5:35 pm
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
Re: $ccuser->loggedin() generates smarty error
Posted: Sat May 03, 2008 5:47 pm
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
Re: [solved] $ccuser->loggedin() generates smarty error
Posted: Sun Jun 22, 2008 6:33 pm
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
Re: [solved] $ccuser->loggedin() generates smarty error
Posted: Sun Jun 22, 2008 7:24 pm
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
Re: [solved] $ccuser->loggedin() generates smarty error
Posted: Mon Jun 23, 2008 12:58 am
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...
Re: [solved] $ccuser->loggedin() generates smarty error
Posted: Mon Jun 23, 2008 2:43 pm
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.
Re: [solved] $ccuser->loggedin() generates smarty error
Posted: Mon Jun 23, 2008 4:29 pm
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
Re: [solved] $ccuser->loggedin() generates smarty error
Posted: Wed Jan 28, 2009 8:51 pm
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
Re: [solved] $ccuser->loggedin() generates smarty error
Posted: Fri Jan 30, 2009 8:05 am
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