[solved]: picture information - wrong url [solved]: picture information - wrong url
 

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

[solved]: picture information - wrong url

Started by smidge, March 11, 2004, 07:36:36 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

smidge

A couple of other people had a similar problem but their fixes don't apply to me as far as I can tell.

I'm sure this is a simple fix. The URL shown in the Picture Information is missing "displayimage.php" from the URL.

For instance:

Go here http://www.ocf.berkeley.edu/~mikehorn/gallery/displayimage.php?pos=-1053 and look at the information for the picture.

The URL shown is http://www.ocf.berkeley.edu/~mikehorn/gallery/?pos=-1053 which doesn't get you the picture.

Do you know how/where to fix this? Thanks.  :D

I love the gallery btw, hence the large number of pictures and things.

Joachim Müller

there seems to be a problem on your server with the var $_SERVER['PHP_SELF']. To fix this for you, edit displayimage.php and find    // Create the absolute URL for display in info
    $info['URL'] = '<a href=' . $CONFIG["ecards_more_pic_target"] . '/' . basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . ' >' . $CONFIG["ecards_more_pic_target"] . '/' . basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . '</a>';
and replace with    // Create the absolute URL for display in info
    $info['URL'] = '<a href=' . $CONFIG["ecards_more_pic_target"] . '/displayimage.php?pos=-' . $CURRENT_PIC_DATA[pid] . ' >' . $CONFIG["ecards_more_pic_target"] . '/displayimage.php?pos=-' . $CURRENT_PIC_DATA[pid] . '</a>';

You my run into problems on other coppermine pages as well though...

GauGau

smidge

Thanks! It seems to be working. I appreciate the speedy response too. Service is top notch!  :D

I use this for a research group that I'm in and I also recommend it to friends. It's great! Thanks again!