-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New feature to allow deleting of all of a user's given thanks/likes #198
Comments
I agree, good approach! Feel free to work on it. Is possible to send a PM to user automatically when his thanks/likes were deleted with reason? |
Yes, an automated PM would be possible - good idea, let's add it. Something else to add is logging the action to the moderator log. |
Yes, logging is useful. You can start with coding and during that there might be more ideas what to add or improve. |
An overdue update: floriaN and I couldn't agree on a price. I no longer plan to implement this feature - it's open to anybody else to do. |
@SvePu - please check this branch, it is not correctly integrated (because we have to handle deletion thx/likes in a correct way which will not bug the recounting thx/likes)... anyway could be used somehow maybe? https://github.com/Eldenroot/thankyoulikeold/commit/b05d5ae4efcd22de83827403d4b0b962ff558e9c |
I'll take a look |
Thank you! |
@Eldenroot Why you don't use an adapted thankyoulike_delete_user() fuction?? Thank-you-like-system/upload/inc/plugins/thankyoulike.php Lines 3294 to 3360 in fbe254f
|
Do not ask me :D this was just a try... hidden in my private repo :) feel free to adjust it or whatever (or ignore it) :) |
This feature was requested by floriaN here:
And further explained here:
floriaN has offered to pay me to develop this feature at a mutually-agreed price - the feature would then be available as usual as part of the freely-licensed public version of the plugin. This scenario has been OKed by Eldenroot so long as the feature is first discussed publicly as a GitHub issue - and this is it.
So, here's my suggestion as to how to implement this feature:
Add a new moderation permission which can be toggled on/off for any given usergroup via a checkbox, "Can delete users' thanks/likes?", at the bottom of the "Moderator CP" tab when editing a usergroup.
When viewing a member's profile, members of a usergroup with this option toggled on will be shown an additional link in the "Moderator Options" pane: "Delete thanks/likes given by this user".
When viewing the Mod CP, members of a usergroup with this option toggled on will be shown an additional link in the left navigation panel under "Users": "Delete Thanks/Likes By" (with the thumbs-up image as its icon).
Clicking on either of these links will lead to a page with a username field (pre-filled when arriving via a member profile). Filling in a valid username (autocomplete will as usual be enabled) and clicking "Delete" will delete all thanks/likes given by the user.
And that's it. Let me know what you think!
The text was updated successfully, but these errors were encountered: