Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[HowTo] Quote Multiple Posts At Once Details »»
[HowTo] Quote Multiple Posts At Once
Version: 1.00, by Floris Floris is offline
Developer Last Online: Mar 2021 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 10-28-2002 Last Update: Never Installs: 50
 
No support by the author.

[HowTo] Quote Multiple Posts At Once

v1.0.1 [build for vBulletin 2.2.8 Final] last update: 29/10/2002

_____ Introduction:
This was originally my idea and FireFly has been so cool to help me out and code it. I have been wanting this for a damn long time on my forums, and finally it has been realized!

The beta release has been beta a long time and no bugs have been found. After 450+ downloads here is the final 1.0 version for vBulletin 2.2.8 and it works 100% on a clean install.

This code modification works on vBulletin 2.2.x for sure!

_____ What to expect:
The code/template modification allows your users to check a checkbox next to each post in a thread. And when clicked on the 'post reply'-button, takes them to newreply.php with all quotes from all checked messages in the textarea.
This saves you a lot of time if you want to reply to more then one post in a thread, without having to go back and forward and make several posts or copy/paste all the time and get confused.

_____ What will happen when:
If you check one quote [ ] checkbox or more, it will quote those posts.
If no quote: [ ] checkbox is checked, then the 'post reply'-button acts like a normal postreply, nothing is quoted.
And if you click on the quote button in a post, it will just quote that post (even if any of the checkboxs are checked).

_____ Support:
Sure, but it depends on my knowledge and my free time. No alternation to the code modification / postbit / otherwise will be provided. All support goes through his thread, so please do not PM or E-mail me about it, thank you.

_____ Screenshots:
For screenshots, I have put some in the .zip file.

_____ Installation:
You have to apply a few template changes and a file change in order to get this to work. Download the attachment from this post and follow the installation steps. In about 10 minutes your board is tweaked and ready for more coolness.

_____ Update:
I just uploaded version 1.0.1 which is the same version, no bug fixes, but with the little tweaks and addons from N9ne. For those who installed 1.0.0, just upgrade from the .txt file from N9ne (see few posts up this thread).

Enjoy!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 02-25-2003, 09:25 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Floris, when I use the quote box, this message:

Quote:
Work -> No Fun > Work > No Fun > Work
Is like this instead:

Quote:
Work -> No Fun -> Work -> No Fun -> Work
If I use the quote button, it looks like it is supposed to. And idea what I can do to make the quote box act the same way?

Great hack, by the way. Thank you.
Reply With Quote
  #53  
Old 02-25-2003, 09:57 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, floris, I figured it out. Oops!

I just changed:

PHP Code:
$pagetext=htmlspecialchars($postinfo[pagetext]); 
to this:

PHP Code:
$pagetext=$postinfo[pagetext]; 
and everything is as it should be. Again, sorry to sound like a newbie here.
Reply With Quote
  #54  
Old 02-26-2003, 05:31 AM
Dan_UPC Dan_UPC is offline
 
Join Date: Dec 2002
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My fix for my earlier problem has bought my attention to another problem with this hack. In the case I described in my last post in this thread, we lose the list of posts the user wants quoted. I guess we need to move all the required info to the url so that everything works ok in this circumstance.
Reply With Quote
  #55  
Old 02-26-2003, 05:41 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please explain what you mean.
Reply With Quote
  #56  
Old 02-26-2003, 10:25 AM
Dan_UPC Dan_UPC is offline
 
Join Date: Dec 2002
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1. Take an unhacked board
2. Set your board so that only registered members can post.
3. Install this hack
4. Make a thread and put a few replies in it
5. Make sure you are logged out
6. Goto the thread you just made and tick the boxes to quote a few of the posts ...
7. Click 'Post Reply'
8. Because you are logged out, you get the no perms screen with the option to log in.
9. Log in on that screen
10. You get an error message 'No Thread Specified' ... I fixed this by adding the thread id to the url as per my earlier post in this thread.
11. You now get the post new reply screen but none of the quotes are there.
Reply With Quote
  #57  
Old 02-28-2003, 04:44 AM
squawell's Avatar
squawell squawell is offline
 
Join Date: Oct 2001
Posts: 681
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how to quote different page's post at once?

i test that and it cant work.....

so anyone can fix that?
Reply With Quote
  #58  
Old 03-24-2003, 12:13 AM
Fi_InCogNiTo Fi_InCogNiTo is offline
 
Join Date: Jan 2003
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It would be nice to add a script hat would make this work along with quick reply
Reply With Quote
  #59  
Old 03-24-2003, 11:10 PM
Lethal Lethal is offline
 
Join Date: Feb 2002
Location: PA/USA
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have 2 styles on my board at the moment, I installed this hack and it works perfectly on the 1 style but the other one, when I click the the check box or just click quote it gives me this parse error:

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /htdocs/www/forums/newreply.php(68) : eval()'d code on line 2

