Sea Shepherd needs your help...

Archive for the 'Wordpress' Category

February 12th 2008
Wordpress: Nofollow…

Posted under Wordpress

If you run a blog using Woprdpress you’ll find that when you place a link in your posting, like so: Superb web hosting You’ll find that the coding in the background add’s the “nofollow” to the link so search engines do not follow the link…

This may save you some google PR (who cares!?) but isn’t it better for the search results if you allow the search engine to follow the link ?

After all that’s what the web is all about…

Well to remedy the situation there is some nifty code that can remove the “NoFollow” in the links on your pages and comments. (not trackback or pingbacks.. for anti-spam purposes)

Blog article about the code:
http://dean.edwards.name/weblog/2005/03/nofollow/

The code is:

<?php
// ————————————————————————-
// REMOVE “NOFOLLOW”
// ————————————————————————-

function comment_author_remove_nofollow($text) {
    return preg_replace(”/(<a href=’[^']*’) rel=’external nofollow’/”, “$1 rel=’external’”, $text);
}

function comment_remove_nofollow($text) {
return preg_replace(”/(<a href=’[^']*’) rel=’nofollow’/”, “$1″, $text);
}

// remove/replace filters
remove_filter(’pre_comment_content’, ‘wp_rel_nofollow’, 15);
add_filter(’comment_text’, ‘comment_remove_nofollow’);
add_filter(’get_comment_author_link’, ‘comment_author_remove_nofollow’);
?>

Just copy and paste the code into a file named : my-hacks.php and place this file in the “root” of your blog.

Once you have done that  you can enable it using the “Use custom my-hacks.php” switch on the admin panel under “Miscellaneous” section.

That’s it… easy wasn’t it?

Oh BTW… also now using the TrackBack anti spam plugin from here:

 http://seclab.cs.rice.edu/proj/trackback/trackback-validator-plugin/

Comments Off

October 15th 2007
Flickr pics…

Posted under Wordpress & flickr

I’ve just installed the excellent Flickr plugin to show Flickr account pictures on the blog.
It allows you to insert photos  into your posts directly from your Flickr account… how cool is that!?

I took these shots at the Swansea Festival of the Air. I used a Canon 300D and Sigma 70mm to 300mm zoom.

  Red Arrows The famous Red Arrows of the Royal Air Force The famous Red Arrows of the Royal Air Force

It also does it in various sizes!

Continue Reading »

Comments Off

Voice from the Deep! is Digg proof thanks to caching by WP Super Cache!