Version: 1.00, by Erwin
Developer Last Online: May 2013
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.
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?
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:
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?
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?