Habari PHP weblog software

Having a lot of work stacked up and nothing fun to do, I decided to ignore the work and give Habari a test installation on a localhost, just play around with it for an hour or two and see what the deal was with the core code.

To be scrupulously fair, these vague observations are the product of an hour or so, and of course, not authoritative in that regard. Against this, I have no great love for the present direction of WordPress… 2.5 seems laudable in most ideas, but not quite the finished version at present - there is still the spectre of bloat here, and I don’t think viable competition would do WordPress any harm at all.
read more »

BlogChemistry

Jesse Garner (known as Jennifer to his friends) is setting out on the long march towards PR6 with BlogChemistry, promising the standard formula of WordPress themes and general PHP programming know-how…

He would always be welcoming of your support and am happy to offer mine to a mate… and we did let him borrow the “true sliding-doors” trick for the horizontal tabs.

WordPress PHP - Post duplicates in 2 loops

A quick and simple way to knock out duplicates if you have 2 Loops on the page

The first loop will look something like this:-
read more »

WordPress child page menu

Here’s a nice and neat code snippet - making use of the template and conditional tags to output unordered list items for all child pages under the current page - with links - and just the thing to stick in a theme’s sidebar.

Best used in conjunction with is_page, of course, so…

<?php
if(is_page()){

$parent = ($post->post_parent == 0)? $post->ID : $post->post_parent;

wp_list_pages(’child_of=’.$parent.’&title_li=’);

}

?>

Wordpress Page Menu code

As requested, the code for page menu tabs - leaving open the possibility of using the ’sliding doors’ technique - put it in a theme’s functions.php, and the usage, if not too obvious, would be something like…

<ul id=”tabmenu”>

<?php echo buildMenu(); ?>

</ul>

read more »

ACMS Theme for WordPress

ACMS theme has been updated to v1.4
screenshot.pngACMS (not a blog) is a theme that turns WordPress into a Content Management System.

Blog posts become news items
Blog pages become CMS pages
The front page can be configured with static HTML content.

Use it for anything you might use a CMS for - sell a product, make a portal, etc…

It’s a fixed-width, 3 column theme, compatible with WP 2.2. and has been tested on Firefox 1.5, 2.0, Internet Explorer 6 and Opera 9.
This theme is not sponsored, and is released under the terms of GPL v2

read more »

WordPress 2.2.1

As will probably be noticed, WordPress 2.2.1 is out - again a required update.
Of some importance is the  phpmailer security fix, which is discussed in more detail here and considered to affect “PHPMailer 1.73, when configured to use sendmail”.

PHPMailer has certainly been a great app, but maybe starting to show its age a little in terms of continuous development…

ACMS WordPress - excerpts

ACMS makes use of excerpting with optional override of the –more– pseudo-tag - the body of the code comes courtesy of the-excerpt-reloaded with modifications - for which, many thanks.

All languages struggle to keep valid XHTML as soon as strings are being chopped up. PHP is pretty good at it - it should be, given its design for html integration - but it’s (probably) impossible to catch every error, there’s always some situation that sneaks through…

WordPress Widget API

For theme-building purposes, I was trying, idly, to produce a string of the headings of all active widgets - and it’s not very easy at all. Perhaps, some very involved SELECT would have done the job, but it would be a horrible hack.

Must confess it, I’m not a great fan of how the widget data are stored - each box existing as a separate option and no simple relationship anywhere to tie them together.

read more »

Banners in some posts on the index page

You want to put an advert (or anything else) after some posts on the front page, but not others.

There are some fancy programming ways of doing this involving template tags, but this way will do just fine and couldn’t be simpler.

First, find the Loop in your index.php

<?php if (have_posts()) : ?>

<?php while (have_posts()) : the_post(); ?>

… the post …

<?php endwhile; ?>

read more »