Making easier to copy to the clipboard the URL from displayimage page Making easier to copy to the clipboard the URL from displayimage page
 

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]

Main Menu

Making easier to copy to the clipboard the URL from displayimage page

Started by nambroque, August 14, 2016, 10:30:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nambroque

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:
http://fotometeo.ame-web.org/displayimage.php?pid=6512
Thanks


My gallery:
Galería Fotometeo

Αndré

Open displayimage.php, find
$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
$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>';

nambroque

My gallery:
Galería Fotometeo