Use Google Images to build links: WordPress Plugin

by Patrick Altoft on / 32 responses

Update: A new version of this code can be found here.

My earlier post explaining how you can use hotlinkers and Google Images to build backlinks to your website has created a storm of excitement as well as a certain amount of confusion from a few readers who were not quite sure how it worked.

If you missed the original post then I suggest you take a look, it has a nice example of the script in action.

The basic idea with this script is that a potential hotlinker finds a page on your site via Google Images. Normally the hotlinker will simply right click on your image, copy its location and insert the image onto a myspace page or somewhere similar. The script detects when the hotlinker right clicks on your image and brings up a text box with some code so that they can insert the image along with an appropriate link back to your site.

Most hotlinkers won’t bother to remove the link and the result is a continually increasing number of natural links to your website with no ongoing effort. Perfect.

I have created a short video so you can see how the script works in practice.

My first recommendation is that you install the Break out of frames WordPress plugin so that your site isn’t locked into the Google Images frameset. This will mean more visitors to your site as well as an increased likelihood that they will visit more than one page.

Next you will need to upload the Hotlink Builder WordPress Plugin and activate it. There is a control panel where you can edit the message that hotlinkers will see.

To test the plugin simply search for some images from your site using Google Images, when you click through and right click on the image the plugin should reveal the html code required to use the image.

Any problems please post in the comments below.

Patrick Altoft is Director of Search at Branded3, a Leeds SEO & Digital Agency specialising in SEO, Web Design, Development & Social Media.

Get daily posts direct to your inbox

You can get our blog posts delivered for free by email every day - simply add your email address to the box above, or alternatively you can grab the RSS feed.

Comments

Read the 31 comments below, or add your own!

Witty
June 17, 2007 at 4:44pm

I can’t get this to work properly, when you right-click on the image it does nothing but bring up the regular browser menu.

Reply

June 18, 2007 at 3:59pm

There are a couple of bugs with the script affecting certain versions or WordPress. We will be re-releasing the script within 24 hours to resolve these issues.

Reply

June 19, 2007 at 4:09pm

Thanks for the update, this looks very promising. I will wait for the update to test.

Reply

Keith
June 20, 2007 at 4:40pm

People hotlink to my images all the time so thank you very very much for making this plugin!

I’m testing it on a site that uses WP 2.0.6. So far it seems to work great in Firefox but for some reason it’s not working at all in IE. I looked at the source code and none of the plugin code was there – as if the plugin wasn’t even turned on.

Also, here are some ideas that might make this plugin even better:

1. Generate code for all the images in the post and not just the first image. I don’t know if that’s possible but it would sure be cool.

2. Add an option to adjust the cookie time from the “Hotlink Builder Config” page.

3. Add “clear: both” to the imagelayer div. I have adsense at the top of my template displayed with “float:left” and it was causing the ads to show up within the imagelayer div.

Thanks again for a great plugin!

Reply

June 20, 2007 at 5:46pm

Hi Keith,

If the plugin code isn’t being turned on it sounds like the cookie isn’t being set somehow. Maybe you have IE set up to reject cookies?
The cookie length and css of the div layer can be adjusted in the plugin source code, we left it fairly generic so users could adjust it. If you can’t edit this yourself send me an email with your requirements and I will edit it for you. Smile

Reply

Keith
June 21, 2007 at 5:12pm

Hi Patrick,

You’re right about IE rejecting the cookie. The privacy setting was set to Medium. When I lowered the privacy setting the plugin worked.

Thank you for offering to edit the css and cookie length, but I was able to figure it out. There is one more thing I’d like to do. Is there any way to add the post title within a title attribute in the href tag?

Reply

June 22, 2007 at 5:05am

You would need to use the WordPress post title function and add this to a title tag in the link.

The link is right at the bottom of the script.Smile

Reply

June 22, 2007 at 9:30am

This is a very helpful plugin. Thanks for providing it Patrick and thanks for the invitation to great blog. I will definitely be visiting more often.

Reply

Keith
June 22, 2007 at 10:04am

The WordPress post title function worked.Smile

Thanks again for a great plugin Patrick!

Reply

June 28, 2007 at 12:01pm

Hi. Nice plugin. But no matter I right click on any images, it always point to same image. You can try to right click on your feed image, you will get what I meant Smile

Reply

July 4, 2007 at 7:07pm

Excellent plugin. I’m impressed.

