Lack of interest Custom Warnings on uninstalling addons

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

Slavik

XenForo moderator
Staff member
For example, the XenTrader addon.

Uninstalling the addon drops the tables it creates on install. Now while many adept admins may realise this, others may not, and with more people coming to XF every day it would be nice to give them a warning on uninstalling eg. clicking the uninstall button brings a confirmation box up

Warning, uninstalling XenTrader will permanently erase all feedback. If you wish to retain your feedback please disable the addon within the XenTrader options instead.
Continue with uninstall - Cancel

Just a thought.
 
Upvote 0
This suggestion has been closed. Votes are no longer accepted.
What I would like to see is an overlay confirm asking if the user would like to remove all the data. Depending on what is selected pass a third variable to the uninstall method to specify to remove data or not.

So you would end up with something like this...
PHP:
public static function uninstall($existingAddon, $addonData, $removeData)
{
    if ($removeData)
    {
        // do any database stuff here
    }

    // do stuff unrelated to database
}
 
There's already a confirmation needed for uninstalling add-ons. :confused: Unless you're asking to add more detail to the confirmation dialog about it?
 
Oh so it does. I was thinking disable. Didn't notice the 2 different options. Which leads me to something I was thinking about earlier today, makes me change my mind on it :p

Back on topic, I would like it to say all database data will (or may) be lost as well. And then my part of the suggestion as well...

Actually I would like installing and uninstalling of addons to have a lot of enhancements that addons can easily hook into, like a readme, cutom uninstall message, custom confirm action etc. If none of this is coming I'll probably bundle it with mods if I get a chance to add that little touch.
 
Top Bottom