Advanced search  

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

Pages: [1]   Go Down

Author Topic: URL to show direct link to full size image  (Read 5954 times)

0 Members and 1 Guest are viewing this topic.

dshade69

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
URL to show direct link to full size image
« 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
Logged

Nibbler

  • Guest
Re: URL to show direct link to full size image
« Reply #1 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'];
Logged

dshade69

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: URL to show direct link to full size image
« Reply #2 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: URL to show direct link to full size image
« Reply #3 on: August 21, 2004, 03:59:00 am »

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

GauGau
Logged

dshade69

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: URL to show direct link to full size image
« Reply #4 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 :)
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.