fasio

Today I’ve written my first Wordpress plugin! It was surprisingly easy. I wrote a plugin that lets me add pictures from the gallery to my blog posts. I used to generate the HTML code for the thumbnails with a script and copy-paste that code into my blog post which is far from optimal. Now I let the same script generate a string like this: [\mrdeus_plogger:60,59,15,14] (without the backslash) and the plugin transforms that into the images below. The BoA image to the right is also generated by the plugin.

  • Cutie Nail 01
  • Cutie Nail 02
  • Cutie Nail 03
  • Cutie Nail 04

It’s generated on the fly, so any changes I make in the gallery are shown directly in the blog. It will also re-generate any missing thumbnails. Now I can take this off my to-do list, but while writing this plugin I found a number of bottle necks in the Plogger code the gallery is based on, so I’ll have to add a couple of new points to the list instead ;)