Confirm plugin uninstallation
Many plugin developers tend to run their uninstallation routines without qu...

Many plugin developers tend to run their uninstallation routines without questioning. It may not big issue after all, I mean, the user is logged in so no security check are really necessary. But, how many of you (developers) tend to mistakenly uninstall a plugin? Probably not many, but I have come across that.. Now make the same question about regular administrators.

It is actually not hard to add a confirmation page at all, just around 20 lines of code right before our original code. A example is found below.


There it is, rather simple isn't? Removing the comments there is really few code being added to the plugin file.

Also note that this is part of the update to the Hello! plugin being added to the upcoming versions of MyBB.

I hope it is of some use for you.
This post was last modified: 22 Oct, 2015, 11:57 am by Omar G..
There are currently no posts to display. Be the first one to leave a reply.

Current time: 28 Mar, 2024, 4:14 pm