WordPress
Smarter Cleaner Gallery
Justin Tadlock’s Cleaner Gallery plugin fixes the semantics of the WordPress built-in gallery feature by placing all of the gallery related CSS in an external file instead of the inline CSS produced by WordPress core.
However, the problem is that this CSS file is loaded on every page request. Therefore, until WordPress supports combining all CSS files into one, here is a quick way to hide this CSS file on all pages that don’t contain a gallery (line 128 of cleaner-gallery.php):
Note: this will add cleaner-gallery.css only on single post and page views (not indexes or archives).
add_action('wp_head', 'cleaner_gallery_head', 0);
function cleaner_gallery_head() {
global $post;
if (strstr($post->post_content, '[gallery'))
wp_enqueue_style( 'cleaner-gallery', CLEANER_GALLERY_URL . '/cleaner-gallery.css', false, 0.7, 'all' );
}
Hopefully, Justin can incorporate this into the next release of this handy plugin.
Widget Context Update for WordPress 2.8
I have updated the Widget Context plugin to fix the CSS overlay issue that was introduced with the latest WordPress upgrade.
WordPress, Plugins and Open Source
It’s funny how only now when WordPress has been updated and many plugins have stopped working, people realize how important and significant the plugins are.
Show your love for open source — say Thanks and donate. Get the developers’ enthusiasm flowing.
OpenID Plugin and WordPress 2.8
Ever since using the nightly versions of WordPress, I got used to doing regular updates and not checking if all plugins work fine afterward.
Therefore only today I discovered that leaving comments on this blog has been impossible for a while already. Turns out that changes in the WordPress core have made the OpenID plugin unaware of the comment author’s name and e-mail.
Haven’t found a solution yet. Read more »
Widget Context Plugin for WordPress 2.8
If you are using my Widget Context plugin and you have just upgraded to WordPress 2.8 Beta, please use this new version of Widget Context plugin.
— § / Add a Comment »
Quick Reply Templates Plugin and WordPress 2.8
Quick Reply Templates is a really useful WordPress plugin by Paul William that allows you to have a predefined comment reply template, such as <a href="#commend-id">@Name</a>, that will be filled out automatically when you reply to a comment within your WordPress Dashboard or Edit Comments page. Read more »
WordPress Admin Header Design Tweak, Take Two
After looking at all the submissions for the WordPress Admin Design Tweak Poll I have updated my entry leaving Panel and Help buttons as they currently are in WordPress 2.7.1. The only change necessary in HTML structure would be moving #favorite-actions out of #wphead-info. Read more »
Tweaking WordPress Admin Header
One of the important ideas behind the WordPress 2.7 administration area redesign was to maximize the amount of information and input fields above the ‘fold’. While the current design does the job well, there is still some room for improvements. Read more »
Matt Mullenweg Tonight on WordPress Weekly
Join Jeff and Matt tonight at 20:00 EST or 00:00 GMT on WordPress Weekly. Listen and chat live in your browser or use any of the alternative methods.
— § / Add a Comment »
Display Widgets Only on Certain Pages
In WordPress it requires only two steps:
- Install the Widget Context plugin, and
- specify the visibility settings for each widget.
WordPress 2.8 bleeding-edge and WordPress_Module::_weak_escape()
After upgrading to 2.8-beeding-edge I got the following error:
Fatal error: Call to undefined method WordPress_Module::_weak_escape()
in ../wp-includes/wp-db.php on line 473
Disabling Redirection plugin solved the problem. Could it be that Redirection also defines _weak_escape() or escape()? Server ir running PHP 5.2.6.
Widget Context Update — Word Count Check
Jeff said he might switch, so I had to update the Widget Context plugin to fix the problem of widget settings not being when adding the widget for the first time, and added a new feature which enables you to show or hide a widget if the blog post has more or less then certain number of words.
Please note the new feature that checks for a word count in a post works perfectly only on single post view (when the full article is displayed) and makes only an estimate when paginated archive or index page is being viewed. The reason for this is that your theme can alter the ‘typical’ number of words that archive pages should display, which is everything above the <!--more--> tag.
MediaTemple’s Disappointing Grid
Since the very first day this website has been hosted at MediaTemple. Back then it was a simple shared hosting account for a good price and a lot of good and well earned hype. Almost a year ago they started switching to a grid infrastructure which was said to be able to allocate enough computing power for every grid member no matter what the neighboring cells are doing. Read more »
WordPress, GPL and Widget Context
Definitely check out the special episode of WordPress Weekly podcast (RSS) hosted by Jeff Chandler where Matt Mullenweg explains why WordPress, GPL and Open Source matters.
I am finally publishing my Widget Context plugin as an α release at the official plugin repository. If you find a bug, or if you know how to fix that bug where the context settings are not saved for widgets that are added fresh to the sidebar on the first ‘Save’, then please leave a comment. Read more »
WordPress Plugins which I Use
Here is a list of plugins that are currently active behind this blog. Read more »
WordPress, Themes and GPL
Here is an idea for all the ‘premium’ theme authors out there. How about releasing themes under GPL and making style.css the only commercial asset. This would even fall into a much lighter gray area compared to Automattic’s own ‘Custom CSS’ feature (which in fact is a feature provided by GPL code) for $15/year. Ironically, this is a fee for the ability to modify a theme released under GPL.
PHP Speedy and WordPress 2.7
Leon Chevalier — author of the amazing PHP Speedy plugin — has updated it to work with WordPress 2.7. Read more »
Post from Laconi.ca to WordPress
I have managed to add this blog as a subscriber to my identi.ca account. This means that I can post directly from Identi.ca (or any other application that supports OpenMicroBlogging (OMB) protocol, such as Laconi.ca) to my blog.
To achieve this I wrote a plugin that uses the power of XRDS-Simple plugin to generate Yadis document which specifies the location of OAuth and postNotice, as required by OMB (see konstruktors.com/blog/?xrds). A modified version of WP-OAuth plugin takes care of OAuth 1.0 dance (for the initial authorization and all the update notices) and adds support for receiving updates from the listenee (any Laconi.ca application on your phone, for example). Read more »
6:00 AM Podcast Theme Preview
Since the feedback for the mock-up of the podcast theme for was so great, here is a little preview of how far I have gotten. Read more »
Squeeze the Header of the New WordPress 2.7 Dashboard
I love the new WordPress 2.7 dashboard design even despite all the bad things that I have previously said. Back then it was only a prototype and probably even the core developers didn’t have a clear and complete picture of how it is going to look and work in real-word environment.
Now when it is one minute away from the prime-time, I applaud Jane, Matt and all the designers and developers behind the overhaul who carried out the work in such a transparent and feedback driven way.
For me it is the new icon-only-slide-right navigation bar that makes the whole administration section work so much better than I could have imagined. All the administration sections are only one click away. Navigation takes up only 40 pixels of the cheap vertical space and thus saves much of the expansive vertical area where things get done. The result is truly amazing and it makes me wonder if anyone really knew it will turn out to be this good. Read more »
Creative Commons Attribution-Noncommercial-Share Alike License
GNU GPL