Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
How can I add 'ban' button to user profile?
est
New
I would like to let moderators ban users. Though I would not like to give them permission to edit user.
Is it possible? What should I hack for this? If there is plenty of work to do I will pay for development of such plug in for vanilla.
Tagged:
0
Comments
I'm looking to use this solution as well... Currently the only way to give access to moderators of the BAN function is to grant them almost full control of the dashboard, that I did not want.
There is an option of delete user but I want a ban option for the moderator as well.
im not aware of a plugin that provides this functionality. it could be written though.
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong. || Plugin Development Explained
Yes, I confirm that there isn't something like that around, yet.
My shop | About Me
I hate to add to slightly old discussion, but has anyone come up with anything for this?
Ban button on profile would be very useful.
User banning is actually done through the Ban Model. Models don't check permissions (controllers do, iirc). So you would have to hook in to the user profile page and add a button. Then you would have to actually call a custom ban function
You will have to come up with your own logic to check to see if the user should be able to see the button. You will also have to verify that I guessed the proper request variable indexes.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
It's already in 2.1, fwiw.