[wp-hackers] A third action for plugins
Benedict Eastaugh
ionfish at gmail.com
Mon Nov 26 21:54:02 GMT 2007
Two things. Firstly, it's good to have a way for users to remove saved
plugin data and start from scratch. Tarski (a theme, not a plugin, but
the principle is the same) lets one do that. I also added a 'deleted'
var to the Options class which stores the time the user decided to
delete their data. This means it can be restored within a couple of
hours in case they did it by mistake (my view being that an undo
dialogue is better than an OK/Cancel one which people tend to click
through without thinking).
http://tarski.googlecode.com/svn/trunk/library/classes/options.php
Secondly, plugins can be very untidy and save a bunch of different
options all over the options table, which is probably one of the
reasons people feel the need to clean up the database. Once one starts
providing a lot of options, a better way to do it might be serialising
them and saving them in a single db entry.
On 26/11/2007, Andy Staines <andy at yellowswordfish.com> wrote:
> I put a check box on the admin page and say that checking this will
> uninstall everything when the plugin is deactivated. However, as far
> as I am aware, many users still seem unable to do this
> Andy
>
> On 04:19 PM | Mon 26 Nov 07, at 04:19 PM | 26 Nov 07, Stephen
> Rider wrote:
>
> > Uninstalling should _not_ be automatic when simple deactivating a
> > plugin! I might want to re-activate it, and would hate to keep
> > losing all my settings.
> >
> > As some have suggested, it should be a user action -- an
> > "uninstall" button, basically.
> >
> > Also:
> >
> > On Nov 24, 2007, at 8:59 PM, Jacob wrote:
> >
> >>> Sort of like there is no uninstall on OS X for applications.
> >>
> >> Don't you just like, move them to the trash?
> >
> > You remove the application by tossing it in the trash, but many
> > apps keep data and prefs in /Library/Application Support or /
> > Library/Preferences (or the ~/ equivalents).
> >
> >> I heard that basically what you think is an executable is
> >> basically not.
> >
> > You are correct, in a sense. OS X has "packages, which are folders
> > that act like clickable executables. Thus all the various and
> > sundry support files for a program can be contained "within" the
> > program. Very tidy indeed.
> >
> > Stephen
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list