The fullsize-pic doesn't pop up when clicking on the intermediate size pic The fullsize-pic doesn't pop up when clicking on the intermediate size pic
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

The fullsize-pic doesn't pop up when clicking on the intermediate size pic

Started by just4u, September 16, 2006, 09:18:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

just4u

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:;


 



Stramm

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>

Joachim Müller

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

Nibbler

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>

Verve


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!)


Nibbler


<script type="text/javascript">

...contents of scripts.js...

</script>


goes anywhere between <head> and </head> in template.html

Verve


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