Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 08:46 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:
Text 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:
Text 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
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/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:
Text Formatted Code

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

and make it
Text Formatted Code

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

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

Beandip

Anonymous
Thank you! That did the trick!
 Quote

All times are EDT. The time is now 08:46 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