Matt's Blog

Archive for the ‘Blogging’ Category

BrowseHappy Logo is Gone in WordPress 2.3

Thursday, June 21st, 2007

WordPressIf you’ve ever used WordPress with Internet Explorer, you’ve probably seen that little logo at the bottom of the page. That logo is for BrowseHappy. Another campaign trying to get you to switch browsers. Well, I’ve got some good news for you. In WordPress 2.3, that BrowseHappy logo will no longer be there. Last month I wrote about how I submitted a Ticket and Patch to stop the BrowseHappy logo from showing up in IE7. Well, last night, after a little bit of discussion on the Ticket comments, I submitted a new patch that completely removed the BrowseHappy code from WordPress. Well, today, that patch has been committed into the WordPress Subversion Trunk (which will become 2.3). Changeset 5742 fixes it.

Sweet. 😀

Update [June 21, 2007]: Changeset 5744 now reverts Changeset 5742. Matt Mullenweg (founder of WordPress) wanted it reverted, since BrowseHappy is his site. Which is totally unfair, because these intrusive campaigns had a time, and they had a place. That time is no longer existent, and that place never should have been WordPress.

WordPress 2.2.1

Wednesday, June 20th, 2007

WordPressThat’s right, the latest “Bug Fix Release” (maybe even some security patches) for WordPress 2.2 has been released. WordPress 2.2.1 contains tons of Bug Fixes and it would be wise to upgrade, otherwise, you might encounter one of those bugs. 😉

You can see all the changes that went into 2.2.1 here.

I’ll be upgrading to 2.2.1 soon. Download 2.2.1 now!

DisAllow Indexing for “Random Post” Links

Thursday, May 31st, 2007

For those of you who use Matt Mullenweg‘s Random Redirect Plugin, this post will be useful for you.

If you’re not familiar with the Plugin, it will redirect you to a random post when you visit /?random.

I was searching Google with the top search terms to my Blog, and I noticed that for one of them, Google had the URL of the result as http://mattsblog.ca/
?random
. Which isn’t exactly going to be helpful, since the person who clicks on that result is probably not going to get the same Post that Google had gotten when they crawled the page.

So, how do you prevent this from happening? Simple, you tell bots not to index /?random. You can just add this to your robots.txt file:

User-Agent: *
Disallow: /?random

That’ll tell all the Bots that crawl your site (or, at least, the ones that follow the robots.txt standard) not to index /?random. Or, if you don’t want to do that, you can just add the following to your link for the Random Redirect:

rel="nofollow"

Now, hopefully those links to http://mattsblog.ca/?random will disappear out of search engines fairly quickly. 😀

Oh, and by the way, you can get a Random Post by clicking here.

Displaying Your Top 10 Posts

Sunday, May 27th, 2007

If you use WordPress, you have probably wondered if you can display your Top 10 Most Popular Posts before. Well, you can do just that by installing a Plugin that will record the number of hits an Article has. Then, uploading a simple PHP file that you can download for free.

The Plugin is WP-PostViews. The Plugin is free and is released under the GNU General Public License. So, simply install that Plugin by downloading it, extracting it and uploading it to /wp-content/plugins/.

Now this is where my script comes in. Okay, it isn’t totally my script. It’s a modified version of the Script BlueFur released for this same purpose. Except, I cleaned it up a bit and made it so it used WordPress functions, so it’s more “WP-Friendly” you could say. So, you can download my script here. The script is licensed under the GNU General Public License. Now, all you have to do is download that file (or copy and paste it into a new file) and name it something like topposts.php, or anything really, as long as it ends in .php, and not .txt. You may need to change the following lines, depending on where your WordPress installation is installed and where you put the script:

require_once('wp-config.php');
require_once('wp-includes/wp-db.php');

Then, upload the script. If you don’t want it to be a Top 10, you can change the value of $limit to something like 5 to have a Top 5.

You can see my Top 10 Posts here.

Get it? Got it? Good.

Enjoy. 😀

Feed Icon

Sunday, May 27th, 2007

Feed IconThe Feed icon seen in Internet Explorer and FireFox is pretty much the standard Feed Icon now-a-days. It is an internationally-known icon to represent a Feed. The great thing about it is, it doesn’t just represent one kind of Feed Protocol, it represents the idea of a Feed in general. It is also less confusing to less-technical users than text or icons that say things like “XML”, “RSS” and “ATOM”.

But, where can you get a large copy of this image? Sure, you could do a screenshot of the icon in your browser, but what if you want a bigger version of the icon (like the one in my Sidebar)? Well, FeedIcons.Com provides the Icon in multiple formats. These formats include Al, EPS, SVG, PSD, PDF, PNG, JPG and GIF. So, you can edit and resize the image to your liking.

Mozilla originally made the icon for FireFox. Later, Microsoft decided to use the icon in Internet Explorer and Outlook. It was then pretty much considered the standard Feed Icon. The icon is free for you to do whatever you like with it. Mozilla does have some guidelines for it, but they aren’t legally binding.

By the way, you can subscribe to my Feed here.