Log in

View Full Version : Multiple Quotes


Admin
04-01-2002, 10:00 PM
This was an idea of xiphoid. The hack allows your users to check a checkbox next to each post in a thread, then at the bottom click a submission button which will take them to newreply.php with all quotes from all checked messages in the textarea.

I will post a screen shot soon.

Fun. :)

Admin
04-02-2002, 11:15 AM
Demo. :)

Floris
04-02-2002, 11:16 AM
Thank you,
I have been playing with this idea for a while, and now it is realized! You the best! And it only took you under 10 minutes to code it!

Reaaaally cool, and when I get home, I will apply it to my board a.s.a.p.

Matt
04-02-2002, 11:23 AM
What a cool idea :D I was beginning to think that VB had reached its limit hack wise but wow people just keep churning them out! :D :D

afterlab
04-02-2002, 11:25 AM
Hmm.. Interesting, FireFly and Xiphoid. I'll consider installing it later today. Thanks for sharing!

Lesane
04-02-2002, 11:27 AM
Great, but i'm forced to install vbhacker :(

Admin
04-02-2002, 11:27 AM
You don't have to actually use it, just choose the option to create a text file and voila. :)

Floris
04-02-2002, 11:31 AM
Originally posted by afterlab
Hmm.. Interesting, FireFly and Xiphoid. I'll consider installing it later today. Thanks for sharing!

Well .. we are secret lovers :)

I had a nice idea, came to ' the' coder with it, and Chen managed to make it in 6 minutes. (That is a new world record!)

Xanthine
04-02-2002, 02:33 PM
Thanks firefly. :D

scsa20
04-02-2002, 06:02 PM
well...it took me awhile to get it installed on one of my templates, but I got it installed....nice hack, vary useful when quoteing more then one persion ;)

Kumaro
04-02-2002, 08:24 PM
will this work only with 2.2.5? Or is it just reccommended?

merk
04-02-2002, 11:35 PM
From memory, if you create yourself an image 'quote selected' and insert :

'<input type=image src=urltoimg>' you can achieve an image as a submit button, might be different syntax tho.

<edit> hrm doesnt seem to parse &gt; / &lt; :|</edit

ZiRu$
04-03-2002, 12:50 AM
does this work on 2.2.4

Recluse
04-03-2002, 05:13 AM
worked like a charm on 2.2.2

Admin
04-03-2002, 05:16 AM
Yes Hot Dog.

Floris
04-03-2002, 05:20 AM
I think this will work for version 2.2.x
and if it does not, then just revert the templates to original and remove the hack from the php files.

Recluse
04-03-2002, 05:44 AM
never mind, im a dumbass

merk
04-03-2002, 09:00 PM
Search online(or at the w3c) for the syntax of the <input type=image

It works, ive used it, but i dont work with html anymore, xml all the way :)

Floris
04-04-2002, 09:32 PM
Just installed this on vB 2.2.5 (final) and works perfectly.
The vBhacker just can't find the text to replace in newreply.php because the 2.2.5 final version has a white line between //comment and the if ..{ }

ja5es
04-07-2002, 06:25 PM
How do I install this???

merk
04-07-2002, 10:43 PM
You need vBHacker, which can be found in FireFly's sig.

ja5es
04-07-2002, 10:55 PM
Thank you.

Tungsten
04-08-2002, 01:55 PM
Installed it here using VBHacker to generate the manual text file. Worked like a champ. Many thanks for a very useful addition to our boards, firefly. :)

FWC
04-10-2002, 05:13 AM
Very nice, Firefly. Works perfectly. :)

Floris
04-12-2002, 05:57 AM
I have been using it since firefly released it, and I must say, I am very pleased :)

Frenck
04-14-2002, 05:36 PM
WOOOWWWW we in the Netherlands would say:

Wat een ongelovelijke vette mega hack!!!

(means something like great hack ;) )

Thank you so much!

Erwin
04-16-2002, 10:11 AM
I tried installing this - somehow it refuses to work - my showthread template is quite modified, and so is my postbit - but you would expect it to work.

The main problem is that when I click on the submit button nothing happens. I suspect that I am not getting the form tags in the right spot - initially I thought it was the "Thread Rating" form tags interfering, so I took it out - didn't help. Then I thought maybe I am not placing and closing the form tags in the right place, so I put the form tags just above and just below the $postbit variable with the input line between them - you would expect this to work for sure, but it still didn't.

