In an attempt to get Structured Blogging running I’ve been mucking about a bit tonight with WordPress. It seems as though the Structured Blogging plugin expects the user_level attribute of the user to be set. It uses this to determine if the user can post a draft. In wordpress 2.1 this is stored as a meta attribute in the wp_usermeta table. However, the ‘admin’ user does not get this value set. To determine what this value should be I created a test user with the role of ‘Administrator.’ The value was ’10′. I then issued the following commands in a mysql session:
use wordpress;
insert into wp_usermeta(user_id, meta_key, meta_value) values(1, "user_level", "10");
After all of this jazz I can now use the Structured Blogging plugin. More updates will follow.
I’ll probably patch my Structured Blogging plugin to use the new APIs of WP.