Disabling Nofollow in Wordpress 1.5 |
A reader suggested that I repost how to disable NoFollow in Wordpress 1.5. This is for those folks who do not want rel=’nofollow’ on the links submitted by commenters.
STEP 1. download the comment-function.php script in /wp-includes/
STEP 2. open in any text editor and edit line 173 that looks like what’s shown below:

STEP 3. Change the highlighted line to read as follows:
$return = “<a href=’$url’>$author</a>”;
STEP 4. FTP that in ASCII mode back to /wp-includes/ and then you’re all set.
###
While on the WP kick, I just noticed a problem with the importer involving the missing post slugs. For older posts on the same day with the crufty format we’re using /domain/hmmentry/yyyymmdd/post-slug/ there is no individual link for older posts. The post ID can still be linked directly, but this really calls for a post slug.
I added to my to-do list to whip up a quick PHP script that will go back through the prior archives (all 1,587 of them) and where there is no post-slug then to create one using keywords in the title of the entry. It’s unlikely that I’d ever have any two titles the same on a single day in the past, so this format will work. I will integrate this logic into the importer. I’m glad I waited before sharing that code. I’ll wait some more.
Also, still on the to-do list are:
- integrating the MakeYouGoHmm custom toolbar with the new WP search and (maybe) with the Yahoo API and/or Google API
- fixing the old entry.php script so that it redirects all requests to the WP page where comments can be left
- fixing the search results page so it actually looks like a search results page
- fixing the individual entry pages so they aren’t so query intensive — I believe an additional theme template is all that’s needed here
- fix the list CSS and comments CSS because in IE it’s bolded and is hard on the eyes (looks much better in Firefox)
Back to work before the list grows even longer.
Did this post make you go hmm?
Related Posts
- How to add Sphere It function based on number of words in post
- [site news] Gettin’ there … to Wordpress
- How to add a dynamic digg vote this button, show related posts and more using Wordpress
- How to highlight links marked NOFOLLOW using Firefox
- Feedster search results RSS and trackback to-do
- Pivot hack: how to display images in search results




Or you can simply use the zero configuration plugin to disable nofollow.
In fact the changes you mentioned above is incomplete. It also needs to be changed in other places. Search for in the code to get a better picture. The plugin takes care of all that without requiring you to modify any code.
Comment by Angsuman Chakraborty — April 20, 2005 @ 2:11 pm PST
I changed your link to point directly to the plugin download, Angsuman (this way readers don’t have to search to find). Thanks for sharing your solution. The link in your sig goes to your blog for those interested.
However, what if someone actually wanted to only have the signature line links left by commenters be without the rel=’nofollow’ — your plugin is a global solution and does not seem to solve for that. Something to think about for a future version, perhaps
Comment by TDavid — April 20, 2005 @ 2:35 pm PST
[…] Past Hmm posts about the nofollow attribute December 13, 2006: The FTC and somebody please give me something positive to write about Sony September 28, 2005: Debating what is/isn’t spam in the comment sections September 26, 2006: TypePad offers tip jar feature, still forcing rel=nofollow on all comments? March 15, 2005: Disabling nofollow in Wordpress 1.5 Jan 22, 2005: Google responds to my nofollow concerns Jan 19, 2005: Treating all commenters like spammers is a slippery slope Jan 15, 2005: No Google juice for nofollow attribute, will this negatively impact legitimate comment activity? […]
Pingback by Why continues to be against the spirit of the web » Make You Go Hmm — February 12, 2007 @ 4:48 pm PST