Advanced search  

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

Pages: [1]   Go Down

Author Topic: [solved]: picture information - wrong url  (Read 2810 times)

0 Members and 1 Guest are viewing this topic.

smidge

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
[solved]: picture information - wrong url
« 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
[solved]: picture information - wrong url
« Reply #1 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
Logged

smidge

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
[solved]: picture information - wrong url
« Reply #2 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!
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 18 queries.