Batch Category Editing For WordPress [en]

I put together an admin screen for WordPress today which allows changing multiple categories of multiple posts at the same time. Code available, no guarantees.

[fr] J'ai codé une extension à  WordPress qui permet d'éditer les catégories de nombreux billets en un coup. L'écran liste par exemple tous les billets d'une catégorie, accompagnés d'un certain nombre de selects. On effectue les modifications que l'on désire et on soumet le formulaire entier en une fois.

Update 13.07: A more recent version is out!

I had planned to give you a write-up of the beginning of my WordPress experience today. Unfortunately, I decided to clean up my categories somewhat before I did that, and I managed to badly mess things up.

The result is that I spent most of my day writing a Batch Categories admin screen to help me clean things up. It was something I had planned to do, and I suppose it will also be useful to other people.

If you want to play around: copy the code above into a file named batch-categories.php in your wp-admin directory. I highly recommend that you back up your wp_post2cat table before you get going. This script works for me, but hasn’t been tested much, and comes with no guarantees. It is not optimised either, so depending on how many posts and categories you list, the screen can very well take over half a minute to load!

There are still a few functionalities I want to add, in particular: assigning all listed posts to a category in one go (or removing them).

If you want pretty integration with the other screens of the Edit menu, you’ll have to tweak the navigation bar in edit.php, edit-comments.php, and moderation.php.

Update 24.06.04: I’ve uploaded a screenshot of the admin screen so you can see what it could look like.

