PDA

View Full Version : Mini Mods - VbQuickQuote


Huy Ho?ng
12-06-2008, 10:00 PM
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/attachment.php?attachmentid=90279&stc=1&d=1228659832

Setup:
* -Edit showthread template
o Find
</head>
o Add up

<!-- 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_txt+''+'\n' ;
}
else
{
quote.value += "@"+username+" :";
}
}
</script>
<!-- / VbQuickQuote By MK -+++++++++++++.com-->

* -Edit Postbit ( Postbit_Legacy ) template :
o Find

<!-- control -->
o Add up

<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.