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.
Just for you, Boofo, I'll make an exception. PM me your private.php file, and your privmsg template as attachments, and I will fix it and PM them back to you. It's going to be interference from another hack. I had the /me hack running for a while, before I did up this hack, and they both work fine. Anyone else with this problem?
I've given you as much to work with as I have available. I DID fix the quote problem though. I replaced the code for your hack in private.php with the following:
PHP Code:
// Start of Quick PM Reply by Erwin
$pmquote = trim(preg_replace('~\[quote\](.*)\[/quote\]~si', '', $message['message']));
// End of Quick PM Reply by Erwin
and now there is only one quote in the quick pm box. As far as the RE fix, I followed Virix's code above and took care of that problem. I'll pm you the files if you still want to look at the me code problem.
Quote:
Originally posted by Erwin
You haven't given me anything to work with. Your problem could be caused by a million things - another hack interfering with this one etc. I support this hack - I cannot be expected to support Firefly's hack to make it compatible with this one. Like I said, it IS compatible. You posted a piece of code but don't tell me where it is. It's not in my private.php. Where is that code from? What do you expect me to do? I don't have access to your PHP files or your templates?
Also, I work full-time as well - I posted this hack up as a gesture of thanks for the multiple hacks I have taken from here. Don't expect 24 hour instant support.
The quote hack would fix my hack without needing to change any of the code in my hack, but anyway...
I have PMed you a modified copy of your private.php - it should fix the /me hack (I hope) - but I did take out that quote hack thing in the meantime.
If all goes well, both your /me hack and quote hack should work automatically. Like I said, my hack does NOT interfere with these hacks since it just copies the data that has already been changed - if not, you may need to move the $pmquote line after the message has been parsed into vBCode, but BEFORE it has been parsed into HTML.
Anyway, try out the private.php that I modified for you.
Also, may I add, Boofo, that your private.php actually has MORE hacks than mine - - there is a high chance of conflict between them. I had to rationalize your $message[message] variables - you had multiple copies of these with different values.
Well, I just tried it with the file you sent me. Now I have no subject line when I am replying with the quick reply box and the quotes are back again if there are multiple of them.
This is what I mean with the me code. This is what shows up in the Quick PM Reply Box when I look at a message from anyone who has used this code. Instead of seeing their name in place of the me, I see this. For some reason it isn't being parsed like it is in the pm regular reply box
Quote:
/me like this
and this is how it shows up in the regular pm reply box:
Okay, I know it's not the private.php file, because your private.php file looks a bit more like mine now (I did an Araxis Merge compare) - you are just missing something essential that I have in another file that you don't. Let me look at it again. I'm going to work, and can only do this tonight. Please be patient.
Thanks for taking the trouble and the time on this. I really appreciate it. No hurry, just when you get some time. Thanks again.
Quote:
Originally posted by Erwin Okay, I know it's not the private.php file, because your private.php file looks a bit more like mine now (I did an Araxis Merge compare) - you are just missing something essential that I have in another file that you don't. Let me look at it again. I'm going to work, and can only do this tonight. Please be patient.
I cannot find the reason why /me would not work for you. I looked at your private.php at length - no idea.
Sorry.
Also, I don't know why the quote hack would not work for you too.
For other members: both the /me hack and quote hack works for me. Do they work for you? Anyway, I am not responsible for this hack being compatible with other hacks - there are hundreds of hacks out there - I don't have time to figure it out for each individual.
Yes, I installed that bug fix a long time ago before I installed the me hack. You said something about moving the quote hack in the file, too.
Right now, I am using the original private.php I sent you and the quote and RE hack work fine. I have an idea on the me hack, too. If it works, I'll let you know.
Quote:
Originally posted by Erwin Boofo, did you install this bug fix? Make sure you do.
I cannot find the reason why /me would not work for you. I looked at your private.php at length - no idea.
Sorry.
Also, I don't know why the quote hack would not work for you too.
For other members: both the /me hack and quote hack works for me. Do they work for you? Anyway, I am not responsible for this hack being compatible with other hacks - there are hundreds of hacks out there - I don't have time to figure it out for each individual.