Anyway, I don't really need this hack, so I have given up. :)

For those who want the TEXT version, I have attached it below (exported it from vbhacker):

212rikanmofo
04-24-2002, 10:14 PM
Originally posted by merk
From memory, if you create yourself an image 'quote selected' and insert :

'<input type=image src=urltoimg>' you can achieve an image as a submit button, might be different syntax tho.

<edit> hrm doesnt seem to parse &gt; / &lt; :|</edit

very nice hack, but i also like you would want to use my own image for the button, how can i make it load up an image? anyone?

ZiRu$
04-26-2002, 06:48 PM
Originally posted by FireFly
Yes Hot Dog.

thats Mr. Hot Dogg to you uddy............ :p

I dont really wanna install this hack cause it would look stupid without the graphic and they ALL have to be the same...........new thread, reply,closed and quote selected!~

Could someone make them?

geniuscrew
04-29-2002, 02:20 AM
What template is the <*input type..... bit in?

thanx

Floris
04-29-2002, 06:33 AM
Well, we can, but.. since every forum has a different type of buttno set and even if they are the same, they are looking differently in colours. So I think you just have to use your graphic skills for that :)
The checkbox can't be made a graphic though.

b-b00gie
04-29-2002, 02:00 PM
Is there a way that you could change this so that when you check the checkbox all you have to do is hit "post reply" and it will bring the quotes to the reply page?


I'm trying to avoid adding another button.



Basically I'd like the following conditions:

If none of the checkboxes are checked, the "post reply" functions as normal
If there are any checkboxes checked, the "post reply" button becomes a "reply with quotes" button



If Firefly or someone could make that happen.... YOU ROCK!! :laugh:

Floris
04-29-2002, 07:42 PM
You can accomplish something with php there, but changing on the fly of buttons requires javascript. And I hate client-side scripting. 9/10 times it has little error due to use of lame browser, or its settings.

Currently, when no one selected a checkbox, but still hit the quote selected, it will behave as a post reply.

b-b00gie
04-29-2002, 07:54 PM
Originally posted by xiphoid

Currently, when no one selected a checkbox, but still hit the quote selected, it will behave as a post reply.


Cool! I'll try it out shortly!! :rambo:

b-b00gie
04-29-2002, 11:53 PM
Sweet!!! It worked.


I eliminated my "post reply" function and made my "quote selected" button use the "post reply" image.


http://www.g20.net/forum (http://209.120.143.70/forum/index.php)

Floris
04-30-2002, 08:14 AM
Feel free to share your code :)

b-b00gie
04-30-2002, 03:44 PM
Originally posted by xiphoid
Feel free to share your code :)



OK... ;)

Here you go!


Keep in mind though, that if you are using an image for the reply buttons that has a tranparent background (such as the default images), you will see a small gray ring around them. This is because you are laying an image over a form item which has a default color of gray.

To fix this, I edited my reply images so that the backgrounds were not transparent. I made the background the same color as my table background color. Its very simple. How fast can you use the paintbucket tool and hit Save? :cheeky:


Enjoy.


BTW this is my first piece of code I've ever submitted so I'm not sure if I've followed all the rules properly. I gave Firefly credit for all the original code. I'm not sure if I should've posted this in its own thread? :paranoid:

Firefly, feel free to use any part of changes in your final release. Or just include my file along with yours so the endusers have more options. :knockedout:

Floris
04-30-2002, 04:02 PM
Originally posted by b-b00gie




OK... ;)

Here you go!


Keep in mind though, that if you are using an image for the reply buttons that has a tranparent background (such as the default images), you will see a small gray ring around them. This is because you are laying an image over a form item which has a default color of gray.

To fix this, I edited my reply images so that the backgrounds were not transparent. I made the background the same color as my table background color. Its very simple. How fast can you use the paintbucket tool and hit Save? :cheeky:


Enjoy.


BTW this is my first piece of code I've ever submitted so I'm not sure if I've followed all the rules properly. I gave Firefly credit for all the original code. I'm not sure if I should've posted this in its own thread? :paranoid:

Firefly, feel free to use any part of changes in your final release. Or just include my file along with yours so the endusers have more options. :knockedout:

Thank you for sharing and nice tips. I will look into it soon :)

