A Single Article

Read it, comment, and share it with your friends

Modified lr2Spam Plugin to validate as XHTML 1.1

Posted September 20 in Design.

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

Responses to my article
  1. Felipe 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 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 December 12, 2006

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

Leave a comment

Share your thoughts with the world

You can use Markdown, or you can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Please keep comments respectful and on topic.

This form is guarded by Akismet, so don't waste your time trying to submit spam. It won't work. Ever.





Stay on top of new updates at this site: Subscribe to the Feed!