Turn off ‘nofollow’ in comments

by Chris, Sat 12th Apr, 2008, in categories: Using Blogsome

Whenever someone leaves a comment on your Blogsome blog, the link usually includes the ‘nofollow’ attribute. This means that Google and other search engines don’t count it as a proper link. If you wish to reward your regular commenters with backlinks that Google does count, then go to your comments.html file and follow these simple steps:

1. Find the bit that says something like this: <cite>{comment_author_link}{_e text=" said"}:<br /></cite>.
2. Change it to: <cite><a href="{comment_author_url}">{comment_author}</a>
{_e text=" said"}:<br /></cite>.

3. Then find this: {comment_text},
4. And change it to this: {capture name='text_comment'}{comment_text}{/capture}
{$smarty.capture.text_comment|replace:'rel="nofollow"':''|replace:"rel='nofollow'":""}.

Have a look at the source code for any comments that have been left on your blog. If the changes have worked, you will not see ‘nofollow’ on any of the comments.

As always when making changes, remember to save a copy of your original comments.html file so that you can put it back in your template if, for any reason, the alterations don’t work for you.

source: http://standalone.blogsome.com/

Comments »

No comments yet.

Leave a comment

Line and paragraph breaks automatic, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> . Your email address is required but is never displayed.

Comments must be approved before publication. Please note: it may take some time before your comment appears.



Anti-spam measure: please retype the above text into the box provided.