We are using it on our cake site (http://blog.pinkcakebox.com)- people are hotlinking often without linking back.

I did notice that the imagelayer div shows up at the top of the post, which isn’t always ideal. Ideally the div would show up directly above the image or as a popup. ..something to think about

Reply

July 4, 2007 at 7:25pm

One more comment. I noticed that this plugin will always default to the first image in a post.

This becomes problematic in posts with multiple images. Also, in my case, yahoo image search loves to link to my main site, rather then individual posts, so this plugin does not work well in that case.

In any case, still a useful plugin.

Reply

July 12, 2007 at 3:59pm

Doesnt work together with plugin:
wp-table from http://alexrabe.boelinger.com/
Would be nice to use it.

Reply

July 17, 2007 at 2:43am

Is there going to be a version for non-Wordpress sites? Smile

Reply

July 17, 2007 at 5:53am

There already is.

Reply

Tong
July 18, 2007 at 3:25am

Can you make it work for multiple images?

Reply

Tong
July 18, 2007 at 3:26am

Anyone else find it hilarious that this plugin hotlinks?

http://www.mad4mobilephones.com/images/close.gif

Reply

MLS
July 24, 2007 at 3:39pm

Great plugin. Unfortunately, I had to stop using it when I noticed it’s not compatible with another great plugin, Post Teaser.

If I enable the hotlink plugin, the post teaser plugin stops trimming the posts.

If you can find a work around, would be great !

Reply

August 21, 2007 at 6:34am

I’m also having an issue with it only letting you use the first image in a page. I’m going to have to uninstall it if this isn’t fixed.

Reply

September 3, 2007 at 2:26pm

First, thanks for the script.
How can i activate it for all visitor?

Reply

October 21, 2007 at 3:52pm

Hi bendust – I’ve just been corresponding with Patrick about that. I have modified his plugin to do exactly that as I needed it for one of our blogs:

modified image hotlink builder wordpress plugin

Reply

Dag
October 29, 2007 at 7:40pm

If you have 1 image in every post of 10 posts on the page and the user right clicks on the say 4th post image the box will show up in the top of the first post with a image on the page with the first posts image details not the details for the image they had clicked on. Any Fix for this?

Reply

October 30, 2007 at 10:58am

Interesting idea but works fine on my home page. However, it breaks any single page post. The text around the first image as well as the first image end up at the very top above the header and menu bar! Then the rest of the content follows. Very strange. Any thoughts?

Reply

Alex
November 25, 2007 at 2:15pm

This would be such a great plugin, if only the bugs would be fixed !

This plugin does not work with the post excerpts plugin, causing full pages to be shown on the homepage, etc. This is a huge problem for me, and I’m sure lots of other people.

Think this can be looked at and fixed?

Reply

Enrico
November 3, 2008 at 7:43am

HI Patrick,

I’ve followed all the instructions but it looks that the plugin not works for me.

I right click on the images on my blog and i can’t see the hotlink.

Please can You help me?

Thx

Reply

December 28, 2008 at 6:43pm

Excellent idea. Unfortunately, the plugin is a little buggy. If there’s ever an update, I’ll gladly use it.

Reply

February 5, 2009 at 5:24am

I agree. I installed the updated (for WordPress) version. I search google for ”
yourcustomblog“, find an image (below) and right–click produces no result.

ALSO — incompatible with Next-Gen gallery.

Good try — back to the drawing board.

I say everyone here chip in $5 $10 $20 to encourage him to fix it.

OR

the money goes to whoever gets a new working version first?

i can’t code that well in PHP yet…but i am down to contribute and participate.

what do you think?

http://yourcustomblog.com/wp-content/uploads/ycb-sm2.png

from (URL of page):

http://images.google.com/imgres?imgurl=http://yourcustomblog.com/wp-content/uploads/ycb-sm2.png&imgrefurl=http://shawnnichols.com/home/&usg=__jRP_v8n3w3ZJFHoWRf-4W1hkkHM=&h=306&w=175&sz=49&hl=en&start=10&um=1&tbnid=Qr3MGXMQIUnd_M:&tbnh=117&tbnw=67&prev=/images%3Fq%3Dyourcustomblog%26um%3D1%26hl%3Den%26client%3Dfirefox-a%26rls%3Dorg.mozilla:en-US:official%26sa%3DN

(original search):

http://images.google.com/images?q=yourcustomblog&oe=utf-8&rls=org.mozilla:en-US:official&client=firefox-a&hl=en&um=1&ie=UTF-8&sa=N&tab=wi

Reply

June 23, 2010 at 1:47pm

thank you so much, But i have doubt , how can i add my images to google images.

Reply

September 22, 2010 at 9:13am

I’ve developed google images insert plugin for wordpress. You can check out the video http://www.youtube.com/watch?v=t4hUHPVh4fs or contact me at http://spletnisistemi.si.

Reply

August 20, 2011 at 12:18am

excelent plugin brother, thanks your share for this

Reply

1 trackbacks

Leave a comment

Your email address will not be published. Fields marked with an asterisk are required.
 

  *

  *

You can use one of the following tags:
<a href=""><blockquote><code><em><strike><strong>