Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Making easier to copy to the clipboard the URL from displayimage page  (Read 3075 times)

0 Members and 1 Guest are viewing this topic.

nambroque

  • Coppermine regular visitor
  • **
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 88
    • 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: 88
    • 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.02 seconds with 19 queries.