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.
Something I always lack in the PM page was the 'delete original
on reply' flag.
Is it possible to add a checkbox to automatically delete the incoming message when submitting the quick-reply ?
Mmm... a simple template edit won't do that. The 2 action variables are different. One is dosend, the other is dodelete - this will take further hacking of private.php to combine the 2 variables.
Originally posted by Erwin Mmm... a simple template edit won't do that. The 2 action variables are different. One is dosend, the other is dodelete - this will take further hacking of private.php to combine the 2 variables.
Yes, of course.
I asked to you as the original author of the hack...
I definetively think the following code :
PHP Code:
$privatemessageid=verifyid("privatemessage",$privatemessageid);
$DB_site->query("DELETE FROM privatemessage
WHERE privatemessageid=$privatemessageid AND userid=$bbuserinfo[userid]");
should be added somewhere in the "dosend" section of private.php, managed in an if-clause by a check-box variable in privmsg template...
I think this php mod should make it better called 'hack' ... instead of a template modification, with the addition of more than a row to the script...
Just an addon.
What will be the behavior of this quick reply about the message tracking and the outbox ?
I mean, are they managed as defaults or not ?
What about adding, beside 'delete' option, even the checkboxes for :
- Signature
- Save a copy
- Message tracking
(defaulted, as in QuickReplyBox hack, upon the user's preferences) ???
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.
Also fixed up the colspan issue, colors etc.
Refer to the 1st post for the updated text file, and the 2nd post for the updated screenshot.
I ran into a problem. I had two instances of the specialcharacters line in private.php. If I put the code after one of them, I got an error if I chose to delete the message after sending. It said I didn't specify a message. If I put it under the other one, I didn't get the error, but the message was not deleted. Also, in your oicture (2nd post), There is a preview button under the box. I don't have that on mine. Would there be any way to add that?
Quote:
Originally posted by Erwin Okay, the hack is updated.
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.
Also fixed up the colspan issue, colors etc.
Refer to the 1st post for the updated text file, and the 2nd post for the updated screenshot.