Bluetrait Weblog

Plugins for Bluetrait 2 Alpha 2

Posted by Michael Dale on Fri, 04 Jan 2008 7:37 PM

Time for some plugin action!

Three plugins that should be useful:

  1. FCKeditor WYSIWYG editor. This is like the one found in Bluetrait 1. It is not longer included within Bluetrait 2 by default. Download
  2. Search. This Plugin adds post searching to your website. Please note that this plugin requires MySQL. Download
  3. Gravatar. This plugin adds gravatar support to your website. Download

Bluetrait 2 Alpha 2

Posted by Michael Dale on Fri, 04 Jan 2008 6:57 PM

Bluetrait 2 Alpha 2 is now out and can be downloaded from here.

The following are the major changes since Alpha 1:

  • File upload support
  • Group permission editing
  • Remember guest commenting details
  • Documentation (The big document here is the Plugin Guide which should be helpful for anyone wanting to write plugins for Bluetrait)
  • Improvements to the editing page (including deleting posts)
  • Full Installer
  • Basic content support has been added

So to install:

  • Download
  • Unzip
  • Modify .htaccess if required (i.e not installing in /bluetrait-2.0/)
  • Visit bt-install/ in your web browser to install
  • Once installed delete the bt-install/ folder

You no longer need to create a config file as the installer will take care of that for you.

If you are upgrading from Alpha 1 there are some manual steps that SQLite users will need to undertake. This information can be found in the file: upgrade.txt

Bluetrait 2 Alpha 1

Posted by Michael Dale on Tue, 04 Dec 2007 4:11 PM

One month after code example 2 it is time to release Bluetrait 2 Alpha 1.

The following have changed since Code Example 2:

  • Edit posts
  • Task based permissions
  • Rework of theme support
  • More template tags (comment count etc)
  • Basic comment moderation
  • Your comments section
  • Upgradable
  • Improvements to event viewer

This is the first version of Bluetrait 2 that will be upgradable.

Please note that this isn't a fully working version (its pre-beta), and many things aren't finished/don't work. Please don't use this on a production site.

So to install:

  1. Download
  2. Unzip
  3. copy bt-config-sample.php to bt-config.php and setup your database details
  4. Check .htaccess (it is setup for /bluetrait-2.0/)
  5. visit bt-install/ in your web browser to install
  6. once installed delete the bt-install/ folder
  7. read readme.txt if you get stuck

Bluetrait 2 Code Example 2

Posted by Michael Dale on Sun, 04 Nov 2007 9:46 PM

I've decided to release another code example.

Heaps has been done since the last code example. Most things can be found here, other things include work on the admin panel, spam support and a migration script. In fact enough has been done that I am running it on my main website.

This version now installs on both MySQL and SQlite (yay!).

Please note that this isn't a fully working version (its pre-beta), and many things aren't finished/don't work. Please don't use this on a production site. There won't be an upgrade script or support for this version.

So to install:

  1. Download
  2. Unzip
  3. copy bt-config-sample.php to bt-config.php and setup your database details
  4. Check .htaccess (it is setup for /bluetrait-2.0/)
  5. visit bt-install/ in your web browser to install
  6. read readme.txt if you get stuck

Akismet weirdness

Posted by Michael Dale on Sun, 04 Nov 2007 6:53 PM

There have been some Akismet network issues in the last few weeks.

After chatting to Barry of Automattic the issue was tracked down to a HTTP keep-alive issue. Basically it was taking about 30 seconds for each request to the Akismet server.

Although it seems these issues have been fixed the following workaround can be used in Bluetrait 1 without any issues.

  1. Open include/akismet.class.php
  2. Go to line 128. It should read: $http_request  = "POST " . $path . " HTTP/1.1\r\n";
  3. Change to: $http_request  = "POST " . $path . " HTTP/1.0\r\n";
  4. Save and upload

Bluetrait 2 will be using HTTP/1.0 for Akismet.

 

