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

Reply
 
Thread Tools
After posting automatically copy to clipboard Details »»
After posting automatically copy to clipboard
Version: 1.00, by Kentaurus Kentaurus is offline
Developer Last Online: Jul 2014 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 07-05-2004 Last Update: Never Installs: 14
 
No support by the author.

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 submit your post it is 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.

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

for IE, only for WYSIWYG

Info for hackers:
You may modify, improve, upgrade, redistribute this hack, include it
in another hack or yours or translate it provided you do it free of
charge and you distribute it in www.vbulletin.org at least, there is no
need to pm me asking for permission
Some portions of the code are (c) Jelsoft Enterprises Ltd.

Show Your Support

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

Comments
  #2  
Old 07-06-2004, 02:15 PM
nexialys
Guest
 
Posts: n/a
Default

hum.. is it only IE that can't keep textarea content in cache ?!

usually, anywhere i go, i can post and press back, the content is again in the field... even if i visited 3 or 4 pages after that, i just go back and the content is there...
Reply With Quote
  #3  
Old 07-06-2004, 02:18 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice
Could you make it so it does also work for the standard editor?
Reply With Quote
  #4  
Old 07-06-2004, 03:45 PM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
Nice
Could you make it so it does also work for the standard editor?
He is using the java script code for the WYSIWYG so i don't think this can be done with the standerd one, unless you make it so you have to click something before you send it.

I could be wrong.
Reply With Quote
  #5  
Old 07-06-2004, 04:16 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think I got it working for the standard editor:

In vbulletin_stdedit.js FIND
PHP Code:
function validatePost(tformsubjectValminLengthmaxLength)
{
    return 
validatemessage(tform.message.valuesubjectValminLengthmaxLengthfalsetform);

REPLACE that with
Code:
function validatePost(tform, subjectVal, minLength, maxLength)
{
	postOK = validatemessage(tform.message.value, subjectVal, minLength, maxLength, false, tform);
        if ((postOK == true) & is_ie) {
          Copied = tform.message.createTextRange();
          Copied.execCommand("Copy");
        }
        return postOK;
}
This might bemoce a very useful feature for poor IE users
Reply With Quote
  #6  
Old 07-06-2004, 04:31 PM
weaver weaver is offline
 
Join Date: Mar 2004
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks... I have this happen all the time and it's so frustrating.
Reply With Quote
  #7  
Old 07-06-2004, 04:37 PM
Kentaurus's Avatar
Kentaurus Kentaurus is offline
 
Join Date: Dec 2001
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nexialys
hum.. is it only IE that can't keep textarea content in cache ?!

usually, anywhere i go, i can post and press back, the content is again in the field... even if i visited 3 or 4 pages after that, i just go back and the content is there...
It depends a lot on your computer settings, and on the forum not sending the no-cache headers. As for my forums, if you press back then the textarea content is not there anymore. It has become frustrating for some users, even if out of 40 replies only 1 doesn't load.
Reply With Quote
  #8  
Old 07-06-2004, 04:39 PM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad to see someone got this for the standard editor.
/me clicks install
Reply With Quote
  #9  
Old 07-06-2004, 04:40 PM
Kentaurus's Avatar
Kentaurus Kentaurus is offline
 
Join Date: Dec 2001
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
I think I got it working for the standard editor:

In vbulletin_stdedit.js FIND
PHP Code:
function validatePost(tformsubjectValminLengthmaxLength)
{
    return 
validatemessage(tform.message.valuesubjectValminLengthmaxLengthfalsetform);

REPLACE that with
Code:
function validatePost(tform, subjectVal, minLength, maxLength)
{
	postOK = validatemessage(tform.message.value, subjectVal, minLength, maxLength, false, tform);
        if ((postOK == true) & is_ie) {
          Copied = tform.message.createTextRange();
          Copied.execCommand("Copy");
        }
        return postOK;
}
This might bemoce a very useful feature for poor IE users
Thanks for your code KirbyDE, it seems really useful. Do you mind if I add it to the hack?

I didn't modify the standard editor because the copy function is dhtml only used in wysiwyg. And sometimes users prefer the standard editor because the dhtml breaks their explorer (rare cases).
Reply With Quote
  #10  
Old 07-06-2004, 04:54 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Feel free to add it

I also prefer the standard-editor, as the WYSIWYG-editor sometimes just does what he wants and not what I want ^.^
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 08:59 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.06017 seconds
  • Memory Usage 2,298KB
  • 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
  • (2)bbcode_code
  • (2)bbcode_php
  • (3)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
  • (2)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
  • (9)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