javascript insertion

Having trouble installing serendipity?
Post Reply
d_cee
Regular
Posts: 603
Joined: Wed Jan 18, 2006 6:32 pm
Location: UK
Contact:

javascript insertion

Post by d_cee »

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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: javascript insertion

Post by garvinhicking »

Hi!

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/
d_cee
Regular
Posts: 603
Joined: Wed Jan 18, 2006 6:32 pm
Location: UK
Contact:

Re: javascript insertion

Post by d_cee »

Hi Garvin
garvinhicking wrote: This sounds as if your index.tpl template is buggy...
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.

cheers
Dave
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: javascript insertion

Post by garvinhicking »

Hi!

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/
d_cee
Regular
Posts: 603
Joined: Wed Jan 18, 2006 6:32 pm
Location: UK
Contact:

Re: javascript insertion

Post by d_cee »

Hi Garvin
garvinhicking wrote: Hm; does it happen with the default template as well?
no it's only inserted once.

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

Post by garvinhicking »

Hi!

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/
d_cee
Regular
Posts: 603
Joined: Wed Jan 18, 2006 6:32 pm
Location: UK
Contact:

Post by d_cee »

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 :-)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Your plugin contains this line two times:

Code: Select all

{serendipity_hookPlugin hook="frontend_header"}
but I could not find this in Carls index.tpl?

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/
d_cee
Regular
Posts: 603
Joined: Wed Jan 18, 2006 6:32 pm
Location: UK
Contact:

Post by d_cee »

Hi Garvin
garvinhicking wrote:Your plugin contains this line two times:

Code: Select all

{serendipity_hookPlugin hook="frontend_header"}
but I could not find this in Carls index.tpl?
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't

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}
thanks again
Dave
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

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/
d_cee
Regular
Posts: 603
Joined: Wed Jan 18, 2006 6:32 pm
Location: UK
Contact:

Post by d_cee »

Hi Garvin
garvinhicking wrote:Which andreas08 version do you use there? The one that's in spartacus doesn't have it?
I guess this is the latest version configured for 1.1. I downloaded it from Carl's site last week.

cheers
Dave
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

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/
Post Reply