Categories
WordPress

WP Database Error – edit.php

Mark found a bug in the backend but it’s been discovered already and discussed. I applied my own fix below..
Error:

Warning: join(): Bad arguments. in …/wp-admin/edit.php on line 13

Fix:

if( is_array( $editable ) == false )
  $editable = array( "1" );
$editable = join(',', $editable);

On another note, if you can’t post blog entries as anything other than “Draft” or “Private”, then go to Options->Writing and check “May publish articles” for “Newly registered members:”
Now, if only we could set publishing rights to a certain user level, then new users could publish if the admin set their level high enough.

Categories
WordPress

Now Running WordPress

The site is now running on WordPress. I’m going to get some breakfast.
Much Later – Still problems with feeds. I’m updating tonight to the CVS snapshot of WordPress from this morning so breakages are likely, but hang on in there! We’re almost home!
Later Still – Merging of the CVS version of WordPress is complete. I’ll have to track this as time goes by but it looks to have solved the problems we had earlier! 🙂

Categories
WordPress

PictPress – WordPress Gallery Plugin

Oooh, PictPress looks nice but I’ll have to put some restrictions on usage here as convert is such a dog on any system! Hmm, it’ll need some sort of upload facility in the backend too as it’s impossible to create directories in the images folder right now.

Categories
b2 WordPress

WordPress and Smarty

I was drafted in to help on WordPress a long time ago. Unfortunately I haven’t done much work on any OSS projects in a while and it was bothering me.
I did do some useful work though – I found out that the Smarty register_resource construct was buggy when using caching. That rules out using MySQL as a backend to hold templates. (I posted a mail to the Smarty list but nothing came of it. *shrug*)
Finally, after re-installing Linux on my new hard drive last weekend I Smartyised WP! Here’s a WIP snapshot.
What does it do? Well, I wrapped some of the Smarty template API (ie. bloginfo(), etc) in Smarty functions of the same names. I’ve only done enough to get the default template working, as it’s laborious work and I wanted to get something out quickly!
The template is split up into 3 parts: top.tpl, post.tpl and end.tpl. They live in users/main/templates/ and can be edited there with a text editor. The online editor from b2++ will make it’s way there eventually probably.

Before trying this, please be sure to backup your WP installation. The files in the tarball don’t conflict with the files in CVS but I can’t guarantee that this won’t delete all your WP install files if you’re not careful!

Download the WP – Smarty mod. (40Kb)