Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: dougiefresh on May 12, 2015, 11:50:25 PM

Title: PM Quick Reply
Post by: dougiefresh on May 12, 2015, 11:50:25 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=4047)



PM QUICK REPLY v1.11
By Dougiefresh (http://www.simplemachines.org/community/index.php?action=profile;u=253913) -> Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=4047)



Introduction
This mod adds a quick reply box to the Personal Message (PM) area when viewing PMs, as well as per-user options to show, hide or disable the PM Quick Reply box.

Compatibility Notes
This mod was tested on SMF 2.0.10, but should work on SMF 2.1 RC2, as well as any version of SMF 2.0.x.  Versions below SMF 2.1 RC2, as well as SMF 1.x, is not and will not be supported.

This mod should NOT be used with Enhanced PM System (http://custom.simplemachines.org/mods/index.php?mod=3736) versions 3.0 and higher, as that mod will have this mod integrated into it.  It may be used with versions below v3.0, however, the "copy to outbox" checkbox may still be active and may not properly save your quick PMs as part of the conversation.  This is due to the Enhanced PM System mod not "fixing" this member option within the source file before displaying the template.

Changelog
The changelog can be viewed at XPtsp.com (http://www.xptsp.com/board/free-modifications/pm-quick-reply/?tab=1).

License
Copyright (c) 2015 - 2019, Douglas Orend
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Title: Re: PM Quick Reply
Post by: Hj Ahmad Rasyid Hj Ismail on May 13, 2015, 01:45:05 AM
Nice idea. I already have similar idea since I made quick reply reposition mod but haven't got time to look into it. The only extra idea I have is to make it an ajax reply and I think you can do that too. I do see the future of this promising mod, so, keep it up.
Title: Re: PM Quick Reply
Post by: dougiefresh on May 15, 2015, 06:33:23 PM
Uploaded v1.1 - May 15th, 2015
o PM Quick Reply settings moved to the PM Settings template.
Title: Re: PM Quick Reply
Post by: dougiefresh on June 05, 2015, 05:02:35 PM
Uploaded v1.2 - June 5th, 2015
o Updated for SMF 2.1 Beta 1.
Title: Re: PM Quick Reply
Post by: Steve on June 05, 2015, 07:53:12 PM
Love, love, love this. ;D
Title: Re: PM Quick Reply
Post by: Steve on June 05, 2015, 08:05:46 PM
I'm seeing this error though I haven't been able to pinpoint the exact steps that cause it:

8: Undefined index: pm_quick_reply
Apply Filter: Only show the errors from this file
File: /home/*****/public_html/forums/Themes/default/PersonalMessage.template.php
Line: 561


Edit: just found that if I go to my pm box with no messages and then go to the index page of the forum, I get that error.
Title: Re: PM Quick Reply
Post by: Steve on June 06, 2015, 04:34:31 PM
Btw, the error has no effect on functionality that I can find. It's just annoying to have it show up next to the admin button.
Title: Re: PM Quick Reply
Post by: dougiefresh on June 06, 2015, 05:13:04 PM
@Steve: Can't reproduce this.... Can you attach your Themes/default/PersonalMessage.template.php and Sources/PersonalMessage.php files?  Thanks in advance.
Title: Re: PM Quick Reply
Post by: Steve on June 06, 2015, 05:17:49 PM
Here ya go. :)
Title: Re: PM Quick Reply
Post by: dougiefresh on June 06, 2015, 07:53:47 PM
Uploaded v1.3 - June 6th, 2015
o Fixed undefined index error in PersonalMessage.template.php.




@Steve: Whoops!!  I forgot that I had to turn on the PM quick reply box in the PM settings before it would show the box.  Once I did, I could reproduce the error on the same line (not same line NUMBER) as your report.  This update fixes this issue.  Thanks for the bug report!
Title: Re: PM Quick Reply
Post by: Steve on June 07, 2015, 08:30:35 AM
I'm still getting the exact same error, Dougie. :(
Title: Re: PM Quick Reply
Post by: Steve on June 07, 2015, 03:44:15 PM
Don't know if this helps but when I click to send a message, I get this error also:

8: Undefined index: pm_quick_reply
Apply Filter: Only show the errors from this file
File: /home/************/public_html/forums/Themes/default/PersonalMessage.template.php
Line: 625

Both errors seem to generate only when the pm box has no messages.
Title: Re: PM Quick Reply
Post by: dougiefresh on June 08, 2015, 07:12:27 PM
Uploaded v1.4 - June 8th, 2015
o Added additional restriction so PM Quick Reply isn't shown if no PMs are present.
o Fixed undefined index error in PersonalMessage.template.php for SMF 2.0.




@Steve:  I thought I fixed that error in both install.xml files.  Turns out it was only the SMF 2.1 install file....  My bad....  v1.3 Changelog should read:
Quotev1.3 - June 6th, 2015
o Fixed undefined index error in PersonalMessage.template.php for SMF 2.1.
Title: Re: PM Quick Reply
Post by: Steve on June 08, 2015, 07:46:52 PM
Works a treat now Dougie. Thanks a bunch!
Title: Re: PM Quick Reply
Post by: Costa on June 29, 2015, 11:27:01 AM
Code (portuguese_pt) Select
$txt['display_pm_quick_reply'] = 'Usar a resposta rápida nas mensagens privadas: ';
$txt['display_quick_reply1'] = 'Não mostrar';
$txt['display_quick_reply2'] = 'Mostrar, desligado por defeito';
$txt['display_quick_reply3'] = 'Mostrar, ligado por defeito';


Code (portuguese_pt-utf8) Select
$txt['display_pm_quick_reply'] = 'Usar a resposta rápida nas mensagens privadas: ';
$txt['display_quick_reply1'] = 'Não mostrar';
$txt['display_quick_reply2'] = 'Mostrar, desligado por defeito';
$txt['display_quick_reply3'] = 'Mostrar, ligado por defeito';
Title: Re: PM Quick Reply
Post by: dougiefresh on June 30, 2015, 07:00:50 PM
Thank you, Costa!  I'll include it in the next version, once I figure out what the search string should be....
Title: Re: PM Quick Reply
Post by: dougiefresh on July 11, 2017, 12:48:35 PM
Uploaded v1.5 - July 11th, 2017
o Added support for SMF 2.1 Beta 3.
o Removed support for SMF 2.1 Beta 1 and 2.




@Costa:  I'm sorry, I must be REALLY slow at searching for text strings....   O:)  Either that, or I completely forgot about adding them to the mod.  I apologize....
Title: Re: PM Quick Reply
Post by: dougiefresh on August 04, 2017, 01:01:37 PM
Uploaded v1.6 - August 4th, 2017
o Added Portuguese_PT language translation, courtsey of Costa (https://www.simplemachines.org/community/index.php?action=profile;u=169940).  Thanks, Costa!




@Costa:  Thanks for the translation!  Sorry it took so long to get it into the mod!  (Only took 2 years.... O:) What a record!  ::))
Title: Re: PM Quick Reply
Post by: thepitster on August 26, 2017, 03:56:00 AM
in your language_portuguese_pt.xml & language_portuguese_pt-utf8.xml files, you might wanna change them to:
Code (language_portuguese_pt.xml, language_portuguese_pt-utf8.xml) Select
<file name="$languagedir/Profile.portuguese_pt.php" error="skip">
<file name="$languagedir/Profile.portuguese_pt-utf8.php" error="skip">


that way the mod does not error right off the bat on non-portuguese forums :)
Title: Re: PM Quick Reply
Post by: dougiefresh on August 26, 2017, 07:18:41 AM
Uploaded v1.7 - Agust 26th, 2017
o Fixed Portuguese_PT language files so that non-portuguese forums skip operations.




