Back to vBulletin 3.7 Template Modifications

VbQuickQuote
Mod Version: 1.00, by Huy Hoàng

This modification is in the archives.
vB Version: 3.7.x Rating: (1 vote - 5.00 average) Installs: 6
Released: 07 Dec 2008 Last Update: Never Downloads: 0
Not Supported Template Edits Code Changes  

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

Demo:

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

Download

No files for download.

Supporters / CoAuthors

  • Huy Hoàng

Screenshots

Click image for larger version
Name:	scr.jpg
Views:	470
Size:	79.6 KB
ID:	90279  


vblts.ru supports vBulletin®, 2022-2024