b-b00gie
04-30-2002, 05:42 PM
Here's an example from my forum...


http://www.g20.net/forum/showthread.php?s=&threadid=1115 (http://209.120.143.70/forum/showthread.php?s=&threadid=1115)

;)

b-b00gie
05-06-2002, 10:45 PM
Originally posted by xiphoid


Thank you for sharing and nice tips. I will look into it soon :)


Get a chance yet?

Has anyone tried this, out of those who've downloaded the file? Any problems?


BTW, should a "hack of a hack" be posted in its own thread? I thought Firefly would see this and let me know, but I guess he hasn't. Still wondering, as this was the first thing I've ever posted. :)

bonnmac
05-08-2002, 09:33 PM
Installed and works like a charm! Thanks a million! I love it. :D

geniuscrew
05-18-2002, 01:03 AM
Can anyone please help? i re installed it on a different server and it's not working anymore :-/

When I click the bottom "Quote Selected" nothing happens, but when i click the top one, it just goes to the new reply page (of course i ticked a few check boxes before I pressed them)

Please help as it is really doin my head in!

Thanx

Admin
05-18-2002, 06:20 AM
Make sure you rehacked the templates and the files.

PET
05-19-2002, 06:33 PM
I have do exactli now it say..& manual . but revuze to work !

I clik Quote Selected but nothing ! And i have check the box-es

ULTIMATESSJ
05-20-2002, 08:36 PM
This hack is amazing, worked like a charm, good work firefly, only one little problem, the button for the quote selected doesn't look too good, so would it be possible for someone to make a quote selected button

PET
05-21-2002, 04:16 PM
Originally posted by ULTIMATESSJ
This hack is amazing, worked like a charm, good work firefly, only one little problem, the button for the quote selected doesn't look too good, so would it be possible for someone to make a quote selected button

Good for you. I have just un-install it ! Not working.

Xelation
05-25-2002, 02:37 PM
how would I change the submit button to an image?

Mone'
05-28-2002, 10:30 AM
working perfectly on 2.2.6 ! =)

Mone'
05-28-2002, 11:22 AM
Originally posted by Xelation
how would I change the submit button to an image?

After you installed the hack go to
showthread template
and look for:


<td nowrap><a href="newreply.php?s=$session[sessionhash]&action=newreply&threadid=$threadid"><img src="$replyclose" border="0" alt="Post A Reply"></a>
<input type="submit" value="Quote Selected" class="bginput"></td>
</tr>
</table>
<!-- /time zone and post buttons -->
</td>
</tr>
</table>
</td></tr></table>


and change it to:

<td ><a href="newreply.php?s=$session[sessionhash]&action=newreply&threadid=$threadid"><img src="$replyclose" border="0" alt="Post A Reply"></a>
<input type="image" class="bginput" src="https://vborg.vbsupport.ru/vbimages/quoteselected.gif" border="0"
alt="Quote Selected"></td>
</tr>
</table>
<!-- /time zone and post buttons -->
</td>
</tr>
</table>
</td></tr></table>




were : quoteselected.gif is your image


Mone'


btw : the image path as been change it automatically by this forum ?!?!?!
very strange.........

Mone'
05-28-2002, 12:31 PM
screenshot =)

Admin
05-28-2002, 12:56 PM
Looking good, Mone. :)

Boofo
05-28-2002, 01:02 PM
Mone',

Check out my forum and see if you can help me come up with a button to match, will you? :) You's the man!

Mone'
05-28-2002, 01:52 PM
Originally posted by FireFly
Looking good, Mone.

Just working on it :) as i really don't like the look of form !






Originally posted by Boofo
Mone',

Check out my forum and see if you can help me come up with a button to match, will you? :) You's the man!


is a bit hard not knowing what font you used on your buttons set..........


anyhow here is a quick one for you =)


Mone'

Boofo
05-28-2002, 02:22 PM
Thanks, Mone', it works great and actually looks great with the other buttons. I owe you one, man! (I owe you more than one!) :)

Xelation
05-28-2002, 05:42 PM
Thanks so much mone! :)

b-b00gie
06-13-2002, 03:36 PM
If you dont want to have make a "quote selected" button, on page 3 of this thread I posted a howto on combining your "post reply" and "quote selected" buttons into a single button...

Check it out. I've gotten quite a few emails from people stating how it was such a great addition to this hack...

:)