Update II 24.06.04: Instead of hacking the Edit menu bars, you can also access the Batch Categories screen from the Plugins page: create a file called batch-access.php (e.g.) in your plugins directory. (Beware not to leave any whitespace after the ?>, though, or you’ll get errors. Promised, zips and more detailed documentation will follow.

Update 04.07.04: I tried using the script this morning, and it seems nastily broken (removed all categories for some posts). Use with caution, and get back to me if ever you hack it or modify it, I’m interested! I’ll look into this once I get back home from Vienna.

Update 12.07.04: The script now works as it should! Thanks to Ben and MooKitty for helping me nail the big nasty bug which was driving me bonkers! Two improvements I’m working on right now: making the code more efficient by using the category cache, and adding a “add all listed posts to category X” option.

BlogTalk 2.0, Anyone? [en]

I’ll be in Vienna from 1st-6th of July for BlogTalk 2.0, and I am looking for people to meet before the conference and eventually someone to share a hotel room with. Let me know if you’ll be there!

I’ll be going to Vienna early July for BlogTalk 2.0, a series of conferences on weblogs. I’m planning to go there a few days before, so I’ll be in Vienna from July 1st or 2nd to July 6th evening. Registration for the conference is open until June 21st if you want the cheaper, before-the-conference prices. Otherwise you can always register at the conference.

Is anybody else (apart from Suw) going to be in Vienna before the conference? I could also be interested in sharing a (cheapish) hotel room with somebody. Please leave a message in the comments or update BlogTalkVienna on Joiwiki if you’re going to be there!

Chris de Burgh Concert in Lausanne [en]

A pretty long review of the fantastic show Chris de Burgh gave last night in Lausanne.

Warning: long, rambling, and clumsily written review ahead. I obviously still have progress to make in review writing! Thanks for bearing with me.

Chris de Burgh gave us a delightful solo show in Lausanne last night, armed with only his guitar, his piano and his songs (ok, with a very small dose of recorded choirs and stuff for a couple of songs).

The show started with The Road to Freedom, title song from his latest album, and continued for two and a half hours, including songs from a variety of albums. I was happy to hear It’s Such a Long Way Home, from the album Crusader, pretty early on in the show. Crusader is one of the first Chris de Burgh albums I actually owned, way back in the time of vinyl, and it’s an album I appreciate a lot.

Chris de Burgh introduced many of the songs he sang by giving the audience some background on them, often half in French and half in English. (We also got updates on the score for the ongoing Russia-Portual football match, which I found pretty cool — even if I don’t care about football at all.) Last Night (a personal favorite), a song about the damages of war, for the young soldiers who come back, and those who remain when they don’t, was an occasion to comment on actuality: Maybe Mr. Bush will think about this next time he wants to go to war. Right on the theme of war and its ills, Chris de Burgh later sang Borderline followed by Say Goodbye to It All — something I’d really been waiting for, as the second was written as a sequel to the first one.

Speaking of sequels, Lady in Red (a song you probably know even if you’ve never heard about Chris de Burgh, and that you might also understandably be sick of hearing too much on the radio) has a sequel in the latest album: Five Past Dreams. Before singing it, he told us about this strange fact: women spend a lot of time making themselves beautiful before going out, but men seem incapable of remembering what they were wearing. Lady in Red is about this man who is a party, and is looking at this beautiful woman in the crowd… and suddenly realises that it’s the woman he came with…

After poking a bit of fun at Britney and playback singers, Chris de Burgh put on a headset mike and actually got off stage with his guitar to walk through the public and shake hands while he sang a medley. Pretty impressive, if you ask me!

One great present of this evening for me was hearing the song Sailor again. Sailor is a song from the album Eastern Wind, which, along with The Getaway and Man on the Line, made me discover Chris de Burgh nearly twenty years ago. I remember the time when I listened to this song over and over again — it was one of those spine-prickling songs for me. And when Chris de Burgh started singing it tonight, I realised that I had totally forgotten it existed. I was incapable of naming it until he reached the chorus — something which hardly ever happens to me, as I have a pretty spooky memory for names.

I won’t go through all the songs which were sung. Imagine how many songs can be sung in two and a half hours, even with a fair amount of chatting en between! However, I’d like to mention one that I found particularly moving: Songbird, written after Chris de Burgh heard Eva Cassidy singing on the radio. Unknown in her lifetime, she died of cancer at the age of thirty-three, and it is said she had one of the most wonderful singing voices ever heard.

To sum it up, this show was a real treat. Chris de Burgh was the first artist I ever got to see live, almost twenty years ago, and I have trouble understanding how I let all those years pass without seeing him again. I’ll definitely be on the lookout for his next tour.

My friend Rachel, who accompanied me, knew only two Chris de Burgh songs (the inevitable Lady in Red and High on Emotion, but of course she had no idea who sang those songs), but she had a really great time too. I think that like me, she was moved by how very human and close to the public Chris de Burgh is. It seems to me (and the notes you can read in the Ask Chris section on his official website seems to confirm this) that he really has a sincere belief in his work — thirty years after his first album.

As I was saying to Steph a few hours ago: I like artists that look like human beings. If you have a chance to see Chris de Burgh live, do so — particularly if all you know of him is Lady in Red!

For the curious, here is a list of the songs I didn’t mention here but that I remember from the show:

  • Don’t Pay the Ferryman
  • Living On The Island
  • Sight and Touch
  • Sailing Away
  • St Peter’s Gate
  • Lebanese Night
  • High on Emotion
  • Natasha Dance
  • medley: Carry Me (?), Save Me, Tender Hands, Crying and Laughing…
  • Snows of New York
  • Where Peaceful Waters Flow
  • Nothing Ever Happens Round Here
  • Rain in Paris (the only song I did not know)
  • new album: The Words I Love You, Five Past Dreams, Snow is Falling, Read My Name, The Journey, Here For You (?)

Update 24.06.04: I’ve been thinking quite a lot these last days about why I like this singer so much, and why I’ve stuck with him for the last 20 years. Here is something he says about feeling what he sings that I really like:

When I sing, I like to convey a total and absolute honest belief in what I am singing. It’s very important for me to convey an emotion, and unless you feel that emotion, you can’t convey it. It’s my belief. So when I sing, I wear the song like a coat, I try to convey everything that I put into it initially. All the ideas, all the feelings, all the emotions.

Chris de Burgh

If you’ve listened to his songs a bit, I think you’ll agree with me that this is a man who seems to know what it is to love.

Body Shop Tobacco Flower Scent [en]

I finally managed to find some Tobacco Flower products from The Body Shop!

I bumped into my friend Mercedes yesterday. Believe it or not, she managed to bring back a bagful of Tobacco Flower stuff from a Body Shop depot in York. She had the bag with her. She made my day.

A bit over a year ago, my Grandma gave me a set of Tobacco Flower products from The Body Shop. She had received them from somebody and didn’t really like the scent. Aleika had mentioned to me, some time before that, that she really liked the smell. I quickly took to it, and before long Tobacco Flower was my “favorite perfume” of the moment.

Before long too, the little 10ml bottle was almost empty, and I learnt that Body Shop had discontinued Tobacco Flower. What a disappointment! By chance, somebody left a bottle of Tobacco Flower shower gel in the changing room at judo (people often leave shower gel there, you just use what you find). I started asking around to find out who had brought it, and where she had found it from. That is when Mercedes offered to check Body Shops in England for me next time she went.

I am how the happy owner of 40ml of perfume, two big shower gel bottles, and one big bottle of mody moisturiser. Yay!

UK Trip Report [en]

Write-up of my 5-day trip to the UK. Movies with Aleika, Bombay Dreams in London, an IRC meetup.

The nice thing about having a laptop is that you can fire it up on the airplane and type in peace, without being distracted by IRC, instant messaging, e-mail and stats checking, or simple bloghopping. With iTunes in the background playing Bombay Dreams, my only concern is that the plane will start descending towards Geneva shortly.

My trip to the UK was short, and last-minute. I heard some people from #joiito were going to meet up in London on Sunday, I checked my easyjet flights, called Aleika–

“Ladies and Gentlemen, we will be landing shortly in Geneva. Please return to your seats, make sure your seatbelt is fastened and your seat is in the upright position, and switch off any electronic equipment.”

There goes the laptop, and I now find myself with a post which will be hard to date. Anyway. (Warning: this is a “cheese sandwich” post to some extent, so if you’re bored already, don’t bother reading it.)

Where was I? Yes, last-minute trip. I found a friend to house-and-cat-sit for me, which was nice, and spent the first couple of days at Aleika’s. We did our usual “girls at the movies” thing: get dressed up a bit, leave home late, grab some food which doesn’t come fast enough (well, it took long enough to arrive that I drank my pint of cider almost entirely before the meal, and can now testify that it’s all it takes to make my head spin quite a lot), jump into a cab and run to the theatre (slightly inebriated), only to find that the timings on the internet were incorrect, and we have another half-hour to wait before gleefully drooling all over Hugh Jackman in Van Helsing (OK, I got a bit carried away here, but you get the picture).

I got to spend nearly a whole day alone with Akirno, which was really nice. I didn’t get to see him much on my last visits. He’s grown so much! And he talks so much! (Yes, I know, that’s what I say each time I come back from Birmingham.) He’s a real sweetie. I love him very much.

Unfortunately, I caught a cold (over the top of my first one!) waiting for the bus after Van Helsing, so all my pre-London shopping was done in a rather feverish state. Looking at the bright side of things, it means I didn’t spend as much as I might have, which is a good thing, as my suitcase was already quite full enough (and my bank account empty enough, but that’s another story).

Driving to London went fine. We found a parking space right next to the Apollo Victoria Theatre. (Remember: Sunday matinée shows are a good idea if you’re going to London to see a musical or a play.) Bombay Dreams was really fun, specially as I know most of the songs Rahman re-used for the musical.

Still dressed up (I chose the pink dress), I headed for the #joiito meet-up. Despite this nagging feeling of being somewhat overdressed, and my cold, I had a very nice evening.

As always, though, I had to cope with the frustration of group meet-ups: not enough time to talk with everybody, not enough time to get into interesting conversations with those I talk to. Or maybe I’m just more of a one-to-one person? Anyway, standing invitation for any of you who would want to visit the beautiful town of Lausanne or practice French in the area — just drop me a line, or better (since e-mail is soon to be a dead form of communication, thanks to spam), catch me on IRC.

So, who was there? Well, as I’m nearing the ages of senility, I’m probably forgetting a lot of people, so please bear with me if you’re not mentioned, and let me know if it bothers you too much.

First of all, imajes, my kind host, who was so busy taking me through his iTunes collection on the train back that he missed his home stop. (Can it get worse than that?) Suw prevented me from being the only woman present (I can’t thank you enough for that). Joi was so utterly bored by my presence next to him that he left early to go back to his hotel and sleep — imagine that! (Actually, it seems jetlag also had something to do with it…)

I chatted quite a bit on the way there with imsickofmaps, and on the way back with snowchyld. Hugh managed to mess up my first blogcard somewhat (or whatever those things are called), so I am now the lucky owner of two of them. Gerard aka insert-coin took a nice bunch of photographs and has already put them online. I stole Suw’s camera to take a few photographs, but she’s not home yet, and those I took with my phone are stuck in there until I lay my hands on a Windows PC (thanks, Microsoft).

Apart from bumping my head on a couple of low doorways and leaving my coat there, I brought two things back (not literally) from james’ flat: VoodooPad, which I have not adopted as my official scrap-book application, and a book which made me discover a blog (how often has that happened to you?): Never Threaten to Eat Your Co-Workers: Best of Blogs, a collection of great weblog posts. I read a few pages, and it looked really neat. It’s on my wishlist now.

I think this post is long enough, for a short trip!

Birmingham and London [en]

Going to the UK for a few days.

I’m off to the UK for a few days, to see Aleika and Akirno, Bombay Dreams, and go to a #joiito meetup.