LiveSearch – Search Results As You Type

Now, this is a bit of a downer. LiveSearch looks like an excellent way to search because, as you type search results pop up magically!
Unfortunately it’s licensed under the Apache 2.0 License which is incompatible with the GPL, the license uner which WordPress is distributed. It would be legal to use it here without distributing those modifications, but that’s of no use to anyone else and I don’t want to maintain yet another source tree! Time to talk to the author…
I just noticed, CollyLogic has a “Live Preview” of your comment as you type it. That’s nice!
Here’s what it looks like in action! (via the support forum.)

WPMU 0.1.2

Here’s another minor release, but with a few changes:

  • Installer is slightly friendlier.
  • I added code to detect incorrect permissions on directories and files left over after the install – instructions included on fixing!
  • Themes support revamped – 10 themes are packaged in a seperate package.
  • Updates to the WordPress core. Some to fix the XSS holes found a few days ago.
  • Static Page support. Create a static page via Options->Pages and call it by adding /pages/name where “name” is the name of your page.
  • Other stuff, minor bugs..

Download it from here: http://mu.wordpress.org/download/
From a question in the comments on adding new blogs, here’s how to do it:

1. Say your new blog will be called “test”, create a directory in wp-inst/wp-blogs/ called test. Fill that directory with the follow directories: templates, template_c, smartycache. All should be writeable by the webserver. Also copy the wp-config.php from ../main/ and customize to your needs (ie. the database table prefix should be changed to “wp_test_”)
2. Create a symlink to that “test” directory in the “blogs” directory that’s in the same directory as wp-inst. (I need to remove this requirement real soon!)
3. Open up http://yourhost/path/test/wp-admin/install.php to configure and setup the database.
4. You’ll probably have to compare the “options” tables of the new blog and your “main” blog as some entries there will have to be updated.

WPMU Static Pages

Ryan Boren has created an excellent “Pages” interface for WP 1.3 but up until now it was useless for WPMU.
This afternoon I built on top of that work by adding support for displaying those pages.
Simply create a page, give it a name and then call your blog, appending “/pages/name” to the end of the URL, where “name” is the title of the page. Here’s a simple test page to test out.

Expect a new release on Friday sometime with this lot included!

WordPress Multiuser 0.1

The very first release of WPMU, WordPress Multi User, is out now and is available for download!
It’s the software the runs this site. It’s a version of WordPress that uses Smarty for templating support and multiple blogs can be runs from the same install!
This version does not have any kind of registration page to create new blogs, but if you pay attention it should be relatively easy to create new blogs.
Play with it, break it, tell me about it!

XSS Security Holes in WordPress Blogging Tool

This Netcraft security alert should be read by anyone who runs a WordPress blog. When you access the admin section of your blog you may be redirected elsewhere.

“We are disappointed that we were not given the opportunity to release fixes for the problems before the information was made public, as is the usual courtesy in the security community,” said a post on the WordPress forum. “However, that’s water under the bridge at this point. Expect a WordPress 1.2.1 release soon, which will address these issues.”

WPMU Updates

Almost back to normal after the mad weekend, I said almost! 😉
On a local install of WPMU, I managed to re-direct the root of a WP install to the “main” weblog, this means that in future you’ll be able to go to http://blogs.linux.ie/ and see some content again! I need to get those changes rolled into the code running this site however so a release doesn’t look likely until the weekend or later. There’s such an awful amount of work to do before the code should be seen in public – cleaned up installation, some documentation, even download links.
Apart from the purely technical aspect, there’s a lot of emotion tied up in it too. “Did I forget anything? Is the documentation up to date? Did I increment the version counter? I’m tired, let’s just get the damn thing out the door..”
Later.. I started on a simple gallery that feeds off the meta data entered as “photoblog” custom fields. Thumbnails and other features to come later.

Click Counter Plugin For WordPress

Ooh, nice! A click counter for WordPress! It comes in two parts – a redirect script and a WordPress plugin. I wasn’t sure how well it’d work but it was simple to install – after modifying the sql to record and recognise each blog ID all I had to do was activate the plugin in the backend. If you want to activate it on your WPMU blog here just go into “Plugins” and click the “Activate” link! I’ll get the extra template tags into Smarty land in a minute and update this post shortly.
Here’s the extra template tags that come with this plugin:
wp_ozh_click_topclicks and wp_ozh_click_comment_author_link – there’s documentation on the plugin page above, but working with Smarty functions and parameter passing is quite easy if you’re used to HTML. Here’s what I did:

Index.html
<br /><span>Most Popular Clicks</span><br /><ul>
{wp_ozh_click_topclicks limit=10}
</ul>
<br>

comments.html
<p><cite>{comment_type} {_e text="by"} {wp_ozh_click_comment_author_link} — {comment_date} @ <a href="#comment-{comment_ID}">{comment_time}</a></cite> {edit_comment_link link='Edit This' before=' |'}</p>