Posts tagged as:

plugins

Displaying Older Posts

Tuesday, May 6, 2008

WordPressI’m suffering from a little bout of writer’s block these days. When you combine that with the fact that I haven’t been cruising the ‘net finding new and funny things, it makes for a dearth of new content on this site. I was thinking that it would be cool to display a single post from the archives at the top of the home page when there’s nothing new to see. Something like, “Hey! Sorry I haven’t posted anything new in x days, but check out this from y years ago …” I got as far as writing the SQL for it, but then I stopped working on it. I think it’s a good idea, though. Maybe someone will decide to write a plugin to do this. (Or, more likely, someone already has and I am just too lazy to find it.)

[click to continue...]

{ 0 comments }

Akismet Works

Wednesday, April 2, 2008

Download AkismetI installed Akismet here at the beginning of the Fall of 2006. I really don’t know how I lived without it. I emptied the queue about seven hours ago, and when I got to the office this morning there were already almost 1500 comments, pingbacks, and trackbacks flagged as spam.

Akismet has protected your site from 380,243 spam comments already, and there are 1,471 comments in your spam queue right now.

{ 0 comments }

WordPress Gunning-Fog Analysis PlugIn

Saturday, March 31, 2007

A few weeks ago a friend of mine asked me to build a WordPress plugin to display a Gunning-Fog analysis on his blog. The math part was pretty easy stuff. I was having a borch of a time getting the plugin to count syllables, so I hunted through Google and found someone else had written a pretty good function to do that. I squished it all together and it seems to be working pretty good.

You can download the plugin here and see it in action here.

{ 3 comments }

Akismet and Comment Spam

Thursday, January 11, 2007

Download AkismetSince I installed it 143 days ago, Akismet has killed 23,683 spam comments on this blog. That’s an absurd 165 pieces of spam per day. And the number is definitely increasing daily at what I consider an astronomical rate. I have no doubt that in the time it takes me to write this post I will have earned another dozen. What’s amazing is that I’ve only encountered 3 “false positives” in all that time. (A “false positive” is a valid comment that Akismet incorrectly identifies as spam.) I am quickly approaching the point where I no longer even bother to review any of what Akismet catches. Be warned: If you’re daring enough to mention a drug for erectile dysfunction, any possible gambling topic, or any type of less-than-conservative sexual practices in a comment to my blog, you can safely assume that I won’t see it because Akismet is going to just kill it for me.

Update: As of 03/27/2008 the number is over 370,000.

{ 1 comment }

Three Simple Steps to Fix Technorati Tags

Monday, December 11, 2006

According to the tag help page at Technorati, all you have to do to have their system “find” your tags is (1) add a rel=”tag” parameter to your links and (2) make sure those links end with the word you are tagging (e.g. something.com/tag). The first part is simple. The second part is easy, but not very practical. More importantly, though, is the fact that neither of these seem to actually work. As far as I can tell Technorati does not read your entire post and strip any tags it finds. In fact it seems that Technorati only reads your RSS and analyzes that to determine how to tag your posts. That’s okay, though, because I can tell you how to convert your WordPress tags into rss category nodes so that Technorati indexes them.

[click to continue...]

{ 0 comments }

Timeline WordPress Plugin

Monday, October 9, 2006

This domain of mine has had stuff on it for a long, long time — before WordPress or MovableType or even Blogger. The original davidgagne.net is, sadly, lost forever. Some pieces of it have been kicking around on my various hard drives and FTP locations for a decade now.

One file that I could never seem to bring myself to delete was an ancient hand-coded HTML <TABLE> listing of a bunch of important events in my life. A few friends of mine actually built a company based on the idea. It was called “ShareTimelines.com”, had a magnificent interface, was all webbed up, and the site — last I checked — is completely dead. I wanted to have that timeline on this site again. I hadn’t updated it in years and years, and I would rather poke hot needles in my eyes than sit and hand-code a bunch of <td>s all day. “It should all be in a database, of course,” I said to myself. “And I should be able to edit it right in the WordPress Administrator, too. And seriously it should be written so that I can just give other people the ability to add timelines like that to their own sites.” ( I should stop talking to myself.)

