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:

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

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