Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
AutoCopy Code and PHP to clipboard Details »»
AutoCopy Code and PHP to clipboard
Version: 1.00, by TECK TECK is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

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.

Comments
  #12  
Old 04-07-2002, 11:39 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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..
Reply With Quote
  #13  
Old 04-07-2002, 11:46 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was thinking of maybe giving every <pre> a unique ID (per page of course), and then instead of "this" in the JS use that ID.
Reply With Quote
  #14  
Old 04-07-2002, 11:50 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[high]* FireFly beats the system.
[/high]

Ok, I got it to work with my hack (PHP and stuff in boxes) that you can click the table and not just the text.

Instead of replacing <pre I replace this:
Code:
<td colspan="2" style="BORDER: #000000 1px solid; FONT-SIZE:
With the same code only with added JavaScript.
Reply With Quote
  #15  
Old 04-07-2002, 11:51 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good job firefly, as usual..
so if i understand corectly.. you fall in love with me?? hehe
Reply With Quote
  #16  
Old 04-07-2002, 05:02 PM
nsr81 nsr81 is offline
 
Join Date: Mar 2002
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this hack nakkid.
Reply With Quote
  #17  
Old 04-07-2002, 06:37 PM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool nakkid
Reply With Quote
  #18  
Old 04-10-2002, 12:06 PM
Sindatel Sindatel is offline
 
Join Date: Apr 2002
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't seem to get it to work on my 2.2.5
every time i click it copies the entire post!
and gives me 3 CopyBoxes !!!
HELP
Reply With Quote
  #19  
Old 04-11-2002, 04:24 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you have firefly's hack installed?
check his post here, related to this issue. he tells you how to edit properly the html code.
Reply With Quote
  #20  
Old 04-11-2002, 06:12 AM
squawell's Avatar
squawell squawell is offline
 
Join Date: Oct 2001
Posts: 681
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very useful hack~~

thankz ur great work~~
Reply With Quote
  #21  
Old 04-13-2002, 04:19 PM
Parker Clack Parker Clack is offline
 
Join Date: Oct 2001
Posts: 351
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nakkid:

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.

Just a thought.

Parker
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:55 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04750 seconds
  • Memory Usage 2,306KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete