Welcome to Geeklog Monday, November 20 2017 @ 09:40 pm EST


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/2005
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 EST. The time is now 09:40 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