vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Show Thread Enhancements - copy to clipboard posts/threads after posting (Basic/Standard) editors (https://vborg.vbsupport.ru/showthread.php?t=107774)

Omranic 02-11-2006 10:00 PM

copy to clipboard posts/threads after posting (Basic/Standard) editors
 
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

bashy 02-12-2006 08:42 AM

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

The Realist 02-12-2006 08:49 AM

Can you please stick the details in a text file and attach it to your 1st post.

Snake 02-12-2006 10:33 AM

Yeah please do that man..

Omranic 02-12-2006 10:50 AM

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

** Topic attached **

TTG 02-12-2006 12:00 PM

very useful .. thanks

Clicked install

ImportPassion 02-12-2006 01:30 PM

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.

AshokForums.com 02-12-2006 03:39 PM

[high]* AshokForums.com clicks on install :)[/high]

simon. 02-12-2006 04:18 PM

looks good...

bashy 02-12-2006 06:41 PM

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


All times are GMT. The time now is 01:01 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01119 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete