Blaze Blog

Archive For: Development

Jan29

Updating Durable to v0.2.3!

I’ve just finished yet another update to Durable. The theme is now fully compatible with Wordpress version 2.1.

With versions prior to 0.2.3 and Wordpress 2.1, problems arose with the links menu and category clouds. This was basically down to the deprecated category functions and back-end changes to the way categories work in Wordpress 2.1.

Anyway, all is fixed, I’d like to go into it more, but it’s late and I’m off to bed.

Anyone using Wordpress 2.1 or thinking about upgrading should definitely download this version. It’s backwards compatible with Wordpress versions lower than 2.1, you just won’t see any difference.

Download Durable v0.2.3

Update: Durable v0.2.5 has been released to address some unforseen errors in the menu.

Jan12

Updating Durable to v0.2.2

By Andy in Development, News

I’ve just completed a whole bunch of bug fixes and updates to the Durable Wordpress theme. The new version (0.2.2) is ready to download.

Durable

The main change was fixing up the theme to work correctly in Internet Explorer 7. I’ve also introduced a couple of small features including built in gravatar support, admin menu access and two new configuration menu items.

Here is a full list of changes:

  • Fixed a small persistant javascript bug on page load.
  • Fixed “last comment was posted” dates.
  • Fixed IE7 rendering issues.
  • Fixed positioning issues for images within a post.
  • Fixed category cloud font sizes when there is only one month of archives or one category.
  • Fixed header rendering issues when the blog does not have a one line description.
  • Added login/admin link in the menu bar for easy access to the administration section.
  • Added “posted by” item to article meta data column.
  • Added significant javascript compression to all JS files reducing load times.
  • Added configuration menu options for auto image position handling and admin link toggling.

For more information on Durable, check out the project page. If you’re feeling lucky, you can download Durable right here.

Jan5

Creating an Auto-Updating Footer Date

By Andy in Development

It’s 2007, and yet I still see a whole bunch of sites showing “© 2006” in the footer. Here’s a simple way to stop that.

By using PHP, it’s quite simple to write less than one line of code in your footer and then never have to worry about updating that footer date ever again.

What we’ll do is fetch a timestamp of the current date and time from the server using the PHP “date” function. We can then parse this timestamp using the same function allowing us to print only the full year.

Here’s the code:

<?php echo date("Y"); ?>

Yup, that’s it. If you wanted to show more than just the year you might what to check the PHP documentation for the date function. There are a whole boatload of possible ways to format a date for display.

Your final footer might look something like this:

<p id="footer">
 &copy; <?php echo date("Y"); ?> Blaze New Media.
</p>

Stick with something like that and you’ll never be outdated again.

Jan3

Minor Site Updates and a New Portfolio

Previously on this site I was using some javascript to detect your browser window size. If it was below 1024×768 then the left hand column would collapse and the site would shrink to fit in an 800×600 resolution.

Resolution Stats

I’ve decided to remove this and stick with a 1024 width for a couple of reasons. Firstly, I’ve been checking my logs, and less than 5% of visitors run a resolution smaller than 1024×768. It seems as though most people have decided to dump that aging monitor in the past couple of years. Even global numbers for people running 800×600 are only around 1.2 people out of every 10.

The second reason for sticking to 1024×768 and above is that it seems a lot of people who view this site are running widescreen displays. People with widescreen displays rarely maximize their windows so that they can utilize the extra width to show two windows side by side. So even if their resolution is high, their actual window size may be much smaller, which would give them the low resolution design still.

Sticking with 1024 seems to be the best solution for everyone. It makes me feel better knowing that everyone is seeing the full design as intended and not a simplified design because their browser window is sized too small.

Folio Screen

Finally, I’ve updated my portfolio page with some new work and greater detail. I can also now show my role on each project whether it be design, development or both. Go take a look when you get a chance!

Nov23

Five Wordpress “CMS Enabling” Plugins

By Andy in Development

Wordpress contains almost all the features you need to get it going as a CMS out of the box. However, you’ll find that there are a few things missing that make up the final pieces of the puzzle. Here’s an overview of the five most useful plugins I’ve found, and the part they play in making Wordpress a butt-kicking CMS.

Plugin 1: Filosofo Home-Page Control

The first thing that stumps most people when trying to use Wordpress as a CMS is how to stop blog posts showing up as the home page. If you’re going to use Wordpress to create a typical website, it’s unlikely that you’ll want blog posts as the first thing people see.

