Mass Edit Pages for Wordpress 2.1.x and up

I haven't bothered to upgrade my Wordpress installation away from the 2.0.x series yet, primarily because Mark Jaquith & Co. have committed to providing security updates to the 2.0 line through 2010. However, Jan and Gunnar were nice enough to update my Mass Edit Pages plugin to work with Wordpress versions 2.1.x and the new 2.2 series.

While they were at it, they made the plugin I18n compatible, which is great for people who don't speak English. They even included a version that comes with the full German translation. Thanks, guys!

Update: Gunnar provided a small update for the 2.1.x version of this plugin today, which fixes a problem that occasionally popped up involving updating the Wordpress cache.

Download the plugin »

WordPress Pagination on a Page

One of the goals in redesigning this site was to reduce the amount of emphasis on the weblog - at least on the home page - without losing any standard blog functionality. I also tried to combine the weblog and the full archives on one page in the interest of saving space. I'm not sure how it'll scale, but it seems to work well enough for now.

The only problem I ran into in pushing the weblog off the front page was in using "pagination" from a "page". Pagination is easy when your blog is displayed from the home page, but there isn't any trick built into the query_posts() function to help if you're trying to display a standard blog from within a page.

After bumbling around for a while, I came across this small bit of code from Kafkaesqui that did the trick:

<?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts("showposts=5&paged=$page");
while ( have_posts() ) : the_post() ?>
<h2><a href="<?php the_permalink() ?>"><?php the_title() ?></a></h2>
<span class="entry-date"><?php the_time('F d, Y'); ?></span>
<?php the_content(); ?>
<?php endwhile ?>

I've added some code in there to complete the_loop as well. I'm sure this will come in handy as people continue to extend WordPress beyond what it was originally intended to do - and I hope this post can save some poor person on Google the headache I've got right now :)

Head over to the all new Weblog page to see the results of this endeavor, and make sure to click the "older posts" link at the bottom of the page.

Page Dump Plugin

If you happen to have been using Wordpress as a CMS, as you happen to have been asked to provide all of the content on your WP-powered site in a single web page or Word Document, then I've got a plugin for you.

The plugin is pretty simple. It dumps the content of your Wordpress pages onto a single page. The bonus is that providing your client with a Word DOC version of your site is as easy as opening your the page dump in Word and clicking Save As Word Doc.

Click here to download the Page Dump plugin »

Enjoy!

k2 lite for Sandbox

I'm very pleased to announce the immediate availability of k2 lite for Sandbox. This is a port of the fabulous k2 for the wonderful Sandbox.

k2lite

Porting a Wordpress theme into a Wordpress theme...? Sounds crazy at first, but it's a pretty exciting proposition once you start to grok it. I believe that the good people working on k2 have already done so, and might even be working on a k2 for Sandbox as well.

The original k2 theme is more than your average theme - it's more of a Wordpress extension if anything. It comes pre-packaged with support for a ton of useful plugins, and it does all kinds of cool stuff right out of the box:

K2 is an advanced template for the blogging engine WordPress... K2 is the followup to Kubrick, created by the same author... But more than that. K2 for instance also has an options panel, from which you can select custom styles, upload header images, configure the sidebar to infinitesimal levels, turn our AJAX features on and off and much more.

The thing about k2 is that it does so much, which is a blessing and a curse. It's a blessing because it's so very simple get an advanced Wordpress blog up and running. It's a curse because the theme is so very huge. That means that customization can be difficult and complicated, especially for beginners.

My goal in making k2 lite was to make a version of k2 without any of those advanced features - a version of k2 that maintains the look and feel without suffering from the overhead. To put it into perspective, I was able to trim down the 1153 lines of CSS in the fully loaded k2 theme to 349 lines for k2 lite.

The Sandbox theme is, also, more than your average theme - it's more of a Wordpress platform, I'd say. The idea behind Sandbox is summarized here:

Sandbox is a theme for themers. It has the ability to be easily skinned, so beginners will feel comfortable styling it since they only need to know CSS. More experienced themers will drool at the rich semantic markup and profusion of classes, dynamically generated by a few functions.

So, the idea here is to port k2 into a skin for Sandbox. In the end, I think it's a bit more than that, though - it's a lite version of k2!

Sandbox has already garnered the support of Wordpress.com, and is the recommended for use in their first paid upgrade option, Custom CSS. That means the good folks over at Wordpress.com can start using k2 lite on their blogs right away.

Enough rambling... Click here for the theme »

Update 1: Brian released a port of k2 called k2lite in July.

Update 2: I've fixed the CSS to work with the changes introduced in Sandbox 0.6.1.

Update 3: Small changes for the nav-above selector, fixes for ul/li items in post entries.

Mass Edit Pages

I'm proud to announce the release of another Wordpress plugin: Mass Edit Pages. This plugin will come in handy for those using their Wordpress install less as a Blog, and more as a CMS (Content Management System).

Basically, this will allow you to edit the Page Parent (post_parent) and Menu Order (menu_order) of many pages, on a single page. Thus, instead of clicking through each page (page after page after page) to change their order or parentage, you can get at all of the pages from one simple interface.

mass-edit-pages

Click here for the plugin »

