Skip to content

New feature to allow deleting of all of a user's given thanks/likes #198

@lairdshaw

Description

@lairdshaw

This feature was requested by floriaN here:

Is there a query or feature to wipe/remove all likes from a User? Like setting his likes to 0.

And further explained here:

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.

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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions