Archive for the ‘plugins’ Category

Released Wordpress plugin bbRedirector

Tuesday, November 24th, 2009

I’ve just released another Wordpress plugin. This one is called bbRedirector:

bbRedirector makes it easy to redirect a page to another location using absolute urls from within Wordpress. No mod_rewrite nor .htaccess is needed. You just create a page, add a specific customfield and choose the redirect template included with this plugin. It even allows you to set the required http status code (302 or 301). You can also set a default sitewide redirection or setup your own custom redirection.

The included templates should give you an easy start using this plugin.

Download the plugin from http://wordpress.org/extend/plugins/bbredirector/

Wordpress Mu pages overriden by new blogs

Friday, November 6th, 2009

When using WordPress Mu (WP MU) 2.8.4 or 2.8.5.2 (not tested on older versions) with sub directories it seems one can override the main blog’s pages by creating a blog with the exactly the same name without any warning. Causing visitors to be redirected to the newly created blog instead of the page with the same name. I presume most people would not expect this and in fact it can become quite nasty. So I filled a bug report.

Assume this situation:
You have a WPMU site set using sub directories available at http://mywebsite.dev/. You’re using the primary blog as your website with mostly pages. One of those pages is called “Donation”. You allow other people to register and create a blog. Someone creates a blog called “Donation” and without warning the previous existing page “Donation” has been redirected to the blog “Donation”.

Obliviously, this should not happen.

As I understood from Donncha (lead-developer of WP MU), in earlier version there was a check to prevent this from happening. I haven’t tested older versions so I cannot confirm nor deny this. However in the current and previous stable version of Wordpress Mu this unexpected behavior does happen. There are some solutions in order to prevent this from happening:

  • Use sub-domains instead of sub-directories. Since each blog will become a sub-domain instead of a sub-directory it will not clash with any pages created in the
    main blog.
  • Prevent any blogs from being created with the same slug (path) as a page in the primary blog. This fixes the issue with WP MU and sub-directories

I created a plugin called “bbMuAutoBanPage” for the latter, which uses the “Banned Names” option in the site admin. Basically it keeps track of the pages created in the primary blog and adds the slugs to the illegal_names options which is used for the “Banned Names” functionality. This is a temporarily fix until this issue is properly fixed in the core WP MU code. Until then you can use my plugin, which I highly recommend if you allow people to register their own blog on your WP MU install. DOWNLOAD IT HERE

In my humble opinion this would be a great moment to have a closer look at the way Wordpress Mu deals with routing, since I would like to see it allow for more fine-grained control.

Add-ons for Mozilla Firefox and Thunderbird

Sunday, August 30th, 2009

mozilla-dragon-from-archive-mozilla-org

(source: http://www-archive.mozilla.org/party/2000/mozilla2.gif)

I’m an avid user of Mozilla Firefox for browsing the web and Mozilla Thunderbird for reading up email when I’m not in a commandline Mutt kinda mood. Out of the box these applications are already great to use, but by installing some add-ons it gets even better. So I made a list of all the add-ons I regularly use.

Frankly, without these add-ons I would not be able to do my work as a web developer nor would I enjoy the web as much as I do. In fact, without the Thunderbird add-ons I would not be able to keep track of appointments nor would I be able to archive emails in a sane and time saving manner. In other words these add-ons are lifesavers and perhaps you might find them just as useful as I find them. So have a look at:

I plan on updating these collections with future add-ons when I come across new add-ons.

If you know of great add-ons which should be part of the above mentioned collections feel free to leave me a comment below. I won’t promise to make them part of it, but if I find them useful to me I will add them. Otherwise you can easily create your own collections at Mozilla and ignore me :)

updated profile_picture plugin

Tuesday, August 5th, 2008

I just updated my version with the profile_picture plugin with a patch supplied by Johannes Harms. I haven’t had the time to test it thoroughly, so use it on your own risk. More info on this page

If you’re interested, you can check the patch here below:
(more…)

Fixing Wordpress and MySQL Charset Problem with bbwp2utf8

Tuesday, August 5th, 2008

I just released version 1.0 of bbwp2utf8 plugin on the wordpress plugin directory.

If you have issues with your blog with strange characters appearing due to a MySQL database Character Set not being UTF8 in combination with Wordpress, then this might be the solution for you:

bbwp2utf8 will attempt to convert a wordpress or wordpress mu database with content in whatever character set to utf8. It uses the information provided by this guide on the wordpress codex site.

This solves the issue with weird characters due to UTF8 encoding issues as seen in the screenshot below.

utf8 character issues made visible

Development for this plugin is made possible by VPRO Digitaal and started after encountering numerous solutions including other plugins and none providing a 100% workable solution. If you need any help with this plugin, do not hesistate to contact me. My company is available for hire ;)

Note: Keep in mind that this plugin has been tested thoroughly for wordpress mu, but only minimaly for wordpress. Please contact me if you encounter any issues with Wordpress, patches are always welcome.

Visit this link http://wordpress.org/extend/plugins/bbwp2utf8/ to download the plugin or to get more detailed info.

Make sure to have a working backup of your wordpress (mu) database before using this plugin!

Pre-release of bbmutag: a wordpress mu tag plugin

Tuesday, November 6th, 2007

I’ve been working on a wordpress mu tagging plugin, which will be released under the GPL license . It might seem useless with the upcoming changes in Wordpress MU where tagging will probably become is part of the core, but for those using older versions this might be useful. It’s been tested on WP MU 1.2.1.

I still need to iron out some quirks here and there with the generated documentation and (lack of) usage examples (do I hear templates), but as the saying of free open source software goes: ‘release early, release often’ . So consider this version to be the pre-official release of my Wordpress Mu tagging plugin. If you need any help with this plugin, leave a comment and I’ll try to help you out.

This plugin was made possible by the generous support of VPRO Digitaal.

Download bbMutag, a tagging plugin for WP MU

VPRO radio6 tags live

Wednesday, August 22nd, 2007

screenshot wordpress mu tags plugin

Yeah! The wordpress mu tags plugin I’ve built for the Dutch public broadcaster VPRO is live at Radio 6.

Testing ogg support in Anarchy Media Player

Wednesday, July 18th, 2007

Yesterday evening I had some time to slack and I decided to implement Vorbis and Theora into the Anarchy Media Player. This is a fairly wellknown Wordpress plugi for displaying media files, but it can also be used without Wordpress. I used the Cortado applet made available by the Fluendo people which should allow direct playback in the browser (at least if the person accessing the content has Java installed) otherwise you should see a download link. So it degrades pretty nice. (more…)

Wordpress plugin: custom profile picture plugin

Wednesday, May 9th, 2007

I changed the profile picture plugin by Hannah Gray aka Geekgrl in such a way that users with admin rights now can change profile pictures for other users. Until now I haven’t heard back from Hannah and my comments on her blog did not seem to get through. So I decided to upload my customized version here and allow other people to use it as well. Check the instructions.