Bluetrait 2: the settings file

Posted by Michael Dale on Sun, 04 Nov 2007 6:46 PM

The function of bt-settings.php will change with the introduction of Bluetrait 2.

The purpose of this file will be to allow users to hard set and modify certain values in Bluetrait without the need to modify the database. There are two main types of data that can be modified.

  1. Anything in bt-default-settings.php can be changed
  2. Any configuration values stored in the database can be changed.

The default settings file contains values such as debugging options, what html can be used in posts/comments/events and what email address is used to notify the admin of the site if there is a database error.

The configuration stored in the database contains values such as what plugins are loaded, domain name, rss settings etc; the majority of the settings.

The idea behind the settings file is that users can set these values and then not worry about them changing. So Bluetrait 2 doesn't come with bt-settings.php but with a sample file that can be used, this means the file isn't overwritten during an upgrade.

The settings file can also be useful for development as you can enable debugging and change the domain name, when you are ready to deploy the site simply delete the settings file and the default settings are back.

Getting ready for Bluetrait 2

Posted by Michael Dale on Tue, 23 Oct 2007 2:07 PM

Bluetrait 2 has been completely rewritten, the code is very different. There are a number of requirements that have changed.

Basic Requirements:

  • PHP 5.2 will be required (up from php 4.3.3)
  • MySQL 4.1+ or SQLite will be supported. SQLite is a database system that is now included within PHP 5. If you have PHP 5.2 installed then SQLite should be installed.

Migration notes:

Bluetrait 2 cannot upgrade a Bluetrait 1 install, but your data can be migrated over. This means that plugins and custom styles will not work on Bluetrait 2. All your Bluetrait 1 data can be moved to the new system. This includes posts, comments, events, users etc.

Bluetrait 2 will only be able to migrate from 1.2.5 or higher. Take the time now to upgrade to Bluetrait 1.2.5

Bluetrait 2 will not support migrating from MySQL to SQLite. So if you're running Bluetrait 1 now, you will need to keep using MySQL. SQLite is only supported for new installs.

This post will be updated closer to the release of Bluetrait 2 with more information.

Bluetrait 2 note

Posted by Michael Dale on Tue, 23 Oct 2007 1:54 PM

Just in case anyone was thinking of using Bluetrait 2 live, it isn't ready yet. There are still major changes happening in both the code and the database, because of this it is currently not possible to upgrade between Bluetrait 2 development versions.

Once I feel that the code base is stable a beta version will be released that should be complete enough to have upgrades (hopefully early next year).

I was planning on releasing a code example 2 but am worried that poeple might try to use it live.

 

Bluetrait 2 Code Example

Posted by Michael Dale on Fri, 27 Jul 2007 11:31 PM

Bluetrait 2 is going to be the next major release of Bluetrait, I've talked a bit about it here and here.

 I've decided to post a "Code Example" of Bluetrait 2. This is a pre-alpha build of Bluetrait that shows:

  • Categories Support
  • Plugin Support
  • Theme Support
  • General Structure of Bluetrait 2

Please note that this isn't a fully working copy (i.e. you cannot add posts or comments etc), the installer sets up some basic posts with categories; it is a code example.

This code example requires the following:

  • PHP 5.2+ (with MySQL PDO support)
  • MySQL 4.1+
  • Mod_rewrite (Apache Module)

The installer is set to the location: http://localhost/bluetrait-2.0/ (you can change this before installing in bt-install/setup-db.php at line 265 and 269).

The database details can be changed in bt-config.php.

Again this is just a code example.

Download.

EDIT: You can also watch the development build over here.

Bluetrait 1.2.5

Posted by Michael Dale on Sat, 14 Jul 2007 2:10 PM

Bluetrait 1.2.5 is now available for download.

1.2.5 fixes a few bugs that were found in 1.2.3 and 1.2.4; FCKeditor has also been upgraded to version 2.4.3