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: Making easier to copy to the clipboard the URL from displayimage page  (Read 3007 times)

0 Members and 1 Guest are viewing this topic.

nambroque

  • Coppermine regular visitor
  • **
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 85
    • Galería Fotometeo

Hi
One of the fields displayed at displayimage is the URL
If you clik on it, the displayimage page is opened, but it was already open.
I wonder if, instead of this, when clicking on the link, the link is selected, so that it could be easily copied to the clipboard (the same as happens here in the forum when using the code function):

Example:
Now it is like this:
http://fotometeo.ame-web.org/displayimage.php?pid=6512
But I'd like something like this:
Code: [Select]
http://fotometeo.ame-web.org/displayimage.php?pid=6512
Thanks


Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764

Open displayimage.php, find
Code: [Select]
$info[$lang_picinfo['URL']] = '<a href="' . $CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') .basename($CPG_PHP_SELF) . "?pid={$CURRENT_PIC_DATA['pid']}" . '" >' . $CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') . basename($CPG_PHP_SELF) . "?pid={$CURRENT_PIC_DATA['pid']}" . '</a>';and replace with
Code: [Select]
$info[$lang_picinfo['URL']] = '<textarea rows="1" style="width: 100%;" onclick="this.select();">' . $CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') . basename($CPG_PHP_SELF) . "?pid={$CURRENT_PIC_DATA['pid']}" . '</textarea>';
Logged

nambroque

  • Coppermine regular visitor
  • **
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 85
    • Galería Fotometeo
Re: Making easier to copy to the clipboard the URL from displayimage page
« Reply #2 on: August 16, 2016, 06:20:49 pm »

Thanks!
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.