View Full Version : Quick Nick & Quote in QR
akanevsky
10-22-2005, 10:00 PM
I no longer support my hacks. Please feel free to update them and release new versions elsewhere as long as I get the credit for the original modification.
/*=============================================*\
|| Quick Nick & Quote in QR
||
|| Author : Anton Kanevsky
|| Works on : vBulletin 3.5.x - 3.8.x
|| Released : Jun 05, 2009
||
|| Time required to install: 1 minute
|| Difficulty: easy
\*=============================================*/
DESCRIPTION
This product gives you an opportunity to quickly insert a post owner's nickname or a quote of some on-screen selection into your quick reply. Works properly in Opera, Internet Explorer and Mozilla, both in WYSIWYG and regular editor, and under Windows 9x, ME and XP platforms.
STATISTICS
File Uploads: 1
File Changes: 1
Products to Install: 1
FEATURES
[list] Insert Name Link in Posts (in Dropdown)
Insert Quote of Selection Button in Posts (next to the Quote Button)
Auto-Detection of Quote Format (between 3.5.x & 3.8.x)
VERSION HISTORY
1.1.0
[+] Eliminated template edits.
[+] The hack is now compatible with vBulletin 3.5.x - 3.8.x.
[+] Added support for the new quote format first introduced in vBulletin 3.6.x.
1.0.2
[F] Fixed the empty-textarea-newline bug.
1.0.1
[F] Added compatibility with older browsers and platforms.
[+] One less file edit (but one more template edit ;)
1.0.0
First Release
The installation manual is contained within the attached file.
IF YOU LIKE MY HACK, PLEASE CLICK INSTALL (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=215418)
nexialys
10-23-2005, 03:34 PM
i'm soooo quick, the attachment is not even there yet.. lol
good thing, i was hoping someone make this because i'm a crap of coders...
akanevsky
10-23-2005, 03:41 PM
i'm soooo quick, the attachment is not even there yet.. lol
lol ;)
I did this back on 3.0.6, never released here for some reason. Now I finally did tho :)
Neutral Singh
10-24-2005, 10:47 AM
Very Sweet! i used to love this hack in phpbb boards but for that dreaded file-edit. Is there no wayaround to make it code-edit free ? Thanks
luck777jojo
11-03-2005, 03:41 AM
running 3.5, hack doesn't seem to be working.
akanevsky
11-03-2005, 08:02 PM
running 3.5, hack doesn't seem to be working.
Define "doesn't seem to be working".
And make sure Javascript is enabled in your browser.
luck777jojo
11-04-2005, 01:00 AM
javascript is enabled.... the problem is posts don't get quoted in QR, just gives me a blank QR box and when posting the message no quotes show up either.
Mastar
11-04-2005, 01:28 AM
When I click the 'q-Quote' button nothing happens, nothing changes.
Virtuosofriend
11-04-2005, 09:35 AM
javascript is enabled.... the problem is posts don't get quoted in QR, just gives me a blank QR box and when posting the message no quotes show up either.
same here tested in 2 boards one of them had a fresh install of vb.
akanevsky
11-04-2005, 09:25 PM
Hmm... I really can't verify the problem, but I do get users on my board complaining about this. I'll see what I can do.
akanevsky
11-08-2005, 11:53 AM
Update:
1.0.1
[F] Added compatibility with older browsers and platforms.
[+] One less file edit (but one more template edit ;)
(method KISS was utilized instead of the fancy one in version 1.0.0 ;)
TO UPGRADE:
Uninstall the previous version completely.
Install this one.
Enjoy the effects :)
D.Ilyin
11-09-2005, 02:14 PM
Dark Visor there is two sugestions for this hack: (а можно по-русски? :) )
1. when setting's for posting with QR are set to "click the button "Quik reply" for activate this option" you hack do nothing :(. Will be greate to do the same and install the text.
2. when puch nick or quick quote they placed on second line, not first.
Thank's :).
akanevsky
11-09-2005, 05:42 PM
1. Хак не может работать, если QR не активен. Как только он активизируется, кнопки начинают работать. Должны по крайней мере.
2. Ничего не могу с этим поделать - vB вставляет "начальную строчку" при загрузке окна. Зачем - непонятно, но как бы то ни было :)
D.Ilyin
11-10-2005, 05:07 AM
А нельзя, как нибудь связать те же действия что забиты за кнопкой https://vborg.vbsupport.ru/external/2005/11/2.gif и добавить те что выполняются вашим хаком? Сори в JS не очень соображаю :(.
Насколько я понял на ИМХО стоит ваш хак но он отрабатывает первую строчку нормально.
akanevsky
11-10-2005, 06:06 PM
На ИМХО стоит не мой хак. Тот, что стоит на ИМХО, не использует vBulletin API. Но тем не менее, я попробую убрать проблему со строчкой.
akanevsky
11-10-2005, 07:36 PM
Update 1.0.2:
Fixed a minor (cosmetical) empty-textarea-newline bug.
Наздоровье :)
InfidelMatt
11-15-2005, 07:13 PM
Question: Does this allow you to quote multiple posts? As in, if I go and hit 'quick edit' on three different posts, will they all show up in my quick reply box?
Thanks,
Matt
akanevsky
11-15-2005, 07:30 PM
Question: Does this allow you to quote multiple posts?
Yes.
D.Ilyin
12-07-2005, 01:41 PM
Nick with \ (for example /\B/\) inserts like /B/
[UPDATED]
And .... I have a favour to ask of you.......
just found this vB3.5 Extensions......
Can you tell where i must place this code:<phrase 1="$username">$vbphrase[originally_posted_by_x]</phrase> <if condition="$show['backlink']"><a href="$GLOBALS[backlinkurl]"><img border="0" src="$stylevar[imgdir_misc]/backlink.gif" class="inlineimg" alt="$vbphrase[view_original]" /></a></if>
in your "code modification"?
What for? Then the QQuote instert code with backlink.
Thanks in advance.
da420
12-10-2005, 10:31 PM
Looks like a good usefull hack.
Quick Question. Anyone got this working flawless on 3.5.1 ?
Thank You.
akanevsky
12-10-2005, 11:15 PM
It is working on 3.5.1.
da420
12-11-2005, 04:12 PM
Alright I did the file, and template edits per manual's instructions. I uploaded the gif file to the image/buttons directory. And, this is what I get after it's all said and done. It's only the text, and nothing happens at all when you click the button. Doesn't bring you down to the quote, nor does it put the quote in the QR box.
akanevsky
12-11-2005, 04:15 PM
It doesn't look like my hack at all...
da420
12-11-2005, 05:30 PM
How so ? It is. I followed the directions included in the zip file in this thread. The quick nick works fine, but the quick quote does not show the image I uploaded to the buttons folder, and even when you click on the text it does not add the Quote in the Quick Reply box.
akanevsky
12-11-2005, 05:58 PM
>> How So
Cause my hack does not display "Quote the Selection" text..
da420
12-11-2005, 06:10 PM
Yes. But I followed your directions included in the zip to a T. I even started from scratch and tryed again and it's still doing the exact same thing. I uploaded my gif to the images/buttons folder, made the file edit in vbulletin_textedit.js, made the 2 template edits in postbit, and postbit_legacy, and made the edit in SHOWTHREAD, and installed the product.
The code that made that text, was what was in your instalation instructions...
akanevsky
12-11-2005, 06:34 PM
Well, it works for everyone else.
da420
12-11-2005, 06:36 PM
Oh, Ok... I see how it is...
akanevsky
12-11-2005, 06:48 PM
Well, I cannot help you unless I can reproduce a problem. If you want, show me your board in a "not working" condition...
da420
12-11-2005, 08:27 PM
eh... i just followed what was in your zip file... i had to replace the button with one that matched my style... but i didnt think that would matter... here, i will link you to my template that the problem is happening on... Thank you...
http://mindifidoaj.com/index.php?styleid=4
akanevsky
12-11-2005, 09:17 PM
But I have to register there to see the button...
da420
12-11-2005, 09:26 PM
ill send you a test account login via pm... thanks...
onkel.joi
01-04-2006, 02:09 PM
Is it possible instead of botton to have a text for quick quote?
Jayphen
03-23-2006, 08:46 PM
Is there any way to have this work with "who quoted me" ?
Stifler
04-04-2006, 03:59 AM
>> How So
Cause my hack does not display "Quote the Selection" text..
thats the 'alt text' for it and is displayed if the image is not, in firefox.
i'm still getting 2 blank lines added in there.
akanevsky
04-07-2006, 10:50 PM
Is it possible instead of botton to have a text for quick quote?
Yes, feel free to modify the template as you wish.
Is there any way to have this work with "who quoted me" ?
Not without an extra modification.
Can you modify script, so nick will be inserted when user click this button ??? https://vborg.vbsupport.ru/
akanevsky
04-11-2006, 04:44 PM
Can you modify script, so nick will be inserted when user click this button ??? https://vborg.vbsupport.ru/images/smoothblue/buttons/quickreply.gif
You just click "Quote message in reply"...
I dont need whole quote, just username, and want it appear in the box before user press "post reply"
akanevsky
04-13-2006, 06:55 PM
Then you might want to replace the code on that button with the code for the "Insert Nick" button.
That's not going to work for me. I need old functionality as well.
I wanna know how to add new functioanality, not to replace.
Thanks anyway.
akanevsky
04-27-2006, 10:37 PM
Then you would use the "Insert Nick" button...
Nice Mod,
Works on 3.6.4 too
Is it possible to make compatible with Quote Backlink to the quoted post?
i mean
w00t
Thank U in advance VS
akanevsky
12-31-2006, 12:44 PM
Yes, it's possible, and one day it shall be done.
Yes, it's possible, and one day it shall be done.
Thanks, i did it myselft
in vbulletin_textedit.js
Find:
this.Insert_Quote = function(username)
and replace with:
this.Insert_Quote = function(username, postid)
Find
var new_text = '' + this.captured_selection + '';
replace with:
var new_text = '' + this.captured_selection + '';
in Postbit and Postbit_Legacy
Find:
Insert_Quote('$post[username]')
replace with:
Insert_Quote('$post[username]', '$post[postid]')
akanevsky
12-31-2006, 05:39 PM
Thanks, i did it myselft
in vbulletin_textedit.js
Find:
this.Insert_Quote = function(username)
and replace with:
this.Insert_Quote = function(username, postid)
Find
var new_text = '';
replace with:
var new_text = '';
in Postbit and Postbit_Legacy
Find:
Insert_Quote('$post[username]')
replace with:
Insert_Quote('$post[username]', '$post[postid]')
Yep. :) But when I do it, it'll be backwards compatible with 3.5.
confus
03-14-2007, 02:04 AM
I tried installing it, followed the instructions, double checked everything, everything looked right but when I clicked the quick-quote button it simply did nothing
If I selected some text in the quick reply box then clicked the quick-quote button it made the quick reply box tiny
running vB 3.6.5, have no other reply or javascript based hacks
uninstalled :(
akanevsky
03-14-2007, 05:41 PM
This is for 3.5.4, so correct functioning with 3.6 is not guaranteed.
AZone
09-16-2007, 04:05 PM
Would be nice to have it for 3.6.x as well
Please can somebody do something like this for 3.7?
This works on 3.7 like a charm
just the vbulletin_textedit.js modification is different
i've modificied this for quote linkback integrate myself
Find:
this.allowbasicbbcode=((typeof allowbasicbbcode!="undefined"&&allowbasicbbcode)?true:false);
Add this after abow code:
if(this.editorid == 'vB_Editor_QR'){this.current_selection='';this.cap tured_selection='';this.Capture_Selection=function (){if(window.getSelection){this.current_selection= window.getSelection();}else if(document.getSelection){this.current_selection=d ocument.getSelection();}else if(document.selection && document.selection.createRange){this.current_selec tion=document.selection.createRange().text;}if (is_opera){this.captured_selection=(this.current_s election != '' ? this.current_selection : this.captured_selection);}else{this.captured_selec tion=this.current_selection;}};this.Insert_Quote=f unction(username, postid){if (this.disabled || this.editorid != 'vB_Editor_QR' || this.captured_selection == ''){return false;}else{var new_text = '' + this.captured_selection + '';this.set_editor_contents(this.get_editor_conten ts() + (this.get_editor_contents().length > 0 ? (this.wysiwyg_mode ? '<br />' : '\r\n') : '') + new_text);this.captured_selection = '';return true;}}};
postbit/postbit_legacy template:
Find:
Insert_Quote('$post[username]')
Replace with:
Insert_Quote('$post[username]', '$post[postid]')
PS: Template modifications can handled by template hook locations
eliseika
09-16-2008, 09:36 PM
in my case i can't install this hack on 3.7.3 patch 1, i try to use previous post with hack manual, so seems to be working, but....
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.