Use wp_upload_dir() correctly

It seems that you’re either calling wp_upload_dir too early, when it has not yet been included in the scope (which is nearly impossible), or calling it without WordPress being even loaded (highly probable). If you’re using some sort of iframe to provide uploadify.php directly then WordPress will not be available for it. Include wp-load.php to … Read more

Making that Admin Bar transparent or a blue color

There’s a good plugin to make the admin bar blue in both the admin and front-end: http://wordpress.org/extend/plugins/blue-admin-bar/ If those colors don’t suit, play around with the plugin to figure out how to do your own. The key thing to notice about the plugin version is that by using a hook to enqueue the stylesheets, it’s … Read more

WordPress Book Exchange Plugin Equivalent?

Custom Post Types (there are several plugins in the repo for that) Custom Meta Boxes/Fields – a good library is the »RW Meta Box« set of classes Extend the search – there are several answers that show you how to do this in the [tag:search] archive. Role Management: IMHO »Members« does the job best + … Read more

How to handle forms from sidebar widgets – Processing $_POST variables using get_field_name()

WP doesn’t provide any helper methods for creating and processing forms in the front-end. To process your front-end form simply check for $_POST-ed data. I suggest you do this from within an action, and only if the widget is active. In your constructor – the someWidget() method (which you should rename to __construct, and call … Read more

Register google jquery gets overwritten by plugin

First: do not de-register core-bundled scripts in order to register some arbitrary version of those scripts. WordPress currently (at time of writing) comes bundled with jQuery 1.7.1. When WordPress 3.4 comes out next month, that version will be (IIRC) 1.8.x. Core, Themes, and other Plugins will all rightfully expect the core-bundled version of jQuery to … Read more

Simply poll & Events Calendar plugins clashing

It might be due to the position on the admin sidebar in Simply Poll. Go to simply-poll/lib/admin.php and on line 40 remove the , 6 from the end of the add_menu_page() function and see what happens. I’ll have a look at the other plugin as well to check what they are doing. Simply Poll developer

Can plugin2 uninstall plugin1 at the very beginning of plugin2’s installation?

On the register_activation_hook() function of the new plugin use the function deactivate_plugins() (or deactivate_plugin_before_upgrade()) and deactivate the older plugin and also delete the data with delete_option. If you will also delete the files, then use the function uninstall_plugin($plugin); maybe delete_plugins( $plugins, $redirect=”” )