This is where Filosofo’sHome-Page Control” plugin comes in handy. This plugin lets you specify any Wordpress page to use as your home page. You can then bump all blogging components into a sub folder such as “my-site.com/blog”. The beauty of this plugin is you can select any of your Wordpress pages to set as your home page, without having to fumble with a “home.php” file in your theme directory. Everything can be handled through the Wordpress admin interface. Perfect.

Plugin 2: Fold Page List

Most simple blogs tend not to have a complex hierarchy of paged content. Full blown websites however, generally do. Most websites rely upon a well thought out navigation system that makes it very clear which section and page the user is currently in.

Wordpress has a built in function called “wp_list_pages” that will generate a nice nested list of all of your pages, which you can then style with some CSS. Hey presto, there’s your navigation. Only trouble is, once you get into pages more than one level deep, you start encountering problems.
Say for instance you use a tabbed navigation system on your website. Even if you are three levels deep, you still want the top level tab to be highlighted. Wordpress’ “wp_list_pages” function will set a CSS class on the list item for the current page you are viewing. Great, that page can be highlighted no problem, but what about all the page’s ancestors right up to the first level tab? No go. They’re left out in the cold with no CSS class in sight. Here’s where the “Fold Page List” plugin comes into play.

By using the fold page plugin’s provided function instead of Wordpress’ “wp_list_pages” you can get around this problem. Even if you are three page levels deep you can be sure that the page’s ancestors will always have a CSS class applied for you to highlight them accordingly. Very handy indeed, and it even uses the same parameters as “wp_list_pages”.

Plugin 3: Search Everything

When you’re using Wordpress for a simple blog, you really only want people to be able to search your blog posts to find the information they want. Your static pages might only consist of a simple about page, or an archives page, and who wants to search those?

Things are a little different when you’re using Wordpress as a CMS. Generally speaking, you’ll probably want pages to be the first thing that Wordpress searches. If you’ve got a site with hundreds of static pages, having a search tool that can scan these pages will become a very handy tool in your site’s belt.

Out of the box, Wordpress will only search your blog posts. No good for a CMS. Thankfully there is the “search everything” plugin from Dan Cameron. Drop in this plugin and you’ll be given a set of admin options that lets you customize what type of content Wordpress will scan for matching results. You have a whole host of options including pages and even posted comments. Combine this plugin with Media Projekt’s search hilite plugin, and you’ll have the search tool you always dreamed of.

Plugin 4: Role Manager

Wordpress comes bundled with five generic user roles, each one allowing greater control of the site through the administration interface. Trouble is, these roles are very “blog-centric” and focus mainly on the ability to create and publish blog posts.

If you’re using Wordpress as a CMS, you’re likely to want the ability to finely tune what a client, or other administrators can and can’t do. For instance, you might want someone to be able to edit and update pages, but not add or delete them. Or, someone could be in charge of keeping external links up to date, so they would only get access to the Wordpress link administration section. The combinations are endless.

Red Alt’s role manager provides this level of functionality in Wordpress. Drop in this plugin and you’ll be creating custom roles in seconds. It comes with a very slick AJAX interface, and let’s you see all permission capabilities at a glance. This plugin takes account management to a new level.

Plugin 5: Site-map Generator

On to number five. No standard website is complete without some sort of site-map. Site-maps allow visitors to get a quick overview of all the pages in your website, as well as giving search engine robots an easy path to indexing all of your content.

The site-map generator plugin from Dagon Design will generate a full site map based on your Wordpress page hierarchy. You’re presented with quite a few options through the admin interface, such as including blog posts in the hierarchy and paginating the site-map in various ways.

The beauty of a generated site-map is you can turn it on and leave it alone, safe in the knowledge that it will reflect any changes to your site’s content. A definite must-have plugin for any size website.

Try this at Home

So, there are the five plugins that I have personally found the most useful. If you are yet to use Wordpress as a CMS, I would whole-heartedly say go for it! I was skeptical at first, as I only saw Wordpress as a blogging tool. Once you start digging deeper, you’ll begin to realize that this is the way Wordpress will be progressing.

I’ve just finished my fourth site using Wordpress as a CMS, and more and more I wish I’d started sooner. Plus, the more you use it, the better you get. My site build time has rapidly decreased just from creating those four sites. Now all that’s left is to convert this site over!

Finally, I’m almost positive that in a year or so, Wordpress will be considered a CMS with a blogging tool, rather than a blogging tool you can use as a CMS. Only time will tell I suppose, but version 2.1 seems to be moving in that direction.