1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Lack of Interest Custom Warnings on uninstalling addons

Discussion in 'Closed Suggestions' started by Slavik, Jul 6, 2011.

  1. Slavik

    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.
     
  2. Robbo

    Robbo Well-Known Member

    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
    }
     
  3. Onimua

    Onimua Well-Known Member

    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?
     
  4. Robbo

    Robbo Well-Known Member

    No there isn't?
     
  5. Onimua

    Onimua Well-Known Member

    This:
    Screen shot 2011-07-06 at 6.00.23 PM.png
    Leads to this:
    Screen shot 2011-07-06 at 6.01.33 PM.png
     
  6. Robbo

    Robbo Well-Known Member

    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.
     
  7. Slavik

    Slavik XenForo Moderator Staff Member

    That would be why the title says Custom warnings :)
     
  8. Onimua

    Onimua Well-Known Member

    I was responding to the comment about no confirmation. :p

    I do agree about having more info for the user for the uninstall, and custom options wouldn't hurt.
     

Share This Page