Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
copy to clipboard posts/threads after posting (Basic/Standard) editors Details »»
copy to clipboard posts/threads after posting (Basic/Standard) editors
Version: 1.0.0, by Omranic Omranic is offline
Developer Last Online: Sep 2021 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.5.3 Rating:
Released: 02-11-2006 Last Update: 02-11-2006 Installs: 9
Template Edits
 
No support by the author.

This Mod isn't supported any more!

Oh no! I just finished writting that long long post and the page didn't load.
I wish I would have made a copy in notepad. Too late for that.
I won't write it again.

After hearing that a couple hundred times I wrote this hack. When using Internet Explorer once you finished writing your post just double click any where inside the text area & whole your post will be copied to the clipboard, meaning that if the page doesn't load then you just press back in your browser, paste, and submit it again. Since most of us users forget to do a backup copy just in case this comes in handy.

Note: works on both Basic/Standard editors & it doesn't work on wysiwyg editor (i'll try to update it to work on wysiwyg editor but not now)

(screenshots?) I don't know how I would take screenshots for that.

its very simple
just two template edits


Go to template "editor_toolbar_on" &
find the following code:
HTML Code:
<textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="width:$stylevar[messagewidth]; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]">$newpost[message]</textarea>
Replace it by the following code:
HTML Code:
<a ondblclick='java_script_:window.clipboardData.setData("Text",this.innerText); alert("Source Code copied into clipboard.");'><textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="width:$stylevar[messagewidth]; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]">$newpost[message]</textarea></a>


Go to template "editor_toolbar_off" &
find the following code:
HTML Code:
<textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="width:$stylevar[messagewidth]; height:{$editor_height}px" tabindex="1">$newpost[message]</textarea>
Replace it by the following code:
HTML Code:
<a ondblclick='java_script_:window.clipboardData.setData("Text",this.innerText); alert("Source Code copied into clipboard.");'><textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="width:$stylevar[messagewidth]; height:{$editor_height}px" tabindex="1">$newpost[message]</textarea></a>

Don't Forget to Clik INSTALL if you like it

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-12-2006, 08:42 AM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice 1...
Tis a shame about the wyiswig though as i am sure most use that.... well i do
But have jst changed to the standard to test this out...

Thanks again..all working well
Reply With Quote
  #3  
Old 02-12-2006, 08:49 AM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you please stick the details in a text file and attach it to your 1st post.
Reply With Quote
  #4  
Old 02-12-2006, 10:33 AM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah please do that man..
Reply With Quote
  #5  
Old 02-12-2006, 10:50 AM
Omranic's Avatar
Omranic Omranic is offline
 
Join Date: Jan 2005
Location: Egypt
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll try to do that lateron & send you all update MSG

** Topic attached **
Reply With Quote
  #6  
Old 02-12-2006, 12:00 PM
TTG's Avatar
TTG TTG is offline
 
Join Date: May 2004
Location: Sth London
Posts: 1,042
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very useful .. thanks

Clicked install
Reply With Quote
  #7  
Old 02-12-2006, 01:30 PM
ImportPassion ImportPassion is offline
 
Join Date: Mar 2002
Location: Gilbert, AZ
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good idea, but you should try and do it on the onclick for the submit button, that way it is seamless and ppl don't have to remember to go and dblclick the textarea.
Reply With Quote
  #8  
Old 02-12-2006, 03:39 PM
AshokForums.com AshokForums.com is offline
 
Join Date: Nov 2005
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[high]* AshokForums.com clicks on install [/high]
Reply With Quote
  #9  
Old 02-12-2006, 04:18 PM
simon. simon. is offline
 
Join Date: Apr 2005
Location: UK
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

looks good...
Reply With Quote
  #10  
Old 02-12-2006, 06:41 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi...I have had to uninstall this i am afraid, there is a wee bug my friend
With this installed, you cannot turn a word into a hyperlink using the hyperlink button

Cheers anyway
Reply With Quote
Reply


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 01:57 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.08864 seconds
  • Memory Usage 2,297KB
  • Queries Executed 23 (?)
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
  • (4)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_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