Image 01 Image 02


0
Posted on 1st May 2008, Tags: ,

It is time for another WordPress Plugin Competition. This is good for the open source community. I am sure there will be a number of new hacks to better the wordpress blogging experience. If you wish to participate in this competition, check our more info on this here. Though the competition is going to run for 2 whole months, to develop a plugin hack, it shouldn’t take more than a day work. And again, it depends on the complexity of the plugin you plan to develop.

I am looking forward for this competition as a developer and as a potential user too. Lets make this open source tool a better solution among the existing lot!

  
4
Posted on 30th April 2008, Tags: ,

In the wordpress 2.5 and above versions, comments author URL opens up in the same window. This could possibly make your blog reader to get away to other sites. If you want it to be opened up in new window, you need to make the following code changes.

Look for this file : ../wp-includes/comment-template.php and take a look at the piece of code which is mentioned as below.

function get_comment_author_link() {
	$url    = get_comment_author_url();
	$author = get_comment_author();

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

Modify the above block of code with changes as shown below.

function get_comment_author_link() {
	$url    = get_comment_author_url();
	$author = get_comment_author();

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

Thats it. You are done! Enjoy the wordpress while retaining traffic on your site :)