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!
Tag Archives: WordPress
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.”
SpellBound – Moz Firefox spell checker
I’m putting SpellBound into the WordPress category – I’ll use it when blogging!
Lots of WordPress Hacks
Some of these WordPress Hacks may very well make it into the WPMU tarball next week! Lots of good stuff!
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>
Custom Fields in WPMU
You can now use custom fields to execute functions in WPMU!
Currently there’s only one function, that’s “photoblog” but more will come.
When you’re writing a post, click the “advanced editing” button and scroll down. You’ll see text boxes where you can enter custom field keys and values. Now, edit your blog post.html in the template editor and add {custom_fields} where you’d like the output to appear.
For my last post I used “photoblog” as the key, and “20040922” as the value. The photo will appear tomorrow and I avoid all the nasty Javascript I had before!
Popular Posts Update
The popular posts plugin was broken, but it’s fixed now. Update your template so it looks like this if you want to use it:
{popularposts}
{if $pposts != ''}
<br />Most Popular Posts<br /><br />
{foreach from=$pposts key=key item=details}
<nobr><a href="{$details.url}" title='{$details.title}'>{$details.title|truncate:30:"..."}</a>: {$key}</nobr><br />
{/foreach}
{/if}
Summary Feeds – why no links?
If you’ve wondered why your RSS feed here doesn’t have any feeds, that’s because WordPress by default displays only summaries.
To show the full text and mark-up of your posts, go into Options->Reading and click “full text” for the option, “For each article, show:”
God damn bookmarklet, kills my browser (Mozilla Firefox 1.0 preview) more often than not. *grrr*
Oh woh is me! Comment Spam Already!
It didn’t take long for the comment spammers to figure out we’re running WordPress here. I got a dozen requests to moderate comments this morning. Mark did too, but he had turned off the notification in WP so there may be a bug there somewhere. Expect test comments to appear and disappear on this post over the next hour or so!
Later… Fixed it. There’s no check for the “moderation_notify” flag . Here’s how to patch your own WordPress system:
Edit wp-includes/functions.php and add the following lines to the function
wp_notify_moderator():
if( get_settings( "moderation_notify" ) == 0 )
return true;
