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
[solved] $ccuser->loggedin() generates smarty error
[solved] $ccuser->loggedin() generates smarty error
Last edited by smansman on Sat May 03, 2008 6:41 pm, edited 1 time in total.
Re: $ccuser->loggedin() generates smarty error
Try to toggle off your editor in content textareasmansman 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)"
Alby
Last edited by alby on Sat May 03, 2008 5:49 pm, edited 1 time in total.
Re: [solved] $ccuser->loggedin() generates smarty error
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
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
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
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
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...
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
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.
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
Read my Reply #1, toggle your editorthebooks 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:
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
Hi,
I'm not clear on where the logic can be put outside of the content area. Can you please clarify?
Thanks,
Smriti
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
See the example:smriti wrote: I'm not clear on where the logic can be put outside of the content area. Can you please clarify?
This code (logic) is not in content area but in template (generic user not edit this).alby wrote: or BETTER drop, from content, your logic and put in template, for example:
{if $ccuser->loggedin()}
{content block="private"}
{else}
{content}
{/if}
In content put editing code only (html) and use your wysiwyg editor.
Alby