View Full Version : Quick Quote!
EvilLS1
06-25-2003, 10:00 PM
Howdy,
This hack will allow you to reply directly (with a quote) to any post in a thread without having to load the newreply page.. In each post will be a small "QuickQoute" radio button.. When you click it a reply box will instantly drop down below that post allowing you to reply with a quote in the thread itself.
Very easy to install.. One file edit, two template edits, and one template to add.
Credits: Thanks to T?Pau's javascript add-on this hack now works with Mozilla.
screenshots
View after clicking the QuickQuote radio button:
Screenshot #1 (https://vborg.vbsupport.ru/attachment.php?attachmentid=13812)
View before button is clicked:
Screenshot #2 (https://vborg.vbsupport.ru/attachment.php?attachmentid=13840)
Download Quick Quote (Click Here). (https://vborg.vbsupport.ru/attachment.php?attachmentid=14098)
{edit}
For those of you who requested a Quick Quote add-on for FireFly's Quick Reply hack, click here. (https://vborg.vbsupport.ru/showthread.php?s=&postid=414625).
If you find this hack useful please click the install button. :)
EvilLS1
06-26-2003, 09:08 AM
Quote Selected Add-On for FireFly's Quick Reply hack:
{Edit} Not to be confused with my "Quick Quote II" hack for Quick Reply which can be found here:
https://vborg.vbsupport.ru/showthread.php?s=&postid=414625
These are two completely different modifications so be sure to check out Quick Quote II (https://vborg.vbsupport.ru/showthread.php?s=&postid=414625) aswell and decide which one you want (or you can install both of them).
Note: This is a completely separate add-on and works independantly from the Quick Quote hack posted above. Infact, no hacking is necessary for this add-on.. Its all done with javascript. This can be used in addition to the Quick Quote hack, or separately.
To use this add-on you must have FireFly's "Quick Reply" hack already installed.
How it works: Once you've installed this add-on you will see an extra button below your Quick Reply form that says "Quote Selected".
Simply hold down your left mouse button and highlight some text within a thread, then scroll down to your quick reply box and click the "Quote Selected" button.. The text that you highlighted will be inserted into the quick reply box with quote tags around it..
See Screenshot (https://vborg.vbsupport.ru/attachment.php?attachmentid=13821).
You can quote an entire post, or just certain parts of multiple posts within the thread.
Credits: I addapted this to work with vBulletin from a phpBB hack by RustyDragon.
Known issues: Doesn't work with Mozilla browsers. It works fine with internet explorer and variants. Haven't tested on Opera.
Note: If you have clickable smilies with your Quick Reply you will need to find and replace ALL occurrences of "vbform" with "post" in the following places:
vbcode.js
newreply template
newthread template
vbcode_popup_smilies template
priv_sendprivmsg template
priv_sendtobuddies template
calendar_enterevent template
editpost template
Download Quote Selected Add-On for Quick Reply:
EvilLS1
06-26-2003, 09:10 AM
Screenshot of the Quick Quote hack (not the quick reply add-on).
View of reply box after you click the radio button:
corsacrazy
06-26-2003, 09:23 AM
nice werk i was thinkin bout sumthin like this ages ago.... and looks reasonably e z 2 install :D
corsacrazy
06-26-2003, 09:27 AM
would it be possible to click the quick quote button and the text automatically goes into my existin quick reply box at the bottom ?
Dean C
06-26-2003, 10:15 AM
Nice work - this is really what i want on my forums but i'd like it to work with the quick reply hack so when you click the quick quote button or whatever that its automatically quoted in the quick reply box. Any chance you could write an addon for the hack in this thread plz :)?
- miSt
corsacrazy
06-26-2003, 10:27 AM
^ exactly wot i stated abouve ur post
EvilLS1
06-26-2003, 10:34 AM
Mist & Corsacrazy,
I'm not sure if I can do that or not, but I'll gladly give it a try this weekend.. I've spent the past 2 days just trying to figure out how to make the postid variable work with the javascript function. Turns out it was as simple as adding a prefix to the variable. Doh! :p
corsacrazy
06-26-2003, 10:38 AM
sounds gr8 mate thanks alot
Floris
06-26-2003, 12:57 PM
I like Mist's suggestion too.
Hopefully this hack gets better and bigger :)
assassingod
06-26-2003, 01:48 PM
Nicely done, good work!:D
sphinx
06-26-2003, 01:53 PM
yeah good work m8 thanks for sharing
Dean C
06-26-2003, 02:38 PM
Ok good luck then Evil :)
- miSt
SemperFidelis
06-26-2003, 02:42 PM
What about adding the multiple quote hack to it as well - all ending up in the quick reply box ?
That would really rock !
kid_ttvn
06-26-2003, 04:03 PM
It's not work with VBB 2.3. In functions.php can not find:
if ($post[usergroupid]==6) {
$post[message]=bbcodeparse2($post[pagetext],1,1,1,1);
} else {
$post[message]=bbcodeparse($post[pagetext],$forum[forumid],$post[allowsmilie]);
}
Plz EvilLS1 Fix! Thanx
InnerSelf
06-26-2003, 04:06 PM
weird tough im searching even manually to the code to serach in functions.php. but cant even find smth what looks like it, evry strange.
im running 2.2.8
so same prob as person before ;)
iggy123
06-26-2003, 04:15 PM
yea i get the same error.
EvilLS1
06-26-2003, 05:57 PM
kid_ttvn, InnerSelf, & iggy123,
I've updated the hack instructions..
In functions.php just add the code above this:
//highlight words for search engine
Sorry about that. I guess I've added another hack or something and my functions.php is slightly different. Anyway, it should work for you now.
@ NF Admin,
I'll give it a try this weekend.
@ others, thanks.. :)
gmarik
06-26-2003, 06:06 PM
Fine, fine, fine!
iggy123
06-26-2003, 07:04 PM
when i try it now - it sort of works but the quote only shows the first character of the first word and that is it.
Sam FT
06-26-2003, 07:15 PM
Today at 05:27 AM corsacrazy said this in Post #5 (https://vborg.vbsupport.ru/showthread.php?postid=412880#post412880)
would it be possible to click the quick quote button and the text automatically goes into my existin quick reply box at the bottom ?
I too like to see this happen.
Skyline_GT
06-26-2003, 08:12 PM
Today at 12:15 PM Mist said this in Post #6 (https://vborg.vbsupport.ru/showthread.php?postid=412888#post412888)
Nice work - this is really what i want on my forums but i'd like it to work with the quick reply hack so when you click the quick quote button or whatever that its automatically quoted in the quick reply box. Any chance you could write an addon for the hack in this thread plz :)?
- miSt
Wow if that's possible, it would be great.
EvilLS1
06-26-2003, 08:22 PM
Today at 09:04 PM iggy123 said this in Post #20 (https://vborg.vbsupport.ru/showthread.php?postid=413057#post413057)
when i try it now - it sort of works but the quote only shows the first character of the first word and that is it.
Hmmm.. Weird. Anyone else having this problem?
What version of VB are you using?
EvilLS1
06-26-2003, 11:19 PM
Quote Selected Add-On for FireFly's Quick Reply hack:
{Edit} Not to be confused with my "Quick Quote II" hack for Quick Reply which can be found here:
https://vborg.vbsupport.ru/showthread.php?s=&postid=414625
These are two completely different modifications so be sure to check out Quick Quote II (https://vborg.vbsupport.ru/showthread.php?s=&postid=414625) aswell and decide which one you want (or you can install both of them).
Note: This is a completely separate add-on and works independantly from the Quick Quote hack posted in this thread. Infact, no hacking is necessary for this add-on.. Its all done with javascript. This can be used in addition to the Quick Quote hack, or separately.
To use this add-on you must have FireFly's "Quick Reply" hack already installed.
How it works: Once you've installed this add-on you will see an extra button below your Quick Reply form that says "Quote Selected".
Simply hold down your left mouse button and highlight some text within a thread, then scroll down to your quick reply box and click the "Quote Selected" button.. The text that you highlighted will be inserted into the quick reply box with quote tags around it..
See Screenshot (https://vborg.vbsupport.ru/attachment.php?s=&postid=413246).
You can quote an entire post, or just certain parts of multiple posts within the thread.
Credits: I addapted this to work with vBulletin from a phpBB hack by RustyDragon.
Known issues: Doesn't work with Mozilla browsers. It works fine with internet explorer and variants. Haven't tested on Opera.
Note: If you have clickable smilies with your Quick Reply you will need to find and replace ALL occurrences of "vbform" with "post" in the following places:
vbcode.js
newreply template
newthread template
vbcode_popup_smilies template
priv_sendprivmsg template
priv_sendtobuddies template
calendar_enterevent template
editpost template
Download Quote Selected Add-On for Quick Reply:
gwhooooey
06-26-2003, 11:42 PM
Any chance you could get that to work like you have for FireFly's quick reply...for this one as well?
EvilLS1
06-26-2003, 11:45 PM
Today at 01:42 AM gwhooooey said this in Post #25 (https://vborg.vbsupport.ru/showthread.php?postid=413168#post413168)
Any chance you could get that to work like you have for FireFly's quick reply...for this one as well?
It should work with that one aswell.. Just apply those same changes in the showthread template.
Erwin
06-26-2003, 11:51 PM
Great ideas! Well done!
Velocd
06-27-2003, 02:33 AM
Nice, the "select text" and quote concept is great.
;)
* Velocd installs
Velocd
06-27-2003, 03:13 AM
I have Teck's quick reply hack installed, but there shouldn't be too much variation from Firefly's version.
Yet, I'm receiving a javascript error when I click "Quote selected."
The error is originating in this error of the code:
function emoticon(text) {
if (document.post.message.createTextRange && document.post.message.caretPos) {
var caretPos = document.post.message.caretPos;
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
document.post.message.focus();
} else {
document.post.message.value += text;
document.post.message.focus();
}
}
I've renamed the <form> to "post," and did the installation exactly, yet it doesn't seem to function.
EvilLS1
06-27-2003, 03:16 AM
Thanks fellas..
Velocd,
What browser are you using? Can you post or pm me the entire contents of your showthread_replybox template?
Edit: Ignore this attachment.. Its for another post.
EvilLS1
06-27-2003, 03:50 AM
Here's a screenshot to show how the "Quote Selection" add on works.
lordofgun
06-27-2003, 04:58 AM
Teh add-on works great except when i submit, the quote doesn't say "ORIGINALLY POSTED BY SO AND SO". If that cold be resolved, it would be great.
Skyline_GT
06-27-2003, 05:04 AM
nice
Installed :D
EvilLS1
06-27-2003, 05:11 AM
Today at 06:58 AM lordofgun said this in Post #32 (https://vborg.vbsupport.ru/showthread.php?postid=413253#post413253)
Works great except when i submit, the quote doesn't say the original author or time of the post that's quoted.
The add-on will only add quote tags to selected text.
The Quick Quote hack will show the original poster's username, but not the time.
If you want it to show the time, in the "showthread_quickquote" template just change this:
Originally posted by $post[username]
to this
Originally posted by $post[username] at $post[posttime]
gwhooooey
06-27-2003, 05:22 AM
Today at 01:45 AM EvilLS1 said this in Post #26 (https://vborg.vbsupport.ru/showthread.php?postid=413171#post413171)
It should work with that one aswell.. Just apply those same changes in the showthread template.
There's some differences in there with the code etc, so could you try and figure it out and then post the details for that reply box please
EvilLS1
06-27-2003, 05:36 AM
Today at 07:22 AM gwhooooey said this in Post #35 (https://vborg.vbsupport.ru/showthread.php?postid=413259#post413259)
There's some differences in there with the code etc, so could you try and figure it out and then post the details for that reply box please
I have no way to test this since I don't use the standalone version, but try this:
GREAT Hack!
Just installed flawlessly and tested on 2.3.0.
gwhooooey
06-27-2003, 06:17 AM
Thanks, that worked
gwhooooey
06-27-2003, 06:21 AM
Ok when I try and add a smilie as well from my quick reply, it doesn't put it into the quick reply box anymore...it just jumps to the top of the page
EvilLS1
06-27-2003, 06:48 AM
Today at 08:21 AM gwhooooey said this in Post #39 (https://vborg.vbsupport.ru/showthread.php?postid=413269#post413269)
Ok when I try and add a smilie as well from my quick reply, it doesn't put it into the quick reply box anymore...it just jumps to the top of the page
If you have clickable smilies with your Quick Reply you will need to do the following if you want to use the Quick Quote add-on:
Find and replace ALL occurrences of "vbform" with "post" in the following places:
vbcode.js
newreply template
newthread template
vbcode_popup_smilies template
That should fix it.
corsacrazy
06-27-2003, 08:00 AM
in the new addon which is great im trying sumthin like this
// Add tags around selection
emoticon( '[ quote]Originally posted by $post[username] at $post[posttime]\n' + theSelection + '\n[/ quote]\n');
document.post.message.focus();
theSelection = '';
is there any way of me getting this to werk ?
Floris
06-27-2003, 09:56 AM
Damn, this is getting better and better !!
Austin Dea
06-27-2003, 03:17 PM
Corsa: I don't think so, as there's no way for the java to tell which post it is... It just knows the page text..
gwhooooey
06-27-2003, 06:39 PM
Thanks, that fixed it...
You said...Known issues: Doesn't work with Mozilla or Opera browsers. It works fine with internet explorer and variants
Although I'm using Avant Browser which I think is the new Opera...and it works fine for me
Austin Dea
06-27-2003, 09:44 PM
No, he said:
Known issues: This doesn't work with mozilla browsers.. Clicking the QuickQuote button simply won't do anything. It works fine with Internet Explorer and Opera.
Mike11212
06-28-2003, 12:33 AM
whats the code that hides text or what not from browsers that arent the one u specify it for <-- if ie show ---> something like that I can't remember
gwhooooey
06-28-2003, 02:24 AM
Yesterday at 11:44 PM Austin Dea said this in Post #45 (https://vborg.vbsupport.ru/showthread.php?postid=413533#post413533)
No, he said:
Not for what i'm talking about
Oblivion Knight
06-28-2003, 08:13 AM
Just wondering if the attached file will help you towards having a "QuickQuote" button, that once pressed will automatically insert the quote into Quick Reply box instead of your selection method.. The file was created for use with UBB, so I'd understand if it was totally useless trying to get something similar to work with vB..
Keep on developing it, if you manage to hit the sweet spot with such a mod suggested above, this will be one popular mod to install.. :)
Regards,
Oblivion Knight
[EDIT]
File removed.
installed, a great idea!
One question, why hard code the colors?
EvilLS1
06-29-2003, 02:01 AM
Today at 03:16 AM ap0c said this in Post #49 (https://vborg.vbsupport.ru/showthread.php?postid=413794#post413794)
One question, why hard code the colors?
Thanks for pointing that out. And actually, the colors weren't hardcoded when I first uploaded the instructions.. But when I used vb.org's "edit attachment" feature it somehow replaced all the {firstaltcolor } & {secondaltcolor } tags in the hack instructions with the colors from this forum.
Anyway, its fixed now.. Just clear your browser cache and redownload the instructions.
Oblivion Knight, Thanks, I'll take a look.
Areku
09-19-2003, 08:58 AM
I'm uninstalling this one.
Upon people pasting or creating really long posts on really long threads, this hack makes the pages weitght the double!
MaDCaT75
09-19-2003, 09:06 AM
Nice hack.... I love quoting mulitple people in conjunction with the quick reply!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.