It gives me that error for every check box I have checked also. I don't understand because it don't give me this error on my other style. So is it from a template?

The error seems to be pointing to this

eval("\$message = \"".gettemplate("quotereply",1,0)."\";");

and this if I have multiple check boxes

eval("\$message .= \"".gettemplate("quotereply",1,0)."\n\n\n\";");
Reply With Quote
  #60  
Old 03-27-2003, 10:34 PM
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am having some trouble.

Thisd is what my template looks like.

Code:
{htmldoctype}
<html>
<head><title>$bbtitle - $thread[title]</title>
$headinclude

<script language="javascript" type="text/javascript">
<!--
function aimwindow(aimid) {
	window.open("member.php?s=$session[sessionhash]&action=aimmessage&aim="+aimid,"_blank","toolbar=no,location=no,menubar=no,scrollbars=no,width=175,height=275,resizeable=yes,status=no")
}
function who(userid) {
                window.open("userrate.php?s=$session[sessionhash]&action=show&rateuser="+userid, "whorated", "toolbar=no,scrollbars=yes,resizable=yes,width=230,height=300"); 
}
function pubs() {
                window.open('member.php?s=$session[sessionhash]&action=pubsthreads&postuserid=$post[userid]','pubsthreads','toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=yes,copyhistory=no,scrollbars=no,width=300,height=300,top=200,left=300');
}
function whodownloaded(attachmentid) {
               window.open("whodownloaded.php?s=$session[sessionhash]&attachmentid=" + attachmentid, "whodownloaded", "toolbar=no,scrollbars=yes,resizable=no,width=240,height=300, top=50, left=50"); 
}
function showwarnings(userid) { 
               window.open("warn.php?s=&action=show_warn&userid="+userid,
 "show_warn", "toolbar=no,scrollbars=yes,resizable=yes,width=600,height=350"); 
}
function addwarnings(postid) { 
               window.open("warn.php?s=&action=add_warn&postid="+postid,
 "add_warn", "toolbar=no,scrollbars=yes,resizable=yes,width=400,height=200"); 
}
function whovoted(pollid) {
               window.open("poll.php?action=whovoted&pollid=$pollinfo[pollid]="+pollid, "whovoted", "toolbar=no,scrollbars=yes,resizable=no,width=350,height=400, top=50, left=50");
  }
// -->
</script>
</head>
<body>
$header

<!-- breadcrumb, nav links -->
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<form action="newreply.php" method="POST">
<input type="hidden" name="s" value="$session[sessionhash]">
<input type="hidden" name="threadid" value="$threadid">
$poll
<form action="newreply.php" method="POST">
<input type="hidden" name="s" value="$session[sessionhash]">
<input type="hidden" name="threadid" value="$threadid">
<tr>
	<td bgcolor="{firstaltcolor}" {bevel1} valign="top" width="68%" align="left">$navbar<br>
<smallfont>This thread, which was started by <a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$thread[postuserid]">$thread[postusername]</a>, contains $thread[replycount] replies, has been viewed $thread[views] times, and contains $thread[attach] attachments.</smallfont>
<br>
<smallfont>$pagenav $firstunread&nbsp;</smallfont>
<br>
$ratingdisplay
</td>
<td bgcolor="{secondaltcolor}" {bevel2} valign="top" align="right" width="32%"><smallfont>
<a href="newthread.php?s=$session[sessionhash]&action=newthread&forumid=$forum[forumid]"><img src="{newthreadimage}" border="0" alt="Post New Thread"></a>
&nbsp;
<input type="image" src="$replyclose" border="0" alt="Post A Reply" name="submit" class="bginput"></smallfont>
<br>
<smallfont>
	<img src="{imagesfolder}/prev.gif" alt="" border="0">
	<a href="showthread.php?s=$session[sessionhash]&threadid=$threadid&goto=nextoldest">Last Thread</a>
	&nbsp;
	<a href="showthread.php?s=$session[sessionhash]&threadid=$threadid&goto=nextnewest">Next Thread</a>
	<img src="{imagesfolder}/next.gif" alt="" border="0"></smallfont>
<br>
<smallfont><b>All times are GMT$timediff.<br>The time now is $timenow.</b></smallfont>
</tr>
</table></table>
<!-- /breadcrumb, nav links -->

<a name="posttop"></a>

<!-- End content area table (CREATED IN HEADER!!) -->   
	</td>
</tr>
</table></form>

<!-- spacer -->
<table background="{imagesfolder}/logobg.gif" width="{tablewidth}" cellpadding="0" cellspacing="0" border="0">
<tr><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td><td width="100%">
<!-- /spacer -->

<br>

<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
	<!-- /Thread nav and post images -->
	</td>
</tr>
</table>
</td></tr></table>

<!-- /spacer -->
</td><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td></tr></table>
<!-- /spacer -->

$postbits

<!-- spacer -->
<table background="{imagesfolder}/logobg.gif" width="{tablewidth}" cellpadding="0" cellspacing="0" border="0">
<tr><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td><td width="100%">
<!-- spacer -->

