Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 07:58 am EST
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:
new Rico.Effect.Round( null, 'blah', {corners:'top,bottom',bgColor:'#97A1AA'} );
</script>
After it has been rendered, the page source reports this:
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
Text Formatted Code
<script language="javascript" type="text/javascript">new Rico.Effect.Round( null, 'blah', {corners:'top,bottom',bgColor:'#97A1AA'} );
</script>
Text Formatted Code
<script language="javascript" type="text/javascript">new Rico.Effect.Round( null, 'blah', );
</script>
15
22
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:
$footer = new Template( $_CONF['path_layout']);
and make it
$footer = new Template( $_CONF['path_layout'], "keep" );
This tells the template library not to delete unknown replacement strings.
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.
18
24
Quote
Beandip
Anonymous
Thank you! That did the trick!
14
38
Quote
All times are EST. The time is now 07:58 am.
- 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