X-Fan
06-17-2002, 11:16 AM
If you have the Reply Open/Closed hack installed, instead of editing the showthread template, just change the showthread_replyopen template to read what's in the attached text file and it works like a charm!

Also, b-b00gie, you might want to make sure that your edit actually includes the { imagesfolder } replacement text (without the spaces) rather than https://vborg.vbsupport.ru/images/ link, so that people are using their own quote button instead of vBulletin.org's! :)

Thanks to Chen for such an awesome hack, and to you b-b for an excellent edit!

b-b00gie
06-17-2002, 12:00 PM
I'm not sure why its replacing that code. I didnt attach it like that, nor have I ever used or use the Vbulletin.org image. I've noticed it does that same for some other attachments I've viewed on this forum, so I believe it is a bug of the forum.

X-Fan
06-17-2002, 01:27 PM
Yeah, the forum here sees it as part of its code, and as such inserts its replacement for it into the thread.

I've had that happen plenty of times before, and had to go back and edit in spaces to stop it happening.

Boofo
06-17-2002, 06:56 PM
I've been looking for a way to use this with the reply open/closed hack. When the thread is closed it won't read the quotes into the message, right? Also, don't you need to add the first part of the showthread_replyopen template with this (the part with the threadid in it)?

Originally posted by X-Fan
[B]If you have the Reply Open/Closed hack installed, instead of editing the showthread template, just change the showthread_replyopen template to read what's in the attached text file and it works like a charm!

ULTIMATESSJ
06-30-2002, 07:35 PM
one bug i've found in it is that if a thred is closed, people can still post using it

freakyshiat
07-10-2002, 05:31 PM
when quoting a post that either has '<' or '>' it replaces those characters with '&lt' and '&gt'

is that a bug?

Martin64
07-21-2002, 12:35 AM
Sounds sweet, I'll check it out in the morning

* Martin64 looks at watch
*yaaaawn*
* Martin64 looks at watch again and notice that it's waaay past bed-time.

:D

Larry@IOG
08-24-2002, 05:05 PM
Ok I installed this hack on 2.2.6 and my check box is working. I can check all the boxes on a post but when I click post reply button the pages does not change or even try to change. If I uncheck all of my boxes I can then post a reply but does not have multi qoutes anyone help me?


Thanks

Larry Jude
www.impulseownersgroup.com

kmfdm_kid2000
08-26-2002, 09:30 AM
I installed it, and it worked at first, then it didn't, now it works again. A sporatic hack?? I'd love it if it worked 100%, but it's a GREAT Hack and idea, none-the-less...

PHiXTiT
09-05-2002, 12:49 PM
Great work!!! :banana:

PHiXTiT
09-07-2002, 03:44 PM
works great on 2.2.7 if anybody is wondering.

ghroob
09-19-2002, 07:04 AM
Thank you
but small question: why it is Beta Hack yet?

PHiXTiT
09-19-2002, 05:29 PM
Also wondering?

Zoinks
09-28-2002, 12:44 PM
I'm trying to install this hack also. but I don't want the checkboxes to show up in newthread but in newreply.

The idea is that in the newreply screen you see the last 25 posts. Next to those post are the checkboxes. The only problem is that the postid is not known there.

in the source it shows up like this:
<input type="checkbox" name="quotes[]">

Is there a way that I can fix this?

Floris
10-28-2002, 11:32 AM
Originally posted by ULTIMATESSJ
one bug i've found in it is that if a thred is closed, people can still post using it
This is not a bug, this is a feature :)
When you are logged in as an administrator, you are still allowed to reply to closed posts. At least, that is how it is on my board.

Log out and login as a test member, registered usergroup, you will then not be able to post, you will get the msg 'sorry, this post is closed and you are redirected back to it'. (i just tested it)

Floris
10-28-2002, 11:33 AM
Originally posted by PHiXTiT
works great on 2.2.7 if anybody is wondering.
Yes, it works on 2.2.x Maybe even on older versions but probably not on 3.x

Larry@IOG
10-28-2002, 10:03 PM
I was gettign soem Java script errors I had to reset all of my templates back to orginal. What templates mods to I need in the admin panel? Thanks in advance

Larry

Floris
10-28-2002, 10:45 PM
The Final Version Of This Hack Can Be Found Here (https://vborg.vbsupport.ru/showthread.php?s=&threadid=45135)