<!-- breadcrumb, nav links -->
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<form action="newreply.php" method="POST">
<input type="hidden" name="s" value="$session[sessionhash]">
<input type="hidden" name="threadid" value="$threadid">
<tr>
<td bgcolor="{secondaltcolor}" {bevel2} valign="top" align="left" width="32%"><smallfont>
<a href="newthread.php?s=$session[sessionhash]&action=newthread&forumid=$forum[forumid]"><img src="{newthreadimage}" border="0" alt="Post New Thread"></a>
&nbsp;
<input type="image" src="$replyclose" border="0" alt="Post A Reply" name="submit" class="bginput"></smallfont>
<br>
<smallfont>
	<img src="{imagesfolder}/prev.gif" alt="" border="0">
	<a href="showthread.php?s=$session[sessionhash]&threadid=$threadid&goto=nextoldest">Last Thread</a>
	&nbsp;
	<a href="showthread.php?s=$session[sessionhash]&threadid=$threadid&goto=nextnewest">Next Thread</a>
	<img src="{imagesfolder}/next.gif" alt="" border="0"></smallfont>
<br>
<smallfont><b>All times are GMT$timediff.<br>The time now is $timenow.</b></smallfont></td></form>
	<td bgcolor="{firstaltcolor}" {bevel1} valign="top" width="68%" align="left">$navbar<br>
<smallfont>This thread, which was started by <a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$thread[postuserid]">$thread[postusername]</a>, contains $thread[replycount] replies, has been viewed $thread[views] times, and contains $thread[attach] attachments.</smallfont>
<br>
<smallfont>$pagenav $firstunread&nbsp;</smallfont>
<br>
$ratingdisplay
</tr></td>
</table></table></form></form>
<!-- /breadcrumb, nav links -->

<!-- /spacer -->
</td><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td></tr></table>
<!-- /spacer -->


<!-- restart content table from header -->
<table cellpadding="10" cellspacing="0" border="0" width="{tablewidth}" background="{imagesfolder}/logobg.gif" align="center">
<tr>
    <td>

$replybox

$similarthreads

<!-- thread options links -->
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra}  align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="625">
<tr>
	<td bgcolor="{firstaltcolor}" {bevel1} align="center" width="625" colspan="3"><smallfont>
	<img src="{imagesfolder}/printer.gif" alt="" border="0" align="absmiddle">
	<a href="printthread.php?s=$session[sessionhash]&threadid=$threadid">Show Printable Version</a> |
                <img src="{imagesfolder}/sortasc.gif" alt="" border="0" align="absmiddle">
                <a href="showthread.php?s=$session[sessionhash]&threadid=$threadid&action=download">Download Thread</a> |
	<img src="{imagesfolder}/sendtofriend.gif" alt="" border="0" align="absmiddle">
	<a href="sendtofriend.php?s=$session[sessionhash]&threadid=$threadid">Email this Page</a> |
	<img src="{imagesfolder}/subscribe.gif" alt="" border="0" align="absmiddle">
	$log_subscription_link
	</smallfont></td>
</tr>
<tr>
	<td bgcolor="{secondaltcolor}" {bevel2} align="center" width="40%">$forumjump</td>
	<td bgcolor="{secondaltcolor}" {bevel2} align="center" width="30%">$adminoptions</td>
	<td bgcolor="{secondaltcolor}" {bevel2} align="center" width="30%">$threadrateselect</td>
</tr>
<tr>
	<td colspan="3" bgcolor="{firstaltcolor}" {bevel1} align="center" width="100%">$searchthread</td>
</tr>
</table>
</td></tr></table>
<!-- /thread options links -->

<br>

<!-- forum rules and admin links -->
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr valign="bottom">
<center><td align="center"><smallfont><b>Forum Rules:</b>$forumrules</smallfont></td></center>
</tr>
</table>
<!-- /forum rules and admin links -->

$footer

	<object classid="clsid:FB7199AB-79BF-11d2-8D94-0000F875C541" codeType="application/x-oleobject" id="MsgrApp" width="0" height="0"></object>
	<object classid="clsid:F3A614DC-ABE0-11d2-A441-00C04F795683" codetype="application/x-oleobject" id="MsgrObj" width="0" height="0" codebase="#Version=2,0,0,83"></object>

</body>
</html>
When i click the quote box and then click reply nothing shows in the message area. I don't know what my problem is.

I am guessing it has something to do with the FORM actions and closing of the form tags in the wrong areas. Can someone please help me thanks.
Reply With Quote
  #61  
Old 03-28-2003, 03:17 AM
Lethal Lethal is offline
 
Join Date: Feb 2002
Location: PA/USA
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am having the same problem but only with one template set. Everything is fine with one but the other one gives me an error and nothing shows up.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:27 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07667 seconds
  • Memory Usage 2,355KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete