Page 1 of 1

javascript insertion

Posted: Mon Aug 21, 2006 4:59 pm
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

Re: javascript insertion

Posted: Mon Aug 21, 2006 5:02 pm
by garvinhicking
Hi!

This sounds as if your index.tpl template is buggy...

Regards,
Garvin

Re: javascript insertion

Posted: Mon Aug 21, 2006 5:23 pm
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

Re: javascript insertion

Posted: Mon Aug 21, 2006 8:05 pm
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

Re: javascript insertion

Posted: Mon Aug 21, 2006 9:47 pm
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

Re: javascript insertion

Posted: Tue Aug 22, 2006 9:40 am
by garvinhicking
Hi!

So with the default template the output is only made once?

Regards,
Garvin

Posted: Tue Aug 22, 2006 12:05 pm
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 :-)

Posted: Tue Aug 22, 2006 12:28 pm
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

Posted: Tue Aug 22, 2006 12:39 pm
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

Posted: Tue Aug 22, 2006 2:47 pm
by garvinhicking
Hi!

Which andreas08 version do you use there? The one that's in spartacus doesn't have it?

Best regards,
Garvin

Posted: Tue Aug 22, 2006 3:31 pm
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

Posted: Tue Aug 22, 2006 4:35 pm
by garvinhicking
Hi!

Hm, okay...I can only maintain and check what's in spartacus. :)

Best regards,
Garvin