Page 1 of 1

FrontendUser / TinyMCEAdv changes && to &&

Posted: Tue Jan 15, 2008 8:36 am
by giggler
I keep having this problem when I submit the code. If i type in the code without wysiwyg then it's fine when I hit apply. Then hit submit and it gives a smarty error

Code: Select all

{if $ccuser->loggedin() && $ccuser->memberof('members') && $ccuser->ipmatches('192.168.0.0/24')}
Welcome logged in local member
{elseif $ccuser->loggedin() && $ccuser->memberof('active')}
Welcome logged in member
{elseif $ccuser->loggedin()}
{cms_module module='FEUPayPal' action='default'}
{else}
Anonymous user
{/if}

Re: FrontendUser / TinyMCEAdv changes && to &&

Posted: Thu Jan 17, 2008 10:27 am
by hexdj
I have the same issue

Re: FrontendUser / TinyMCEAdv changes && to &&

Posted: Thu Jan 17, 2008 2:52 pm
by giggler
I've changed it to use this method and make sure you paste it in the popup (click on html icon) and not into the content box directly...this seem to be working since it doesn't have the && anyway:

Code: Select all

{if $customcontent_loggedin}
Welcome <b>{$customcontent_loginname}</b><br />
{cms_module module='FormBuilder' form='formname'}
{else}
<h1>You are not authorized to view this data</h1>
{/if}

Re: FrontendUser / TinyMCEAdv changes && to &&

Posted: Thu Jan 17, 2008 5:25 pm
by hexdj
Yeah I've the disable wysiwig checkbox show under every instance of TinyMCE, it comes in very handy. I can apply and submit the new contents and everything, but when I go back the > replaces the greater than sign. What's strange is that I do want &nsbp; in one of my lines, but that gets replaced by a single space.

Thanks for posting your method, I will try it out now.