forum.coppermine-gallery.net

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: smidge on March 11, 2004, 07:36:36 am

Title: [solved]: picture information - wrong url
Post by: smidge on March 11, 2004, 07:36:36 am
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.
Title: [solved]: picture information - wrong url
Post by: Joachim Müller on March 11, 2004, 08:04:42 am
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
Code: [Select]
   // 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
Code: [Select]
   // 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
Title: [solved]: picture information - wrong url
Post by: smidge on March 11, 2004, 11:45:05 am
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!