DoFollow plugin for WordPress

Written late in the afternoon • Tags: WordPress, plugins

Due to the low volume of comments on my site, I didn’t think it is necessary to tag links in comments with the rel="nofollow" attribute. All the links in the handful of comments that exist are just fine. I created a plugin to disable such automatic tagging.

Download: dofollow.php

(more…)

Time Zone plugin for WordPress

Written early in the evening • Tags: WordPress, plugins

WordPress implements a nice wide selection of hooks for plugins to modify the functionality of the software. I’ve used some of the most recent ones to override the time offset value with information derived from the operating system. The benefit is that WordPress can now automatically observe DST changes.

The result: timezone.php — download it now!

(more…)

Export WordPress links as XBEL

Written in the wee hours • Tags: WordPress, plugins, software, web

I wanted to see if I could have my WordPress links in the Firefox Bookmarks menu. I thought this should be possible, since it knows about RSS. From using reBlog I had learned about FeedCreator, which is a great package for quickly creating feeds. So I enhanced wp-links to support feeds.

However, I was to be disappointed — the links are in Firefox now, but they are all piled up together in a single huge menu. In the WordPress database the links are categorized, as can be seen on my links page. I was hoping Firefox would use the categories to create more subfolders.

I thought about another approach: XBEL. The format is simple enough to follow, so I added XBEL support to FeedCreator 1.7.2. This works perfectly with the Bookmarks Synchronizer plugin for Firefox. I’ve configured it to download a single subdirectory inside Bookmarks, and all my WordPress link categories show up as subdirectories inside it.

I’ve made some sample code available to show how I’m calling wp-links. The code won’t run as-is, as it calls some other libraries I’m using. It should be simple enough, though, to remove (or ignore) the “extra” stuff.

wp-links

Written late in the morning • Tags: WordPress, plugins

Storing links in a database is an excellent idea. Storing links in multiple databases is not. To avoid having links all over the place to manage, I wrote wp-links.php for accessing the links table in the WordPress database. The idea is to be able to get lists of links as a “standalone” feature on pages that are not using WordPress, while still being able to manage the links through WordPress as well as use the links on the journal pages. (more…)