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

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

[solved]: picture information - wrong url

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

Previous topic - Next topic

0 Members and 1 Guest 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!