Advanced search  

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]

Pages: [1]   Go Down

Author Topic: [Coppermine for CMS]: IE not displaying popup image  (Read 2967 times)

0 Members and 1 Guest are viewing this topic.

nemanjas

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
[Coppermine for CMS]: IE not displaying popup image
« on: September 20, 2004, 04:47:23 pm »

Since nukephotogallery is not worikng I'm posting here but i'm not so sure it's nuke related problem.
It seems that URL parameter is not correctly passed to IE, Mozilla/Opera opens popup correctly.

In popup window image location for ie is:
http:///gallery/image.jpg

and for Mozilla/Opera:
http://www.sitename.com/gallery.jpg

Or i made an mistake configuring coppermine?

Anyway, its cpg 1.3.0 (i'll try upgrade it to 1.3.2 later today) and its located at http://www.nacionalnaklasa.com/coppermine.phtml and this issue applys to all images/albums.

Thanks, Nemanja.
« Last Edit: September 21, 2004, 08:29:22 am by GauGau »
Logged

nemanjas

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: IE not displaying popup image
« Reply #1 on: September 20, 2004, 06:45:27 pm »

Since i needed prompt action to make things work, i've made cpg work but it's not a proper solution. Anyway, this is piece of code that is not working properly with IE in my case (PostNuke .750RC3 and Coppermine for CMS v1.30).

Code: [Select]
<?php 
if (isset($picfile)) {
    
$picname $CONFIG['fullpath'] . $picfile;
    
$imagesize = @getimagesize($picname);
    echo 
"<img src=\"" path2url($picname) . "\" $imagesize[3] class=\"image\" border=\"0\" alt=\"$picfile\"/><br />\n"
} elseif (isset(
$pid)) {
    
$result db_query("SELECT * from {$CONFIG['TABLE_PICTURES']} where pid='$pid'");
    
$row mysql_fetch_array($result);
    
$pic_url get_pic_url($row'fullsize');
    
$geom 'width="' $row['pwidth'] . '" height="' $row['pheight'] . '"'
    print 
'<img src="' $pic_url '" ' $geom ' class="image" border="0" alt="' $lang_fullsize_popup["click_to_close"] . '">';

?>


and last line works fine if i hardcode site name...

Code: [Select]
print '<img src="http://www.nacionalnaklasa.com/' . $pic_url . '" ' . $geom . ' class="image" border="0" alt="' . $lang_fullsize_popup["click_to_close"] . '">';

It would be probably wise to use something like $MAIN_CFG['server']['domain'] instead of hardcoded value (or some other value, i didnt had time to play around since i'm at work :))

best of luck, Nemanja.
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: IE not displaying popup image
« Reply #2 on: September 20, 2004, 07:04:30 pm »

Coppermine for cms is not the same as the application we supply and support, which is the standalone version of coppermine.  The code differs from ours.

But when you do post code changes, here or on any forum, please specify which file you are talking about.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

nemanjas

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: IE not displaying popup image
« Reply #3 on: September 21, 2004, 01:13:08 am »

I thought i did write filename... it's "displayimagepopup.php".

PS. I didn't know code is different, i thought that core code is the same... If i knew that i probably wouldnt use this gallery.  >:(
Logged

Nibbler

  • Guest
Re: IE not displaying popup image
« Reply #4 on: September 21, 2004, 01:17:45 am »

That file does not even exist in coppermine standalone, so there is little we can do to help you Ii'm afraid.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 16 queries.