Version: 1.00, by TECK
Developer Last Online: Nov 2023
Version: 2.2.x
Rating:
Released: 04-06-2002
Last Update: Never
Installs: 26
No support by the author.
This hack will allow you to copy the text quoted in Code and PHP, to your clipboard, with a simple double-click.
This is extremly useful if your users utilise frequently the code environment.
Once installed the hack, if an user double-click in the quoted area, an alert will popup let him(her) know that the code was copied to the clipboard.
ESTIMATED INSTALL TIME: 1 minute
TESTED IN VERSION: 2.2.5
[HIGH]NOTE:[/HIGH] As a thank you for using my hack, please click on the INSTALL button. You will receive updates in your email, whenever I add new features to it and it will let me evaluate better the quality of my hacks.
[HIGH]Also post a reply with your comments. Your oppinion is important to me.[/HIGH]
To use this hack with FireFly's Quote, Code and PHP hack, read the instructions mentioned here.
To download the latest version of this hack, click below:
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Originally posted by FireFly Yeah, you must click inside the text and not just anywhere in the table (because the <pre> ends before the table).
Maybe with some more Javscript you can make the whole table double-clickable?
you cant.. unfortunatelly. the code is looking only for a segment of code related to whatever variable you select (in our case [high]<pre[/high]), to paste it. if you select ather area, it will paste everything, including the html code. i would make more clear the message:
[high](double-click the code segment to copy to clipboard)[/high] or something like that...
if you dont click on the actual code, it will not work. talking abot this, how can we remove the space? if you click on the first line (even is it's outside the text), in your example, it works. in the empty space below, it doesnt. VB adds some extra space there... only in CODE and PHP. maybe you can tell us here firefly how to remove this pesky space in both CODE and PHP.. it is not very estethic..
Is there anyway to incorporate this in with the quotereply template so when someone clicks on the quote icon the text that is in the post is copied to the clipboard?
So instead of putting the
Code:
Quote:
Originally posted by $originalposter $pagetext
that this template puts into a new post it would just copy $pagetext to the clipboard? That way it when they go to reply and the page won't load they haven't lost what they just typed. Or better yet it would be cool if it was a feature that when they typed a message it would just copy the contents to the clipboard and then you could just cut and paste. The information copied to the clipboard would change each time you posted a new message.