Upgrading to Laconi.ca 0.4.3

The software for Laconi.ca continues to evolve quickly. I’ve proposed assorted updates, such as those documented here, but they seem to have been ignored. My tarballs and updates are focused on people who want to quickly and easily set up and customize their own installations of Laconi.ca, though this seems to be a low priority for some of the others.

First, take a copy of your current Laconi.ca directory. Then, download this tarball and unpack it.

If this is a first time install, follow the instructions here for setting up your database and configuring your config.php file, and you should be fine.

If this is an upgrade, copy any customized theme you have, any avatars that you have in your avatar directory, and your config.php If you had to rename or copy the stoica.ini file in the classes directory to get it to work with your database, you will need to do this again.

Next, you need to update the database. On the Laconi.ca developers mailing list, Mike Cochrane listed several SQL changes that need to be applied to upgrade from 0.4.1 to 0.4.3 I have taken them and created an SQL file, upgrade_4_1_to_4_3.sql which is in the root directory. When you do your upgrade, you need to execute these SQL commands.

There are also two scripts, which you should run, fixup_notices_rendered.php and
fixup_replies.php. I’ve had mixed results with them, but it seems like my system is now upgraded to 0.4.3

The other upgrade that I’ve added this time, is following on with my enhanced theming. I’ve added a 'header.tpl.php' file to the default directory, with instructions on how to add header information, such as might be used for Google Analytics.

This required adding a few lines to util.php.

Near the top, I added,

require_once(INSTALLDIR.'/lib/theme.php');
require_once( theme_file('header.tpl.php'));

And then, around line 199, right before
common_element_end('head');
I added
theme_header();

So, that is about it for tonight. I may be online a little this evening, or tomorrow to help people, but then, I’m going on vacation for a week, and won’t have much for upgrades until later.