[click to continue...]

{ 46 comments }

How-To: WordPress Tags

Wednesday, October 4, 2006

Tags! They’re everywhere! It seems like every site on the ‘net is adding tagging now. Tag clouds — ridiculous, pointless, and annoying — are not the reason. Tagging is a good way to get into Technorati and a good way to get more traffic to your site. It’s a nifty way to organize your posts and to help your readers find what they want on your site. Is it the wave of the future? I don’t know. I don’t think so. Several of the early adopters are now saying that they are useless, and the search engines seemed to be doing a fair job of indexing blogs long before people got tag-happy. But it’s not exactly terribly painful to add this functionality to your site — it only took me about a half hour, so how hard could it be? Plus you’ve got me to explain it all to you.

This how-to assumes that you’re using WordPress to manage your blog. If you are using something else — blogger, MovableType, etc. — then you’ll have to look somewhere else. Technorati is a good place to start.

[click to continue...]

{ 1 comment }

Disable WordPress File Upload

Friday, September 29, 2006

Although I can appreciate that it’s a really nifty feature, I am likely never going to use the built-in File Upload feature in WordPress. What has bugged me is that it’s in an IFRAME in the Write Post panel; I think it slows the page load. I was trying to get rid of it, but the best I could find was the Clutter Free plugin from Tempus Fugit. It’s a great plugin, but unfortunately it doesn’t really remove the IFRAME, it just hides it.

So. I dug around in the code and did it myself. If you aren’t the file-uploadin’ type, you only need to change a few lines to prevent the File Upload widget from appearing on your Write Post panel. Open wp-admin/edit-form-advanced.php and look for the line containing $uploading_iframe_ID. It’s near or around line 223. There are a few different ways you can handle removing this.

[click to continue...]

{ 1 comment }

Wordpress Captcha

Friday, May 19, 2006

The spammers finally broke me. I’ve gotten well over 3,000 spam comments since Monday morning. It was becoming such a pain to delete them all that I have now implemented Nio’s anti-spam comment captcha WordPress plug-in. It seems to be working pretty well so far. Please let me know if you have any issues.

NOTE: I AM NO LONGER USING A CAPTCHA ON THIS SITE.

WordPress Plugin: A Modern Major-General

Tuesday, March 15, 2005

I understand equations, both the simple and quadratical. So I figured I should share with you. Download my Pirates of Penzance “Modern Major-General” random-lyric generator and you, too, will be able to tell at sight a Mauser rifle from a javelin.

Add the function moderngeneral() where you want to print the lyric. I have mine in place of bloginfo(’description’) in my header.php file, but you can place it in your sidebar or anywhere you want.

{ 0 comments }

Simpsons WP Plugin

Tuesday, March 8, 2005

I spent a few minutes goofing off tonight and grabbed an ultra-nifty Simpsons Plugin for WordPress. I hacked it a smidge and added about twenty more quotes. Trés cool. It’s amazing that there are just no decent Simpsons images on the ‘net. I seem to remember FOX going nuts on copyright violation a few years ago. It’s hard to imagine that they are that ruthless. How could they have wiped the entire Internet of good Simpsons graphics? What’s even harder to imagine is why the “official” Simpsons site would be so incredibly craptacular — all Flash and useless content; they even incorrectly used “lose” instead of “loose” in one spot. Aye carumba.

{ 0 comments }

WordPress

Monday, February 21, 2005

It looks like I was able to successfully convert my site to WordPress. Maybe now I’ll start posting more often again. :0)

Also: How to Write a Plug-In

{ 0 comments }

Blogdata

Monday, May 6, 2002

BlogData Tutorial

At the bottom (or top) of each post on this site (and almost all of my MovableType blogs) I present a set of icons which I consider the entry’s “blogdata”. I thought I would share with everyone exactly how I do that. MovableType is excellent for this sort of thing, and Ben and Mena deserve bundles of good karma (and cash, if you have extra).
[click to continue...]

{ 9 comments }