If you're leveraging the wonderful Wordpress as a CMS, I'm sure you're going to find that this plugin will save you a ton of time. Plus, I got to learn quite a bit about Wordpress internals while writing it. For example, the accessibility of the Wordpress database via the wpdb class, which is somewhat amazing. Also, other plugin authors might take note of the way I've dealt with multidimensional arrays with regard to plugins. I'm sure that I didn't do things the 100% best way, but at least it's working!

Anyway, I hope you enjoy. Comments? Questions? Please visit the Forum »

Update: Jan was nice enough to make a German version of the plugin, which I've made available from the download page.

k2 Images

I love k2 (the Wordpress theme, but I think some of the images are overkill. Luckily, there is an easy way to hide them using CSS. It's easy:

.commentslink, .chronodata, .tagdata,
.comments .commentlist .commentmetadata {
	background: none;
	margin-left: -20px;
}

Wordpress Shuttle

A long time ago, a group of designers began a somewhat officially endorsed endeavor to redesign the Wordpress administration interface. I remember reading something around the time this started getting publicity that was rather harsh in regard to the drab grey look of Wordpress at the time. So, the Shuttle project caught my attention. The progress of the project was brought to my attention today via Photomatt.net. From the Shuttle info page:

The Shuttle is a complete beautification of the WordPress Administration Panel. The project has been in development since early 2005. These are the images we did on Photoshop, so there is no plugin for you to download, as it’s not been incorporated into the final release yet.

I'm pretty impressed with the work so far, and I'm looking forward to this making it into the core. Estimated arrival... my guess... by the end of the year.

Force SSL Plugin

We're rather pleased to announce our second plugin for the famed Wordpress semantic publishing system. It's called Force SSL, and it's a handy little thing. For those will an SSL certificate, this plugin forces an HTTPS connection for security purposes.

Click here for the plugin »

Perhaps you're interested in the PHP scripting technique that makes all of this possible? Maybe you don't feel like taking a look at the source code, and you'd like a little help right quick?

Read the rest of this entry »

Secure Files Update

A fix has been issued for potential exploit in the Secure Files plugin, which was pointed out by a forum member earlier tonight.

All users of the Secure Files plugin should update to the latest version, which can be downloaded here:

Download updated plugin »

Integrating Wordpress and PunBB

You might have noticed the new Forum link on the top of this site. I've just finished integrating the lovely PunBB with the amazing Wordpress, featuring the brand new k2 theme. Visually integrating the two programs is a very easy process, made even easier by the tutelage of LiewCF, who posted a nice guide on his blog.

I'll walk you through the process of integrating PunBB with Wordpress/k2 here at æ.

1. Install PunBB and add a link to your forum (or whatever you call it) to your Wordpress theme header. In my case, this meant adding the a link to the forum like this:

<li class="page_item"><a href="http://www.almosteffortless.com/forum/">Forum</a></li>

within the

<ul class="menu"></ul>

section near the end of the k2 header code. You can download my k2 header file, if you'd like to have a look at it.

2. The only other thing you need to edit is the main.tpl file included with PunBB. If you're using the default k2 theme, you can download my main.tpl file, and simply replace yours with that one. The file is located in

/include/template/

within the PunBB folder. This should cover you using the Oxygen PunBB style, but some other styles might not look right. You can edit these via the Profile -> Display options when you're logged into PunBB.

Customized k2 Theme. If you are using a customized version of the k2 theme, take a look at the code added in-between the

<!-- Wordpress Template CSS -->

code comments in the main.tpl file. You might want to change the colors added in the CSS

<style type="text/css"></style>

area to match your own. This should allow you to override the PunBB colors enough to make it match your theme. If you're using a different custom k2 stylesheet, you'll want to include that at the top of your main.tpl file instead of the sample.css CSS.

Other Themes. If you made a lot of changed to k2, or you aren't using k2 at all, you'll need to collect the CSS, header, and footer code from your blog manually. Do a View Source on your blog, and copy the code for your CSS stylesheets, header, and footer into your PunBB main.tpl file. You might want to begin by downloading the main.tpl file I linked to above, and note the code comment areas, which indicate exactly where to paste in your Wordpress code:

<!-- Wordpress Template CSS -->
<!-- Wordpress Template Header -->
<!-- Wordpress Template Footer -->

You'll have to do some fiddling, but the basic idea is to get the code from your Wordpress blog into those 3 sections of the main.tpl file. The goal is to wrap your PunBB forum within your Wordpress header and footer, while including the CSS for the overall look and feel. Another small thing is to give the list-item that contains the link to your forum a class of current-page-item as I've done in my main.tpl file. This will highlight the forum link in the header when you're in the forum.

Update: I made a couple of small changed to get things working properly in (boo!) Internet Explorer. My main.tpl file contains the fixes. I added this line to the CSS:

.pun { font-size: 11px !important; }

and also changed this line

#punwrap { padding: 0; padding-top: 10px; margin: 0; width: 760px; }

to sets the font size and width specifically. So, if you're using the flexible width or a different font size in k2, you might need to make some tweaks.

Update 2: I've updated my main.tpl file again to match the new look on this site. If you're interested, please feel free to take a look. Be careful, though - this file is straight from my site, so it still contains code to include Mint, links to my CSS, header navigation bar, footer, etc etc etc. If you're going to use this file on your site, you'll most certainly have to edit it first.

Update 3: Another redesign, another new main.tpl.

That's it! Discuss... in our brand new forum »