vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Quick Quote! (https://vborg.vbsupport.ru/showthread.php?t=54759)

EvilLS1 06-25-2003 10:00 PM

Quick Quote!
 
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

View before button is clicked:
Screenshot #2


Download Quick Quote (Click Here).

{edit}
For those of you who requested a Quick Quote add-on for FireFly's Quick Reply hack, click here..


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/showthrea...&postid=414625
These are two completely different modifications so be sure to check out Quick Quote II 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.

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

Quote:

Today at 05:27 AM corsacrazy said this in Post #5
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

Quote:

Today at 12:15 PM Mist said this in Post #6
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

Quote:

Today at 09:04 PM iggy123 said this in Post #20
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/showthrea...&postid=414625
These are two completely different modifications so be sure to check out Quick Quote II 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.

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

Quote:

Today at 01:42 AM gwhooooey said this in Post #25
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.
;)

[high]* Velocd installs[/high]

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

Quote:

Today at 06:58 AM lordofgun said this in Post #32
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

Quote:

Today at 01:45 AM EvilLS1 said this in Post #26
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

Quote:

Today at 07:22 AM gwhooooey said this in Post #35
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:

ajk 06-27-2003 06:10 AM

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

Quote:

Today at 08:21 AM gwhooooey said this in Post #39
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.


All times are GMT. The time now is 05:47 PM.

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.01278 seconds
  • Memory Usage 1,830KB
  • 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
  • (1)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete