wu :: forums (http://www.ocf.berkeley.edu/~wwu/cgi-bin/yabb/YaBB.cgi)
general >> guestbook >> Multiple Quotes In A Single Post
(Message started by: K Sengupta on Jun 26th, 2007, 1:26am)

Title: Multiple Quotes In A Single Post
Post by K Sengupta on Jun 26th, 2007, 1:26am
I have been a member of this website for a little over  19 months to this day.

I require some assistance in the following matter:

In the process of replying to comment(s) made by member(s) of  the website, I am unable to quote  more than one comment (or any of its portion thereof).

However, I have observed some of  the other replies where the said responses were inclusive of multiple quotes, that is, more than one comment  or a portion threreof were successfully quoted in a successful manner.

I may add that I do not experience any such difficulty while quoting a single response.

Consequently, I am looking for a way to be able to incorporate multiple quotes in my own response.

Any assistance from  the members on the foregoing will be greatly appreciated.

Title: Re: Multiple Quotes In A Single Post
Post by JiNbOtAk on Jun 26th, 2007, 2:08am
I'm not sure how the other members do it, but what I do is I opened up the link for the other quote in another tab, then I copy and paste the link in the text box. For example, a quote from the 19th Century riddle in the What Happened section :


on 06/25/07 at 10:34:34, ima1trkpny wrote:
Ahhh... come on Iceman...  ;) don't get your panties in a wad.


And another from the What Am I section :


on 06/25/07 at 09:08:20, FiBsTeR wrote:
We should pull Iceman away from Shakespeare and Disney so he can make more quizzes.


If anyone have a shortcut, do share it !!

Title: Re: Multiple Quotes In A Single Post
Post by towr on Jun 26th, 2007, 2:39am

on 06/26/07 at 02:08:03, JiNbOtAk wrote:
I'm not sure how the other members do it, but what I do is I opened up the link for the other quote in another tab, then I copy and paste the link in the text box.
That's what I do too.
Occasionally I also first copy everything I want to respond to to an editor, so I have a better overview when making a post. The reply-area in the browser is sometimes uncomfortably small.

Title: Re: Multiple Quotes In A Single Post
Post by TenaliRaman on Aug 18th, 2007, 11:05pm
Is it possible to add checkboxes to each post and simply put a multiple quote button at the end of the page, which will run through all the checkboxes and call quotes on each of them?? Does yabb allow for this? One can do this on the clientside instead of the serverside if its a possibility??

-- AI

Title: Re: Multiple Quotes In A Single Post
Post by towr on Aug 19th, 2007, 7:04am

on 08/18/07 at 23:05:33, TenaliRaman wrote:
Is it possible to add checkboxes to each post and simply put a multiple quote button at the end of the page, which will run through all the checkboxes and call quotes on each of them?? Does yabb allow for this?
I don't know whether YaBB has that option; it has a lot of options that aren't used on this board, though (a number of which were turned off in the last update, way back, to cut down the strain on the server).


Quote:
One can do this on the clientside instead of the serverside if its a possibility??
It should be possible to do it clientside, by making an appropriate greasemonkey-userscript.
So if anyone wants to volunteer making one... ;)

Title: Re: Multiple Quotes In A Single Post
Post by TenaliRaman on Aug 19th, 2007, 8:38am

on 08/19/07 at 07:04:45, towr wrote:
It should be possible to do it clientside, by making an appropriate greasemonkey-userscript.
So if anyone wants to volunteer making one... ;)

I wonder if our local greasemonkey guru will volunteer  ;D. Otherwise, i am there to help maybe in a few months/years, just got myself a copy of diveintogreasemonkey (http://diveintogreasemonkey.org/) :D.  

-- AI

Title: Re: Multiple Quotes In A Single Post
Post by SMQ on Aug 19th, 2007, 8:55am

on 08/19/07 at 08:38:26, TenaliRaman wrote:
I wonder if our local greasemonkey guru will volunteer  ;D

There would be two tricky things about such a script.  First would be that a proper qoute needs the UBB tags, not just the displayed text, so the script would have to actually load the Quote pages for each of the selected posts in the background (probably via XMLHTTPRequest). Second would be that the quotes need to be assembled into the text box of a new post, which is a separate HTML page, and means the script needs to communicate with itself across a page load.  Neither is inmpossible, but both are tricky. ;)

--SMQ

Title: Re: Multiple Quotes In A Single Post
Post by TenaliRaman on Aug 19th, 2007, 9:48am

on 08/19/07 at 08:55:20, SMQ wrote:
Neither is inmpossible, but both are tricky. ;)

--SMQ

Ah, a challenge!! Just what you were looking for!!  ;D

Seriously, how does one start with it? I might also like to help out in any way i can :) or with some guidance i can carve the perfect script that answers the question of life, universe and everything :D

-- AI

Title: Re: Multiple Quotes In A Single Post
Post by towr on Aug 19th, 2007, 11:17am

on 08/19/07 at 08:55:20, SMQ wrote:
There would be two tricky things about such a script.  First would be that a proper qoute needs the UBB tags, not just the displayed text, so the script would have to actually load the Quote pages for each of the selected posts in the background (probably via XMLHTTPRequest).
You could open them in hidden iframes, and copy the information.
You could build the quote tags with all appropriate information from the page itself (date and name etc is obvious, post number can be obtained from the quote link) But it would take some effort to work out.


