MyBB Community Forums

Full Version: Thank You/Like System v3.4.5 + MyAlerts and Tapatalk support
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
getting this error. using php 7.2. known issue?

using mybb 1.8.17

[Image: 8Sfg8f9.png]
(2018-07-14, 08:08 PM)andrewjs18 Wrote: [ -> ]getting this error.  using php 7.2.  known issue?

Yep, that's a known issue (though not noted anywhere), fixed in commit 833e5de5b6f01eb0e6be8084b55b0dadc10e04e6.
(2018-07-14, 11:10 PM)Laird Wrote: [ -> ]
(2018-07-14, 08:08 PM)andrewjs18 Wrote: [ -> ]getting this error.  using php 7.2.  known issue?

Yep, that's a known issue (though not noted anywhere), fixed in commit 833e5de5b6f01eb0e6be8084b55b0dadc10e04e6.

thanks
We will release a new version soon, stay tuned Smile
New version 3.0.0 was released! We recommend to everyone to update, it contains a lot of fixes and new features... moreover version 3.0.0 is fully compatible with PHP 7.2.0. Here is a changelog:

Quote:- [FIX] - thanks/likes are now merged correctly when merging users via the ACP - @lairdshaw
- [FIX] - a warning new to PHP 7.2 is now avoided (it was being triggered by an attempt to count a non-countable variable) - @lairdshaw
- [FIX] - existing MyAlerts alerts for thanks/likes are no longer lost (orphaned) when the plugin is deactivated. Instead, the thanks/likes alert type is simply disabled on plugin deactivation and re-enabled on plugin reactivation  - @lairdshaw
- [FIX] - thanks/likes are now counted correctly when the plugin's "Remove self-given thanks/likes from counters" setting is enabled  - @lairdshaw
- [FIX] - excluded forums are now properly excluded when recounting thanks/likes (and warnings are now given to run recounts after modifying the "Excluded forums" setting)  - @lairdshaw
- [FIX] - the broken setting "Special option to display thank/like buttons in ALL posts" now works (and has been renamed to "'First post only' forums override")  - @lairdshaw
- [ENHANCEMENT] - the upgrade procedure has been improved: reconfiguring from scratch after upgrading to a newer version of the plugin is no longer required - simply deactivate, copy new files, and reactivate: your settings will now be kept, including your changes to templates!  - @lairdshaw 
- [ENHANCEMENT] - a lot of language corrections have been made  - @lairdshaw 
- [ENHANCEMENT] - clean-ups, deduplications, and a lot of other small adjustments to the code have been made  - @lairdshaw 
- [NEW FEATURE] - the remaining number of permitted thanks/likes for the following 24 hours is now shown in the popup notification displayed when adding a thanks/like (most useful when usergroup-based thanks/likes limits are enabled)  - @lairdshaw 
- [NEW FEATURE] - an anti-flood interval has been added: enforce a waiting time between adding/removing thanks/likes to prevent spamming (available when usergroup-based thanks/likes limits are enabled)  - @lairdshaw 
- [NEW FEATURE] - a new setting "Forums excluded from counts" has been added  - @lairdshaw

Thank you @lairdshaw (Laird) for your contribution and time! And welcome to our team!

DOWNLOAD: https://community.mybb.com/mods.php?action=view&pid=360

!!! Please READ the changelog and instructions on how to update carefully !!!
(2018-07-19, 05:46 PM)Eldenroot Wrote: [ -> ]Thank you @lairdshaw (Laird) for your contribution and time! And welcome to our team!

Thanks for inviting and welcoming me in, Eldenroot. The team has put a lot of good work into this very useful plugin already and I'm glad to be a part of the team and help maintain the plugin.
Is there a query or feature to wipe/remove all likes from a User? Like setting his likes to 0.
At the moment, there's no single query or user-interface feature to do this. There is, though, a function that does what you want: thankyoulike_delete_user() in inc/plugins/thankyoulike.php. Ordinarily, it is called when a user is deleted, but you could arrange for it to be called for an existing user to remove that user's likes if you're handy with code.

Edit: you would be best off recounting thanks/likes via the ACP afterwards though because the function assumes that the user is being deleted, so it doesn't adjust his/her thanks/likes counts in the user table.
@Laird - yes, this is not possible unfortunately. All thanks/likes are deleted only when you delete user account. Is there any reason why do you need to delete thanks/likes for specific user?
(2018-07-22, 03:21 PM)Eldenroot Wrote: [ -> ]@Laird - yes, this is not possible unfortunately. All thanks/likes are deleted only when you delete user account. Is there any reason why do you need to delete thanks/likes for specific user?

Yes, because I have members abusing the like system with creating multi accounts and liking their own post to reach a new usergroup or to bypass limitation. Perm banning them is not the solution here, I'd rather just delete all of their likes as a punishment.

But it seems like that feature doesn't exist. Is there a way I could request this custom feature done for me exclusively for a fixed price?