[Coppermine for CMS]: IE not displaying popup image [Coppermine for CMS]: IE not displaying popup image
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

[Coppermine for CMS]: IE not displaying popup image

Started by nemanjas, September 20, 2004, 04:47:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nemanjas

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.

nemanjas

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


<?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...


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.

Casper

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.
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

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.  >:(

Nibbler

That file does not even exist in coppermine standalone, so there is little we can do to help you Ii'm afraid.