J.me

Now, my blog is do follow

Now, my blog is do follow. That means, while you are commenting on any of my article, you will get a free backlinks from my blog. But, but, please do not spam! I also has disable trackback as this morning I got about 200 and more trackback that not even related with my blog. While I trying to visit the URL, I just got that the blog has been deleted by blogspot.

For anyone that used WordPress blog and want his/her blog to be do follow, it can be archived by editing the wp-includes/comment-template.php file or by using some plugins. I don’t know the plugins name that do this work, you can search on Google, because I think that editing this file is far more easy. 🙂

So, first, open the file with any text editor (preferable to not use notepad), and search for this function.

function get_comment_author_link() {
	/** @todo Only call these functions when they are needed. Include in if... else blocks */
	$url    = get_comment_author_url();
	$author = get_comment_author();

	if ( empty( $url ) || 'http://' == $url )
		$return = $author;
	else
		$return = "<a href='$url' rel='external nofollow' class='url'>$author</a>";
	return apply_filters('get_comment_author_link', $return);
}

See the bold line. Delete the nofollow, and the result as below

$return = “<a href=’$url’ rel=’external’ class=’url’>$author</a>”;

And now the function looks like this:

function get_comment_author_link() {
	/** @todo Only call these functions when they are needed. Include in if... else blocks */
	$url    = get_comment_author_url();
	$author = get_comment_author();

	if ( empty( $url ) || 'http://' == $url )
		$return = $author;
	else
		$return = "<a href='$url' rel='external' class='url'>$author</a>";
	return apply_filters('get_comment_author_link', $return);
}

That’s it… 🙂

5 comments | Leave a comment

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.