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
-
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
-
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'];
-
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.
-
Perl knowledge not needed, coppermine is being coded in PHP, not Perl. ;)
GauGau
-
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 :)