Another day and another update. The Shadowbox JS WordPress plugin has been updated to version 3.0.0.2. There are several new features such as generic image sizes and the option to not load sizzle.js. See the change log for a full list of changes. (2)

WordPress Maintenance Mode Without a Plugin Part 3

Code, CoolStuff, HowTo, PHP, Snippet, Wordpress 22 October 2009 8 Comments

A few months ago I wrote part 1 and part 2 of WordPress Maintenance Mode Without a Plugin. Part 1 covered the basics of using the .maintenance file, and part 2 covered styling the maintenance page using wp-content/maintenance.php. Part 3 covers the short comings of the other 2 by addressing how to let a user log into the admin and allowing logged in users access to the front end of the site while in maintenance mode.

It only takes a little bit of extra code in a file called .maintenance in the root of your WordPress installation to conditionally return a time that falls within the logic described in part 1. Now without forther adieu:

<?php
function is_user_logged_in() {
    $loggedin = false;
    foreach ( (array) $_COOKIE as $cookie => $value ) {
        if ( stristr($cookie, 'wordpress_logged_in_') )
            $loggedin = true;
    }
    return $loggedin;
}
if ( ! stristr($_SERVER['REQUEST_URI'], '/wp-admin') && ! stristr($_SERVER['REQUEST_URI'], '/wp-login.php') && ! is_user_logged_in() )
    $upgrading = time();
else
    $upgrading = 0;
?>

Just drop the above code in the .maintenance file perhaps take a look at part 2 and away you go. Enjoy!

Still Looking for WordPress Plugin Maintainers

News, Plugins, Wordpress 1 October 2009 1 Comment

As I have announced, announced, and announced again; I am ceasing development and support on several plugins. The list of those plugins was in the interview with me on WPTavern, but I wanted to formally outline the plugins that have yet to find a new home, and announce, yes another announcement, that there is one more to be added to that list.

Plugins being sent to the plugin orphanage:

Everyone please take a look over the above plugins and if you think that you are interested and would like to take over ownership for one or several of these plugins please let me know, either through my contact form or in the comments here.

2 More WordPress Plugins Have New Homes

News, Plugins, Wordpress 1 October 2009 0 Comments

Since my announcement on Twitter and my interview on WPTavern, most of you likely know that I decided to cease development and support for several of my plugins. Part of the process of doing so is finding new homes for these plugins so that they can live on. Two more plugins have found their new home with Travis Ballard, who many of you know from Twitter or IRC as ansimation or ansi.

The specific posts for each of these plugins are:

Please head on over and check out Travis’ site and his announcement of taking over the plugins. With that being said, good luck Travis and these plugins are now 100% yours.

Gallery Shortcode Style to Head WordPress Plugin Changing Ownership

News, Plugins, Wordpress 15 September 2009 0 Comments

For some time now I have been looking at my plugins and deciding which I wanted to discontinue, which to continue supporting and which I thought someone may be interested in taking over ownership of. One such plugin is the Gallery Shortcode Style to Head plugin which does a look ahead to determine if any posts that will be displayed require the CSS, normally inserted into the body of a post, associated with the [gallery] shortcode. If it determines that such a post will be displayed on the page it prints the CSS to the head of the document, allowing the page to validate as XHTML 1.0.

I had decided to discontinue this plugin, but was recently contacted by Scott Bradford offering a patch to the plugin. After some discussion, I convinced Scott into taking over ownership of the plugin. The new home of the plugin can be found at http://www.scottbradford.us/software/gallery-shortcode-style-to-head/.

I will be redirecting requests to my site for this plugin to Scott’s site. So if you have any questions from this moment forward stop by and talk to Scott.