Archive for the 'WordPress' Category

August 10th, 2006

Akismet for Comment Spam

Permalink | Comment (0) ~ WordPress - plugin

I recently updated my WordPress install to 2.whatever which allowed me to set up the built-in Akismet plug-in to control commnet spam. To get it running, all I had to do was sign up for a WordPress.com account, copy the Akismet key that WordPress.com gives you and plug that into WordPress.

So far so good. Only a couple of comment spams have made it into my moderation queue, which makes comments much more manageable.

October 19th, 2005

NASA Going Back to the Moon

Permalink | Comment (0) ~ WordPress

On Yahoo! today there was an AP story on using the Hubble telescope to look for oxygen-bearing minerals on the moon. As quoted…

The space agency hopes to return astronauts to the moon by 2018 using Apollo-like capsules and rockets made of shuttle parts.

Doesn’t that just sound absolutely lame? Kind of like strapping some JATO rockets on a Yugo (oh, except JATO rockets usually don’t blow up). I mean 2018 is 12 years from now! How about using some hi-tech stuff like chewing gum, duct tape and bailing wire?

BTW NASA… the moon… been there, done that.

May 16th, 2005

Starting to Get a Little Comment Spam

Permalink | Comment (0) ~ WordPress

I’m starting to get a little comment spam here and there. I knew it was going to happen soon. The first step that I took was to introduce captchas for comments, but I knew that this solution was not very robust (i.e., the vocabulary in my captcha plugin is very simple — yeah, I have to improve that — and spammers can get around the captchas by trackback spamming and through my mobile interface which doesn’t support captchas yet).

A more robust blog-spam solution can be found here if you are running WordPress 1.5. I’m going to have to take some time in the near future to implement some or all of these solutions.

If you are new to blogging, an alternative to running your own blogging software is to use a service like TypePad. TypePad is a paid-for service, but offers lots of customization potential. If you don’t need to customize your blog that much, there are lots of free services like Blogger, Yahoo! 360, MSN Spaces, etc. It seems logical that a service should be able to do a much better job of combating spam than an individual.

April 27th, 2005

Formatting Code Samples in Posts Using CSS

Permalink | Comments (3) ~ WordPress

Displaying chunks of code in a post can be a little tricky at times. It’s hard with WordPress’ default CSS style to have the code format in a readable way. However, I noticed that over on this blog, they had figured out a way to do it using blockquote and pre tags.

For example, here’s a pretty good bit of code where I’m using the new code classes that I’ve set up for the blockquote and pre tags.

; ?>
        <div class="pagepost">
        <h2 id="post-<?php the_ID(); ?>">< ?php title(); ?>
            <div class="entrytext">
              < ?php the_content('<p class="serif">; ?>
    
              < ?php link_pages('<p>Pages: ', '', ); ?>
    
            </div>
        </h2></div>
      < ?php endwhile; endif; ?>
    < ?php edit_post_link('Edit this entry.', '<p>', ''); ?>

Here’s the CSS bits that I added to this site’s CSS file to enable code formatting.


blockquote.code {
    margin: 15px 0px 0 15px;
    padding-left: 0px;
    display: block;
    border-left: 0px
    }

pre.code {
    overflow: auto;
    margin: 0;
    padding: 0 0 0 0px;
    background-color:#F7F7F7
}

I don’t know much about CSS, but it seems to work.

Update: 2005-04-27
Except, of course, this breaks my site’s style in IE. Did I mention that I hate IE. What a piece of $#@! disguised as a browser. I’ll work on fixing this later.

And in the latest update, IE has won. I cut the length of the code sample lines shown above so it doesn’t break the page in IE. Ugh.

April 26th, 2005

AuthImage — A Captcha Plugin for WordPress

Permalink | Comments (4) ~ WordPress - plugin

Captchas are used throughout the web to try and determine humans from machines. In other words applying a Turing test. Newly added to the Zoinger comment template, here’s a screenshot to show ya what it’s all about.

Adding the Captcha for WordPress was easy. Just snag AuthImage — a WordPress plugin — and modify a couple of templates per the README.TXT file. Simple.

I figured that this was the most elegant way to try and block comment spam. Other solutions for WordPress use filters and/or white/blacklists that can give false positives (as well as false negatives) — and I think you have to tune them sometimes. Although I haven’t received any spam yet on this blog, I was getting some on the old MovableType blog. An ounce of prevention…

Oh, the original README.TXT install instructions were… terrible. I updated a version of them specific to WordPress v1.5 which you can find here.

Are we not men?


Technorati Profile |