Welcome to Geeklog Thursday, October 18 2018 @ 03:52 pm EDT

Geeklog Forums

{ or } being stripped off.. any fixes?


Beandip

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

Status: offline

jmucchiello

Forum User
Full Member
Registered: 29/08/05
Posts: 985
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.

Beandip

Anonymous
Thank you! That did the trick!

All times are EDT. The time is now 03:52 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content