vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Mini Mods - VbQuickQuote (https://vborg.vbsupport.ru/showthread.php?t=198227)

Huy Ho?ng 12-06-2008 10:00 PM

VbQuickQuote
 
Function: Quote fast. Just to hightlight the need to quote text and click link, the hightlight automatically will move to frame answered quickly.

Demo: https://vborg.vbsupport.ru/attachmen...1&d=1228659832

Setup:
* -Edit showthread template
o Find
PHP Code:

                                  </head

o Add up

PHP Code:

<!-- VbQuickQuote By MK -->
                  <
script type="text/javascript">
                  function 
quick_quote() 
                  {
                         
quote_txt='';
                         if (
document.getSelection
                         {
                                
quote_txt=document.getSelection();
                         }
                         else if (
document.selection
                         {
                                
quote_txt=document.selection.createRange().text;
                         }
                         if (
dle_txt.replace(" ","") != ""
                         {
                                
quote_txt=''+quote_txt;
                         }
                  }
                  function 
quick_ins(username
                  {
                         var 
quote=document.getElementById('qrform').message;
                         if (
quote_txt!= ""
                         { 
                               
quote.value +='[quote=\"'+username+'\"]'+quote_txt+'[/quote]'+'\n' ;
                         }
                         else 
                         { 
                              
quote.value += "[b]@"+username+"[/b] :"
                         }
                  }
                  </
script>
                  <!-- / 
VbQuickQuote By MK -+++++++++++++.com--> 

* -Edit Postbit ( Postbit_Legacy ) template :
o Find

PHP Code:

                  <!-- control --> 

o Add up

PHP Code:

 <a onmouseover="quick_quote();" href="#" onClick="quick_ins('$post[username]'); return false;">[Quick Quote]</a

Have fun!!


Please click Mark as Installed if you want to get support for this mod

M-Tuning 12-07-2008 04:24 PM

Nice, thanks!

SEOvB 12-07-2008 06:09 PM

Thats pretty cool, but i'm not sure how clicking, highlighting and dragging, then pressing "quick quote" is fast than simply pressing "quote"

Spank 12-07-2008 11:19 PM

If you only want a specific portion of the text to be quoted it would be quicker, plus there's no page reload.


All times are GMT. The time now is 11:43 AM.

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.01439 seconds
  • Memory Usage 1,740KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete