• Home
  • Contact Me
  • Store
WordPress Tavern
Where Every Drink Is On The House
Browse: Home / settings
Where Are The Settings For That Plugin?

Where Are The Settings For That Plugin?

By Jeffro on September 14, 2010

At the end of the WordPress Developers meeting for September 2nd, 2010, I had the opportunity to ask a random question about WordPress that has been bothering me for some time.

Out of curiosity will there ever be a way to organize the menus at least by alphabetical order?

The question ignited a bit of discussion and I found out that even Mark Jaquith has a pet peeve with the no rhyme or reason approach to plugin top-level menus. Personally, I enjoy alphabetical order menus because I have a sense of knowing where something is going to be with a minimal amount of time searching. It’s a personal thing but the issue is compounded by the fact that plugin authors have taken it upon themselves to add their settings link where they think it should go. Now, I’ve reviewed a couple of pages in the Codex regarding plugin writing and I have yet to find a specific instance where plugin authors are told where to place their configuration menu link. This is what you end up with.

Some plugins have top menu configuration links while other setting menus are buried within other menus. Overall, it’s just a plain mess that I always have to wade through when configuring something. Currently there are a couple of things that can be done to help with this problem. The first is ticket 14769 which aims to create an API for a Settings action link on plugins.php. The second is for plugin authors to add the Settings link to their plugin which can be accessed on the plugin management page like so.

The third option is to install and use a plugin by Whiteshadow called Admin Menu sorter.

This is a pretty cool plugin in that it provides an interface to mix and match the menu system to your heart’s content, including a few sorting mechanisms built-in such as my personal favorite, ascending order. However, the plugin does not enable you to move items from one menu to another. For example, I created a top-level menu item called WP Settings where WordPress Specific settings would be stored. I was not able to move setting links from the right side of the interface to the left under the main menu. I imagine those changes would be overwritten anyways after each upgrade of WordPress.

These are just a few of the options available to tackle this problem. I would love to see some sort of standard operating procedure when it comes to configuration links and plugins but alas, I think the best that we’ll get is methods built into WordPress that makes it easy for plugin authors to add their configuration links in a standard location. In fact, that method is already in place but many plugin authors fail to take advantage of it, most likely due to poor documentation as I could not find anything about it on the Codex. At least with plugins such as the one I linked to above, I can take it upon myself to restructure the links and menus in the back-end so it’s not such a big mess.

Is this a common pet peeve amongst users of WordPress or do you think things are fine the way they are with regards to settings and their link locations?

Posted in WordPress | Tagged configure, menus, settings | 13 Responses

Plugin Style Settings – Database Or CSS?

Plugin Style Settings – Database Or CSS?

By Jeffro on April 16, 2009

Today I wanted to talk about a problem which Justin Tadlock will be covering in more detail at some point in the future and that is, plugins which contain a CSS file to edit their style. Don’t get me wrong, Lester Chen is a great plugin author, but I find it increasingly annoying that after I make the necessary styling changes to his WP-PageNavi plugin so that it blends in with my theme, I overwrite those changes once I upgrade his plugin.

wppolloptions

Based on what I’ve been told, it’s fairly easy to add a plugins stylesheet to your themes CSS file so that this sort of thing doesn’t happen. But, I wanted to raise the question if whether or not plugins should come with their own CSS file for editing or just store the styling information in the database so that end users don’t have to worry about messing around with the CSS in the first place? I’m pretty sure this is how Lester’s WP-Polls plugin works as I can define from within the plugin options page which colors the voting bars should be via hexadecimal color codes.

What are the drawbacks to storing plugin style information in the database versus a CSS file? On the surface, seems like adding the style information right into the plugins options table in the database is A OK to do.

Posted in WordPress | Tagged css, database, Plugins, settings, style | 15 Responses

© Copyright WPTavern 2012 All rights reserved About / Poll Archive / Site Archive // Powered by WordPress Mtn. Dew And Hybrid