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
Quick PM Reply Box Details »»
Quick PM Reply Box
Version: 1.00, by Erwin Erwin is offline
Developer Last Online: May 2013 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 05-02-2002 Last Update: Never Installs: 166
 
No support by the author.

Quick PM Reply Hack Version 2.4 - by Dr. Erwin Loh
-------------------------------------------------------------------

Inspired by Firefly, Neo, Vincent "MW" Chan


Version 2.4 for vBulletin 2.3.0 - 23rd of March 2003
-----------------------------------------------------------------

This is a simple hack that puts a "Quick PM Reply" box underneath a PM that you have received, with the username, subject and message in quotes already inserted. All you need to do is to just type the reply and click send. In the new version, you also have the option of deleting the original PM when you send the reply, as well as multiple options like saving the copy, and message tracking.

Upgrading from version 1.x - just make the 2nd PHP file changes, and copy and paste the the new template changes over the old one.


Version 2 additions:
--------------------------

Added options using checkboxes to:

1) Delete original: Delete original PM from PM box when you send reply
2) Automatically parse URLs.
3) Show Signature.
4) Save a copy: Also save a copy in the 'Sent Items' folder.
5) Request Read Receipt: Choose message tracking.


Version 2.1 - minor bug fix to make the icon change after a message is sent.
Version 2.2 - minor bug fix to make sure the delete tickbox works.
Version 2.3 - fixed a minor template issue
Version 2.4 - fixed the multiple RE: bug

NEW: Added minor addition to make cursor go automatically to the PM Quick Reply Box.

NOTE: To get the newest attachment, you need to clear your browser cache - otherwise you may download the previous version text file.

Show Your Support

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

Comments
  #52  
Old 06-15-2002, 05:19 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mmm...

Let me look into it now...
Reply With Quote
  #53  
Old 06-15-2002, 05:19 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works fine on my forums... but my private.php is very modified...
Reply With Quote
  #54  
Old 06-15-2002, 05:21 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can pm you my file if you need to look at it.

Quote:
Originally posted by Erwin
It works fine on my forums... but my private.php is very modified...
Reply With Quote
  #55  
Old 06-15-2002, 05:27 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There was a similar problem with the Quick reply Box that would give you a forum specification error (errorid). Could that also be what is going on here?
Reply With Quote
  #56  
Old 06-15-2002, 05:30 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, I've updated the text file.

Clear your browser cache (delete all files in your browser's temporary folder), and download the new text file.

The difference:

Find this code in private.php

PHP Code:
if ($HTTP_POST_VARS['action']=="dosend") { 
Underneath, add this:

PHP Code:
if ($deleteorig=="yes") {
  
$privatemessageid=verifyid("privatemessage",$privatemessageid);
  
$DB_site->query("DELETE FROM privatemessage WHERE privatemessageid=$privatemessageid AND userid=$bbuserinfo[userid]");
  } 
You need to make sure you copy the WHOLE new template across as well. Not just the new checkboxes. This is because I have added this new line in the template HTML code:

Code:
<input type="hidden" name="privatemessageid" value="$privatemessageid">
You need this for the delete function to work.

This needs to be in between the form tags. Just use the WHOLE of the new template and replace the whole of your old one.

It should work now.
Reply With Quote
  #57  
Old 06-15-2002, 05:44 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That didn't chnage anything here. I still get the same error message when trying to delete a message when sending the reply.
Reply With Quote
  #58  
Old 06-15-2002, 06:13 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you copy the whole template across and replace the old template changes? Did you make sure you have the privatemessageid variable as hidden included?

Make sure you have this:

Code:
<input type="hidden" name="privatemessageid" value="$privatemessageid">
in your privatemsg template in the quick pm reply box form - use the template that I provided.

It does work - trust me. You just need to give the delete function the private message id.
Reply With Quote
  #59  
Old 06-15-2002, 06:27 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You caught me. No, I didn't copy the whole template. The reason is because the template didn't match vBulletins setup all the way and I had to play with it quite a while last time to get it to look right. If you want the code for my fixed box, let me know and I'll PM it to you. What happened was, in the first version of the quick pm reply box, that line you wanted me to add this time said <input type="hidden" name="previewmessageid" value="$privatemessageid"> instead of what it is now. Once I took that old line out and put the new one ine, then it worked fine. As you can see they look very close when you're going through the code. It works great here. Thanks!

BTW you had a preview button in your picture in the second post. Any way we can add that to this? Thanks again and sorry for the misunderstanding. (we don't need the old preview message id code in there right?)

Quote:
Originally posted by Erwin
Did you copy the whole template across and replace the old template changes? Did you make sure you have the privatemessageid variable as hidden included?

Make sure you have this:

Code:
<input type="hidden" name="privatemessageid" value="$privatemessageid">
in your privatemsg template in the quick pm reply box form - use the template that I provided.

It does work - trust me. You just need to give the delete function the private message id.
Reply With Quote
  #60  
Old 06-15-2002, 12:26 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The previewmessageid is for the preview message - different kettle of fish.

The Preview PM hack is located here - just do a search for it. It works well with my hack too.

Glad to know the hack is working!
Reply With Quote
  #61  
Old 06-15-2002, 02:11 PM
Jawelin Jawelin is offline
 
Join Date: Nov 2001
Posts: 557
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Erwin
Okay, Jawelin, I'll do it just for you... hang on while I add those things you suggested...
Thank you very much for this dedication...
I'll apply it to my files... Thanks again.
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 02:07 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.04403 seconds
  • Memory Usage 2,320KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_code
  • (2)bbcode_php
  • (3)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
  • (1)pagenav_pagelinkrel
  • (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_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