Quote:
Second would be that the quotes need to be assembled into the text box of a new post, which is a separate HTML page, and means the script needs to communicate with itself across a page load.  Neither is inmpossible, but both are tricky. ;)
Easy solution would be to put a window sized iframe on top of the current page, and load the reply page in that (and submit to _top).
Or load the reply page in a hidden iframe, then switch the contents (which is neater, but trickier).
A third option could be to use cookies. Just put all the quotes in a cookie, and when the reply page is called, it takes the quotes from the cookie. Which is probably the cleanest solution. (Obvious problem: when you selected quotes on multiple pages for different replies. You could tie the thread number to the cookie to distinguish them though)


Something else that might be convenient, is to just have a reply-field below the last post of the thread. Some forums have a "quick-reply" option like that.

Title: Re: Multiple Quotes In A Single Post
Post by SMQ on Oct 3rd, 2007, 1:17pm

on 08/18/07 at 23:05:33, TenaliRaman wrote:
Is it possible to add checkboxes to each post and simply put a multiple quote button at the end of the page


on 08/19/07 at 07:04:45, towr wrote:
It should be possible to do it clientside,


on 08/19/07 at 08:38:26, TenaliRaman wrote:
I wonder if our local greasemonkey guru will volunteer  ;D

Since I've been in a Greasemonkey mood lately, here ya' go. (http://www.dwarfrune.com/~smq/wu/wu_multiquote.user.js):)

The linked script replaces all the quote icons with checkboxes and adds a Multiquote link next to Reply at the bottom.

Under the hood, checking or unchecking the checkboxes modifies the URL of the Multiqoute link with a comma-separated list of the posts to quote.  When the link is clicked, YaBB ignores any numbers after the first comma, but the script recognizes that a multiquote was requested, uses XMLHttpRequests to fetch all quotes beyond the first (scatter-gather), and compiles them into the text box.  By passing the post numbers in the URL and retrieving the quote text from the reply page instead of the forum page it avoids the need for cookies to buffer the text.

Tested under Firefox 2, IE 7, and Opera 9, and should work under Safari and Netscape 9 (as usual).

--SMQ

Title: Re: Multiple Quotes In A Single Post
Post by FiBsTeR on Oct 3rd, 2007, 2:49pm

on 08/19/07 at 11:17:57, towr wrote:
Test



on 10/03/07 at 13:17:03, SMQ wrote:
Test
--SMQ


:o :o :o Excellent work, this will increase puzzle-solving productivity tenfold! (Well, maybe not so much, but it definitely beats copy/paste.)

Title: Re: Multiple Quotes In A Single Post
Post by ima1trkpny on Oct 3rd, 2007, 3:59pm
SMQ, you are such a useful fellow!  :o
Good job!

Title: Re: Multiple Quotes In A Single Post
Post by TenaliRaman on Oct 4th, 2007, 11:44am

on 10/03/07 at 13:17:03, SMQ wrote:
Since I've been in a Greasemonkey mood lately, here ya' go. (http://www.dwarfrune.com/~smq/wu/wu_multiquote.user.js):)

The linked script replaces all the quote icons with checkboxes and adds a Multiquote link next to Reply at the bottom.

Under the hood, checking or unchecking the checkboxes modifies the URL of the Multiqoute link with a comma-separated list of the posts to quote.  When the link is clicked, YaBB ignores any numbers after the first comma, but the script recognizes that a multiquote was requested, uses XMLHttpRequests to fetch all quotes beyond the first (scatter-gather), and compiles them into the text box.  By passing the post numbers in the URL and retrieving the quote text from the reply page instead of the forum page it avoids the need for cookies to buffer the text.

Tested under Firefox 2, IE 7, and Opera 9, and should work under Safari and Netscape 9 (as usual).

--SMQ

Greasemonkey guru does it again http://www.photoforum.com/style_emoticons/default/bowing.gif

-- AI

Title: Re: Multiple Quotes In A Single Post
Post by JiNbOtAk on Oct 10th, 2007, 8:53pm

on 10/03/07 at 14:49:02, FiBsTeR wrote:
:o :o :o Excellent work, this will increase puzzle-solving productivity tenfold! (Well, maybe not so much, but it definitely beats copy/paste.)



on 10/03/07 at 15:59:25, ima1trkpny wrote:
SMQ, you are such a useful fellow!  :o
Good job!



on 10/04/07 at 11:44:02, TenaliRaman wrote:
Greasemonkey guru does it again http://www.photoforum.com/style_emoticons/default/bowing.gif

-- AI


SMQ, I know it's a lil late to say this, but thank you !! Superb job ! Any other Greasemonkey projects ?  ;D

Title: Re: Multiple Quotes In A Single Post
Post by SMQ on Oct 11th, 2007, 6:19am

on 08/19/07 at 11:17:57, towr wrote:
Something else that might be convenient, is to just have a reply-field below the last post of the thread. Some forums have a "quick-reply" option like that.



on 10/10/07 at 20:53:59, JiNbOtAk wrote:
SMQ, I know it's a lil late to say this, but thank you !! Superb job ! Any other Greasemonkey projects ?  ;D


I'm toying with a quick-reply feature, but I want to keep it compatible with the math symbols script. ;)

--SMQ



Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board