One of the things that has frustrated me about Blogger, and Google to some extent, is the fact that they try to dictate to me how the links should be on my blog. For example comment links are automatically given the “nofollow” attribute. Well I don’t like that. I want the people who take the time to comment to get a link back to their website or blog. That seems fair. I have comment moderation in place so comments have to be approved before being published so I can delete the spammers comments and they won’t get any link love.
I searched through the Blogger help, which is pretty much useless to tell you the honest truth. Then I searched through the Blogger help group, and there were some answers there, but they were all for the new layout system when your blog is hosted on Blogspot. Well that did not help me so I went back to the Blogger help looking for the classic template tags and it was there that I got my idea.
The Blogger template tag <$BlogCommentAuthor$> is the template tag responsible for printing out the comment authors name and link. There is no way of telling it not to output a rel=”nofollow”, so enter in a little snippet of PHP to modify that little bit of HTML that Blogger is inserting into my blog. Look where Blogger has the <$BlogCommentAuthor$> template tag replace it with <?php echo str_replace(' rel="nofollow"', '', '<$BlogCommentAuthor$>'); ?>
and presto that nasty little rel=”nofollow” attribute is gone. Of course this only works if you are processing your HTML files as PHP.
On some blog templates you might not find the <$BlogCommentAuthor$> template tag, instead they have <$I18NPostedByCommentAuthor$>. It does exactly the same thing. Just replace that tag with <?php echo str_replace(' rel="nofollow"', '', '<$I18NPostedByCommentAuthor$>'); ?>
and let the link love begin.
On a related note, if you leave a comment and want to have a link pointing to your website make sure you choose the “Other” under “Choose an identity”. This way you can specify your website or blog address instead of a Blogger profile. No one needs to have link love to their Blogger profile.
Oh and what is the cost for all of this link love? Unlike some bloggers out there who have decided to charge $10 to remove the nofollow attribute, I will charge you ABSOLUTELY NOTHING! In case you are wondering the above link is a nofollow, because he does not need anymore links.
I would but… I like just being logged in on all the different blogger blogs that I visit. So it’s more about me being lazy than concern for getting linkbacks.
I am working on a similar approach for FTP Classic bloggers, except that I am running into a snag. My fix uses a PHP function (thereby negating any Template updates after it is installed)
Your solution and mine are not working. I do not have a clue as to what is causing it. The blog is using other PHP methods, and they are working.
Please see the comments in my Classic FTP Dofollow post to understand what is going on.Ignore the final comment when I ask if his pages are PHP ready. They are.
I am in email contact with the the blog owner and trying to resolve this issue. Your help would be greatly appreciated.
Thanks for the comment. I looked at the code here on my site and the rel=”nofollow” is being removed on the author name. Here is the code from your comment. <a href="http://webstractions.blogspot.com">Tips 4 Blogspot</a>
My code will not remove the nofollow on links in the comment body. I will perhaps tackle that another day.
My first guess if the code from your function is not working would be to check the regular expression. I dislike regular expressions because I tend to mess them up more than get them right. My question would be why use a regular expression, on the author name at least, because Blogger for a change is consistent with using double quotes. I’ll come and take a look at your site later when I have more time.
I did not understand when you say “and Google to some extent,” . Do you mean that Google when crawls blogs automatically discredits the weight of the links coming out from comment section ?
A large number of bloggers are using Do Follow [or something similar] to boost the comments count and traffic on their blogs , and people seem to be getting link juice out of the comment section as well.
I do understand the blogger part however.
Do you know if blogger still does this by default?
.
Yes Blogger still inserts nofollow on all comment links. I can’t see that changing anytime soon since Google owns them.
Do you know if blogger still does this by default?
Yes they do. Now that Blogger is closing down ftp publishing this trick will not be possible for much longer. My advice, move to WordPress ASAP.