javascript insertion
javascript insertion
Hi there
I'm using the lightbox plugin and for some reason the script and stylesheet links are being inserted twice into the head of my page. This also seems to happen if I use the head nugget or any anything else that inserts into the document head.
cheers
Dave
I'm using the lightbox plugin and for some reason the script and stylesheet links are being inserted twice into the head of my page. This also seems to happen if I use the head nugget or any anything else that inserts into the document head.
cheers
Dave
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: javascript insertion
Hi!
This sounds as if your index.tpl template is buggy...
Regards,
Garvin
This sounds as if your index.tpl template is buggy...
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Re: javascript insertion
Hi Garvin
cheers
Dave
The index.tpl originally came from Carl's Andreaso8 template which I edited. So I uploaded Carl's original file again without my edits and it still inserts the javascript etc twice.garvinhicking wrote: This sounds as if your index.tpl template is buggy...
cheers
Dave
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: javascript insertion
Hi!
Hm; does it happen with the default template as well? And you don't have those plugins installed two times?
Best regards,
Garvin
Hm; does it happen with the default template as well? And you don't have those plugins installed two times?
Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Re: javascript insertion
Hi Garvin
The plugin's are also only installed once, I've even uninstalled, checked that nothing is inserted, and then reinstalled.
thanks again
Dave
no it's only inserted once.garvinhicking wrote: Hm; does it happen with the default template as well?
The plugin's are also only installed once, I've even uninstalled, checked that nothing is inserted, and then reinstalled.
thanks again
Dave
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: javascript insertion
Hi!
So with the default template the output is only made once?
Regards,
Garvin
So with the default template the output is only made once?
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Hi Garvin
yes only once. I've pasted my index.tpl here so you can take a look.
thanks
Dave
BTW - I posted a new query on my external php application question
yes only once. I've pasted my index.tpl here so you can take a look.
thanks
Dave
BTW - I posted a new query on my external php application question
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Your plugin contains this line two times:
but I could not find this in Carls index.tpl?
Regards,
Garvin
Your plugin contains this line two times:
Code: Select all
{serendipity_hookPlugin hook="frontend_header"}Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Hi Garvin
thanks again
Dave
this is part of the index.tpl from Carl's Andreas08 where it appears 3 times and from where I've probably edited something I shouldn'tgarvinhicking wrote:Your plugin contains this line two times:but I could not find this in Carls index.tpl?Code: Select all
{serendipity_hookPlugin hook="frontend_header"}
Code: Select all
{serendipity_hookPlugin hook="frontend_header"}
<!-- Design by Andreas Viklund [http://andreasviklund.com] -->
<!-- Converted to Serendipity by Carl Galloway [http://www.carlgalloway.com] -->
{if $template_option.colorset == 'blue'}
<link rel="stylesheet" type="text/css" href="{serendipity_getFile file="blue.css"}" />
{elseif $template_option.colorset == 'pink'}
<link rel="stylesheet" type="text/css" href="{serendipity_getFile file="pink.css"}" />
{elseif $template_option.colorset == 'maroon'}
<link rel="stylesheet" type="text/css" href="{serendipity_getFile file="maroon.css"}" />
{elseif $template_option.colorset == 'green'}
<link rel="stylesheet" type="text/css" href="{serendipity_getFile file="green.css"}" />
{elseif $template_option.colorset == 'nuclear'}
<link rel="stylesheet" type="text/css" href="{serendipity_getFile file="nuclear.css"}" />
{else}
<!-- ****** Change default Colorset here ****** -->
<link rel="stylesheet" type="text/css" href="{serendipity_getFile file="blue.css"}" />
{/if}
<!--[if IE]>
<style>#searchform input {ldelim}margin-top:0px;{rdelim}</style>
<![endif]-->
{serendipity_hookPlugin hook="frontend_header"}
</head>
<body>
{else}
{serendipity_hookPlugin hook="frontend_header"}
{/if}Dave
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Which andreas08 version do you use there? The one that's in spartacus doesn't have it?
Best regards,
Garvin
Which andreas08 version do you use there? The one that's in spartacus doesn't have it?
Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Hm, okay...I can only maintain and check what's in spartacus.
Best regards,
Garvin
Hm, okay...I can only maintain and check what's in spartacus.
Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/