Plugin Test

I’m testing a new plugin I’m working on, please be patient.

|bill brown|

|pixel|

|nullgel|

|sir not-appearing-in-this-film|

This plugin works by looking in the post content for bits of text between |’s (vertical bars), then checking to see if that text is in your links database. If it is, it replaces the pipe-text-pipe combo with the text, linked to the URL in your links db. The above links, |bill brown|, |pixel|, and |nullgel|, are all in my blogroll links category, and are therefore linked to their respective sites. Sir not-appearing-in-this-film is not, so the pipes are stripped and the text returned unlinked.

Caveat: for now, the regex I’m using is /|([_a-zA-Z0-9-s]+)|/m, so no punctuation can be used in your link names. I consider this a bug, but have not worked out the regex yet. Grr. :-(

R.E.M. Says:

About this Entry

This page contains a single entry by Steve published on August 1, 2004 10:39 PM.

Too Late was the previous entry in this blog.

Weeds in the Garden is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

OpenID accepted here Learn more about OpenID