Author Topic: [A] Thanks Received Membergroups v1.0.1  (Read 249 times)

dougiefresh

  • Adminstrator
  • Expert Member
  • *****
  • Posts: 261
[A] Thanks Received Membergroups v1.0.1
« on: Mar 28, 2018, 09:46:52 AM »

THANKS RECEIVED MEMBERGROUPS v1.0.1
By Dougiefresh -> Link to Mod


MOD REQUIREMENTS
This mod requires the database tables that the Say Thanks mod creates.  If that mod is not installed, this mod will result to install!

Uninstalling the Say Thanks mod and removing the tables it creates will create and/or generally cause problems until this mod is removed.

No support will be rendered if these mod requirements are not met!  YOU'VE BEEN WARNED!

Introduction
This mod changes the post-based membergroups to "thanks count"-based membergroups, where the number of thanks received from other members determines which membergroup you belong to.

Admin Settings
In Admin => Members => Membergroups under any post-based membergroup, the Required Posts entry changes to Number of Thanks Received.  Current values are not modified as a result of installing this mod.

Related Discussion
o Based membergroups by thanks_count from mod Say Thanks

Compatibility Notes
This mod was tested on SMF 2.0.15, but should work on SMF 2.0 and up.  SMF 1.x is not and will not be supported.

Changelog
The changelog has been removed and can be seen at XPtsp.com.

License
Quote
Copyright (c) 2018, 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.

dougiefresh

  • Adminstrator
  • Expert Member
  • *****
  • Posts: 261
Re: [A] Thanks Received Membergroups v1.0
« Reply #1 on: Mar 28, 2018, 09:48:35 AM »

Download Mod


FileName: Thanks_Received_Membergroups_v1.0.1.zip
Size: 6 kb (5,814 bytes)
MD5: 36a8476de3fc7eae74e6b8d67914fba8
Built: Apr 18, 2018, 07:34:26 PM
Downloaded 32 times

Changelog

Uploaded v1.0.1 - April 16th, 2018
o Fixed code in SayThanks.php to update postgroups when giving/withdrawing thanks.
o Added entire case for updateStats function in order to restore original postgroups.
o Added a post-install redirect to update the postgroups to reflect thanks counts.
o Added an uninstall script to return the postgroups to reflect post counts.

Uploaded v1.0 - March 28th, 2018
o Initial release to the public