@thepitster:  You're absolutely right!  I've made that change in the mod!  Thank you for the report!
Title: Re: PM Quick Reply
Post by: ILUXA on September 23, 2017, 11:11:40 AM
Hello! Great Mod! Thank you!
But I have a little problem, mod default settings for users cannot be set,
via "Admin - Themes - My theme - User settings - registred user settings",
I changed it to "show, on by default" and apply, but it didn't has any effect...
also it doesn't work for new users, when i change "Admin - Themes - My theme - User settings - new user settings".
I'm using SMF 2.0.14 Any suggestions? Maybe there is a workaround, to change default mod settings manually in theme files?
Title: Re: PM Quick Reply
Post by: dougiefresh on November 19, 2017, 11:19:41 PM
Quote from: ILUXA on September 23, 2017, 11:11:40 AM
Hello! Great Mod! Thank you!
But I have a little problem, mod default settings for users cannot be set,
via "Admin - Themes - My theme - User settings - registred user settings",
I changed it to "show, on by default" and apply, but it didn't has any effect...
also it doesn't work for new users, when i change "Admin - Themes - My theme - User settings - new user settings".
I'm using SMF 2.0.14 Any suggestions? Maybe there is a workaround, to change default mod settings manually in theme files?
I apologize about not responding to your bug report earlier.  There isn't a global option in this mod for this particular setting.  I'll see what I can do about adding that option into the mod.
Title: Re: PM Quick Reply
Post by: -Rock Lee- on November 19, 2017, 11:30:05 PM
Well they are easy translations so before going to sleep :laugh: I leave the .xml ready with the normal Latin Spanish version with its respective utf8 ... tomorrow I continue with the longer ones ;)!


Regards!
Title: Re: PM Quick Reply
Post by: dougiefresh on November 19, 2017, 11:41:22 PM
Uploaded v1.8 - November 19th, 2017
o Added option to change PM quick reply display options globally.
o Corrected PM quick reply display string to reflect that the option is for PMs.




@ILUXA:  Your feature request (or bug report, whichever) has been added to the mod!  Thank you!

@Rock Lee:  I just found that the english strings weren't quite correct.  The display_pm_quick_reply string has been changed for version 1.8.  Can you update your translations to reflect the new strings?  Once corrected, I'll add the files in the next version.  Thank you!
Title: Re: PM Quick Reply
Post by: -Rock Lee- on November 20, 2017, 08:26:51 AM
@dougiefresh It seemed strange to me when I translated, I got lost in my dreams and I was very crazy in the morning. Anything warn me to repair it, or for what you need :)


Regards!
Title: Re: PM Quick Reply
Post by: dougiefresh on November 20, 2017, 10:43:01 AM
Uploaded v1.9 - November 20th, 2017
o Added Spanish Latin translation, courtsey of Rock Lee (https://www.simplemachines.org/community/index.php?action=profile;u=322597).




@Rock Lee:  Thank you for the translation!  It's been included in this version!
Title: Re: PM Quick Reply
Post by: dougiefresh on October 24, 2018, 11:13:01 AM
Uploaded v1.10 - October 23rd, 2018
o No functionality change.
o Updated documentation to point to new website.
Title: Re: PM Quick Reply
Post by: dougiefresh on May 23, 2019, 09:04:56 AM
Uploaded v1.11 - May 22nd, 2019
o Added support for SMF 2.1 RC2.
o Removed support for SMF 2.1 Beta 3.