URL to show direct link to full size image URL to show direct link to full size image
 

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

URL to show direct link to full size image

Started by dshade69, August 18, 2004, 09:35:28 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dshade69

I have set up Coppermine to allow for friends of my to upload images and link to them from journals.  What I want is for the URL to show as the direct link to the full sized image and not the displayimage.php url that shows currently.  Users can get the direct link by right clicking on the image right now and bringing up properties, but I would like for things to be simpler for them.

Thank you,

Cory

Nibbler

Displayimage.php

$info['URL'] = '<a href="' . $CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') .basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . '" >' . $CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') . basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . '</a>';

Switch to

$info['URL'] = $CONFIG['ecards_more_pic_target'] . $CONFIG['fullpath'] . $CURRENT_PIC_DATA['filepath'] . $CURRENT_PIC_DATA['filename'];

dshade69

Thanks for the help, I had located that section of the code but had been searching for hours for how to change it since I know very little of perl.

Joachim Müller

Perl knowledge not needed, coppermine is being coded in PHP, not Perl. ;)

GauGau

dshade69

And that is certainly what I meant...call it just getting ready to get off work in the morning and being kind of out of it :)