Advanced search  

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]

Pages: [1]   Go Down

Author Topic: [Solved]: Display a link to the full sized image  (Read 2705 times)

0 Members and 1 Guest are viewing this topic.

Snakeye

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
[Solved]: Display a link to the full sized image
« on: July 08, 2004, 04:52:52 pm »

Hi,

I was wondering if it's possible to display a link to the full sized image below the normal view. It see the file information and the name of the image, but a direct link would be awesome.

Please let me know if this is possible.

Thanks
« Last Edit: July 09, 2004, 06:58:13 am by GauGau »
Logged

Snakeye

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: Display a link to the full sized image
« Reply #1 on: July 08, 2004, 06:24:34 pm »

Never mind. I solved it. Wasn't that difficult.
Logged

Snakeye

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: [Solved]: Display a link to the full sized image
« Reply #2 on: July 12, 2004, 12:38:03 am »

For those looking to do the same thing (I found some posts that requested something similar). Here is what you have to do:

Open displayimage.php

Find:
Code: [Select]
$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>';
Replace with:
Code: [Select]
$info['URL'] = $CONFIG["ecards_more_pic_target"] . $path_to_pic ;
« Last Edit: July 12, 2004, 08:43:41 am by GauGau »
Logged
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 20 queries.