Subject: { or } being stripped off.. any fixes?

Posted on: 15/04/07 12:35am
By: Anonymous

I'm trying to make use of some cool javascript code in my geeklog template and it appears that Geeklog assumes the the code in between the { and } is a variable and keeps stripping it. The line of code looks like this:
PHP Formatted Code
<script language="javascript" type="text/javascript">
    new Rico.Effect.Round( null, 'blah', {corners:'top,bottom',bgColor:'#97A1AA'} );
 </script>
After it has been rendered, the page source reports this:
PHP Formatted Code
<script language="javascript" type="text/javascript">
    new Rico.Effect.Round( null, 'blah',  );
 </script>
Currently I have this code in my footer.thtml file... In this article they talk about it too, but no resolution is given. Any ideas on how to get by this? Thanks

Re: { or } being stripped off.. any fixes?

Posted on: 15/04/07 01:02am
By: jmucchiello

The only possible way to fix this is to go into lib-common.php and find the function COM_siteFooter. Find this line:
PHP Formatted Code

    $footer = new Template( $_CONF['path_layout']);
 

and make it
PHP Formatted Code

    $footer = new Template( $_CONF['path_layout'], "keep" );
 

This tells the template library not to delete unknown replacement strings.

Re: { or } being stripped off.. any fixes?

Posted on: 15/04/07 03:21am
By: Anonymous

Thank you! That did the trick!

Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=75865