The Montoya Herald, a weblog about Blueprint, jQuery, design, music and life, publishing on the web since September 2005. Written by Christian Montoya: developer, designer and entrepreneur.

The Montoya Herald — ChristianMontoya.com

Search

Buy My DVD!

Like What I Do?

My Amazon.com Wish List

On this domain

Elsewhere

Modified lr2Spam Plugin to validate as XHTML 1.1

Posted on September 20, 2005.

I just modified the lr2Spam plugin for Wordpress so that my site would still validate as XHTML 1.1.

It amounted to changing these two lines in the plugin file:

echo '< *input type="hidden" name="lr2SpamTagName" value="'.$lr2SpamTagName.'"/>'."\n"; echo '< *input type="hidden" name="'.$lr2SpamTagName.'" value="'.$lr2SpamTagValue.'"/>'."\n";

to this:

echo '< *p>< *input type="hidden" name="lr2SpamTagName" value="'.$lr2SpamTagName.'">< */p>'."\n"; echo '< *p>< *input type="hidden" name="'.$lr2SpamTagName.'" value="'.$lr2SpamTagValue.'">< */p>'."\n";

Obviously without those asteriks. Basically, the inputs have to be inside a block level element (like a paragraph) and then they need the self closing slash.

Get a trackback link

3 Comments

  1. Felipe on October 31, 2006

    Hello,
    Just wondering if anyone could help. I did something stupid and started my blog using a numerical archive system, and now I'd like to change it so that the post title is part of the URL for SEO reasons. Is there any Wordpress plugins that anyone knows of that could switch it without sending Googlers to invalid pages? Maybe some sort of redirector to the correct page?

    Thanks.

  2. Christopher on December 12, 2006

    What I want to do on my blog, is every few hours take the oldest post and move it to the
    front of the queue, all automatically. Anyone know if there is a plugin that can do this or
    a simple way to set up another plugin to do this (use my own feed perhaps)?
    Thanks.

  3. Christian Montoya on December 12, 2006

    Christopher, are you talking about rotating your posts ever few hours? That's not easy at all.

Leave a comment

Use Markdown or basic HTML. For posting code, use Postable. Please keep comments respectful and on topic.