[Solved]: Display a link to the full sized image [Solved]: Display a link to the full sized image
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

[Solved]: Display a link to the full sized image

Started by Snakeye, July 08, 2004, 04:52:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Snakeye

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

Snakeye

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

Snakeye

#2
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:
$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:
$info['URL'] = $CONFIG["ecards_more_pic_target"] . $path_to_pic ;