forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: dshade69 on August 18, 2004, 09:35:28 am

Title: URL to show direct link to full size image
Post by: dshade69 on August 18, 2004, 09:35:28 am
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
Title: Re: URL to show direct link to full size image
Post by: Nibbler on August 19, 2004, 10:35:47 pm
Displayimage.php

Code: [Select]
$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

Code: [Select]
$info['URL'] = $CONFIG['ecards_more_pic_target'] . $CONFIG['fullpath'] . $CURRENT_PIC_DATA['filepath'] . $CURRENT_PIC_DATA['filename'];
Title: Re: URL to show direct link to full size image
Post by: dshade69 on August 20, 2004, 01:09:10 pm
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.
Title: Re: URL to show direct link to full size image
Post by: Joachim Müller on August 21, 2004, 03:59:00 am
Perl knowledge not needed, coppermine is being coded in PHP, not Perl. ;)

GauGau
Title: Re: URL to show direct link to full size image
Post by: dshade69 on September 15, 2004, 12:36:30 pm
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 :)