coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: just4u on September 16, 2006, 09:18:37 PM

Title: The fullsize-pic doesn't pop up when clicking on the intermediate size pic
Post by: just4u on September 16, 2006, 09:18:37 PM
Hi,
  When i click intermediate picture full size dosen't open in a popup window

This part is correct

<head>
<title>{TITLE}</title>
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
{META}
<link rel="stylesheet" href="themes/default/style.css" />
<script type="text/javascript" src="scripts.js"></script>
</head>

Even i did copy code from here[http://coppermine-gallery.net/demo/cpg14x/docs/faq.htm#noFullsizePopup] and past it in template.html.
But still problem with popup. When i click on the intermediate pic IE status bar showing this  javascript:;


 
Title: Re: The fullsize-pic doesn't pop up when clicking on the intermediate size pic
Post by: Nibbler on September 16, 2006, 10:10:30 PM
Post a link.
Title: Re: The fullsize-pic doesn't pop up when clicking on the intermediate size pic
Post by: just4u on September 18, 2006, 03:31:17 AM
Here
http://testweb1.filelan.com/photos/index.php
Title: Re: The fullsize-pic doesn't pop up when clicking on the intermediate size pic
Post by: Stramm on September 18, 2006, 08:42:53 AM
you don't use the original scripts.js file that comes with coppermine. Using firefox all works as expected. IE spits out an error. Following code has been added to the end of your scripts.js that seems to be the culprit

<div style="position: absolute; width: 763px; height: 60px; z-index: 100; left: 0px; top: 0px" id="layer1">
<p align="center"><script type="text/javascript"><!--
google_ad_client = "pub-8655012727411201";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p></div>
Title: Re: The fullsize-pic doesn't pop up when clicking on the intermediate size pic
Post by: Joachim Müller on September 18, 2006, 08:46:36 AM
You can't add HTML to a JS file. Remove the code Stramm refered to from script.js and add it wherever you seet fit to themes/yourtheme/template.html
Title: Re: The fullsize-pic doesn't pop up when clicking on the intermediate size pic
Post by: Nibbler on September 18, 2006, 03:22:18 PM
It's being automatically appended to the file when it is displayed by your webhost. You'll need to contact them and ask for js files to be excluded. As a workaround you could copy the javascript directly into your <head>
Title: Re: The fullsize-pic doesn't pop up when clicking on the intermediate size pic
Post by: Verve on October 20, 2006, 04:56:56 AM

I am having the same problem and I don't have the luxury of getting any help from my host.  (Long story)

I'd like to attempt this solution of copying the javascript into my <head> but I'm not 100% clear on what that entails.

I'm going to assume this means copying the entirety of the scripts.js file into my template.html file somewhere between the <head> and the </head> lines.

Where *exactly* do I insert that? (Keep replies clean people!)

Title: Re: The fullsize-pic doesn't pop up when clicking on the intermediate size pic
Post by: Nibbler on October 20, 2006, 04:59:40 AM

<script type="text/javascript">

...contents of scripts.js...

</script>


goes anywhere between <head> and </head> in template.html
Title: Re: The fullsize-pic doesn't pop up when clicking on the intermediate size pic
Post by: Verve on October 20, 2006, 05:19:08 AM

Thanks.

This worked and has solved my issue.  Large pics are opening as advertised!

I had posted about this months ago.  You can consider that solved too!

http://forum.coppermine-gallery.net/index.php?topic=30441.msg141605