Update to the Keyword Link Plugin

Martin on May 8th, 2008

After getting quite a bit of feedback on the keyword link plug in, I hereby present the updated version.

This simple plug in allows you to specify keyword and link pairs. If the keyword is found in the article it will automatically be linked.

My original replacement routine did a simple string replace, which was fine if the words were noun’s ; but if you started to apply grammar things went wrong. (”Stonehenge” doesn’t quite change like “magic”, “magically”). The new routine checks for word boundaries which should solve nearly all problems.

To allow for styling the links, I have added a around each link to allow for modifying the link in any way you can imagine (or not). For example to make the link bold add the following to your style.css file:

.bm_keywordlink { font-weight: bold; }

Two more requests were for only linking the first mention of a link in the article, and for some links to be tagged as “nofollow”. Both are now possible.

Subscribe to this blog's RSS feed

BM Gallery 1.3

Martin on April 20th, 2008

I found some time and updated the BM Gallery plug-in to include some requested features.

The plugin has been internationalised to include a PO file for all message strings
Better support for Wordpress installations in sub directories
Updated & tested the plugin for Wordpress 2.5
Removed dependency on unzip

If you find any problems with it, drop me a [...]

Continue Reading...

Backing up your Wordpress Database

Martin on April 8th, 2008

What this article is about

Daily backups of your Wordpress database
Daily e-mail with a compressed copy of the database

Last week I managed to setup a nightly automatic backup of my Wordpress files. That still left securing the database as an unfinished task. And of course it will be handy to have a good backup when I [...]

Continue Reading...

Wordpress 2.5

Martin on March 31st, 2008

I just downloaded WordPress 2.5 and installed it on a spare server. Too early days to overwrite this blog, but its time for a cup of coffee and some hacking.
First impression, besides feeling a little lost in the new admin menu ? I was curious how many filters the WP 2.5 code has compared [...]

Continue Reading...

Tuning Wordpress for Speed

Martin on March 27th, 2008

Six string bass of unknown origin by greefus groinks
After writing an earlier article about WP-Super Cache I became curious how much difference the various tweaks make in performance. So I setup a little Ubuntu test machine. After downloading Wordpress 2.3.3 I set it up with some basic posts and the default theme.
The default [...]

Continue Reading...

for wordpress by gillesklein
What this article is about

Daily Incremental backups of your Wordpress blog files
Daily report by e-mail on the status of the backup

What it does not cover

This script does not make a backup of your Wordpress MYSQL server. In the near future I will write another script that does this automatically every night [...]

Continue Reading...

Keywordlink Plugin

Martin on March 26th, 2008

Neuschwanstein Castle by roblisameehan
In one of my many lives I am developing a travel website. While writing the content I quickly got tired of all the manual cross-linking. Each time I mention London in my articles I would like to add a link to the London introduction page.
It is fairly trivial to do this automatically [...]

Continue Reading...

Embed images into your Wordpress Plugin

Martin on March 25th, 2008

On the Wordpress forum there was some commotion regarding the GoogleSiteMap Generator Plugins use of base64 encoded content. This set off some stealth virus alerts - as a typical trick is to hide malicious code in these unreadable strings.

#region Embedded resources

if(isset($_GET["res"]) && !empty($_GET["res"])) {

$resources = array(
//PayPal
“{8C0BAD8C-77FA-4842-956E-CDEF7635F2C7}”
=>”R0lGODlhEAAQAMQQANbe5sjT3gAzZpGmvOTp7v///629zYSctK28zb”
.vI1ZKnvfH094SbtHaQrHaRrJ+xxf///wAAAAAAAAAAAAAAAAAAAAAAA”
. “AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAHoAxAALAAAAAA” .
. “QABAAQAVZICSOZDkGQqGuBTqUSMqqiTACwqIKgGkKwCDwVRIodkDVwjYSMFS”
. “NoCNQIgSugZ6vBMBetSYCj0UwCA6lgyy4YoqWASRAZSYNZNaA+VxM7B5bEA9C”
. boGGIyEAOw==” ); }

No virus [...]

Continue Reading...

Wordpress Theme Gallery Plugin

Martin on March 23rd, 2008

You can find many good collections of Wordpress themes, but how about building your own collection? You can offer your visitors a nice selection of quality themes to browse. I often come across many nice themes, but other than bookmarking them, I have no real way of sharing them. This plugin helps you create your [...]

Continue Reading...

Speeding up WordPress / Manage Pages

Martin on January 24th, 2008

In one of my projects I am trying to use Wordpress as a CMS. It is working out fine, except for one annoying detail. I have written well over 200 pages of content now (not posts), and in the management interface the “Manage>Pages” page is becoming unbearably slow. In my particular situation it can [...]

Continue Reading...