[wp-hackers] Modifying admin forms via plugins

Jason goldsmith unteins at gmail.com
Wed Jun 23 00:32:18 UTC 2004


I'd be happy to store some settings in the DB, anyone have an example
of this?? However, I don't think there are any nice functions for
getting plugin settings.

I don't see how this is any extra work for the end user? Multiple
files isn't more work. It can also be a time saver for those with slow
connections as a large plugin could be upgraded in pieces. If one line
in a 1 kb file changed in a plugin with multiple files, that's no big
deal. If that same line changes in a single massive plugin that is
hundreds of Kb, the end user has to redownload it all.

For me, it seems that the best approach is to provide a flexible
framework with many hooks for plugin writers to tie into, without
putting a lot of restrictions on the plugin writers. My personal
experience has been if you force a plugin developer to do something
they don't want to do, they will look for ways to hack around it and
thus cause problems. I don't see why the plugin header can't have
extra entries like

Path to Admin UI: /somefolder/someotherfolder/wowmorefolders/somefile.php

and so on

On Tue, 22 Jun 2004 17:28:04 -0600, Alex King <alex at alexking.org> wrote:
> 
> A little extra work by the plugin developers is better than a little
> extra configuration for end users.
> 
> Your plugin doesn't need an extra file for settings, you can store the
> configuration settings in the database and use the form to manipulate
> them. This is even more friendly for the users. :)
> 
> Maybe I should do a proof of concept when I get some time (if no one
> else has by then).
> 
> --Alex
> 
> http://www.alexking.org/
> 
> 
> 
> 
> On Jun 22, 2004, at 5:23 PM, Jason goldsmith wrote:
> 
> > it seems
> > silly to force plugin writers to do that or to have a big block of
> > code surrounded by an if statement to check if the plugin file is
> > being called via the plugins.php page or it is being called by another
> > page and therefore needs to execute.
> 
> _______________________________________________
> hackers mailing list
> hackers at wordpress.org
> http://wordpress.org/mailman/listinfo/hackers_wordpress.org
>



More information about the hackers mailing list