• Home
  • Blog
  • Contact Us
  • Home
  • Blog
  • Contact Us

Photo Dropper Nofollowed Links

Last Updated: 14 June 2013 By Mike Haydon

Further to my previous post, where I said I’d look into how to “nofollow” links from the WordPress Photo Dropper Plugin…

Open the file wp-content/plugins/photo_dropper/flikr-js.php. Scroll down to the code that looks like:

var licenceHTML = ‘<br /><small><a href=”‘+license_url[1]+'” title=”‘+license_url[0]+'” target=”_blank”><img src=”‘+wppd_dir+’images/cc.png” alt=”Creative Commons License” border=”0″ width=”16″ height=”16″ align=”absmiddle” /></a> <a href=”http://www.photodropper.com/photos/” target=”_blank”>photo</a> credit: <a href=”‘+image_link_url+'” title=”‘+person+'” target=”_blank”>’+person+'</a></small>’;

imgHTML = ‘<a href=”http://www.flickr.com/photos/’ + owner + “/” + id + ‘/” title=”‘ + imagealt + ‘”‘ + ‘ target=”_blank”>’;
imgHTML = imgHTML + ‘<img src=”‘ + imagesrc + ‘” alt=”‘ + imagealt + ‘” border=”0″ /></a>’;
imgHTML = htmlBefore + imgHTML + licenceHTML + htmlAfter;

Wherever you see target=”_blank”, add rel=”nofollow”. Your code will probably look like this:

var licenceHTML = ‘<br /><small><a href=”‘+license_url[1]+'” title=”‘+license_url[0]+'” rel=”nofollow” target=”_blank”><img src=”‘+wppd_dir+’images/cc.png” alt=”Creative Commons License” border=”0″ width=”16″ height=”16″ align=”absmiddle” /></a> <a href=”http://www.photodropper.com/photos/” rel=”nofollow” target=”_blank”>photo</a> credit: <a href=”‘+image_link_url+'” title=”‘+person+'” rel=”nofollow” target=”_blank”>’+person+'</a></small>’;

imgHTML = ‘<a href=”http://www.flickr.com/photos/’ + owner + “/” + id + ‘/” title=”‘ + imagealt + ‘”‘ + ‘ rel=”nofollow” target=”_blank”>’;
imgHTML = imgHTML + ‘<img src=”‘ + imagesrc + ‘” alt=”‘ + imagealt + ‘” border=”0″ /></a>’;
imgHTML = htmlBefore + imgHTML + licenceHTML + htmlAfter;

Save the file (ftp if applicable) and you’re done.

Filed Under: Wordpress
Originally Posted: 27 April 2008

Comments

  1. USHUA says

    24 October 2011 at 4:50 am

    HI, DOES NOT WORK, DO YOU HAVE ANY IDEA BY WHY??
    THKS

    Reply
  2. Mike Haydon says

    24 October 2011 at 4:31 pm

    It seems the developer stopped supporting it. This post was from April 2008. The last version of Photo Dropper was from September 2008 – http://www.photodropper.com/wordpress-plugin/ – before the massive changes brought in by WordPress 3.0.

    You might want to watch the tutorial here for a more recent look at it: http://www.icebluebanana.com/photo-dropper-and-flikr/

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Web Design

marketing banner

Want to learn how to build your own websites? Check out the course we jointly developed here.

Recent Posts

  • Moving Wordpress Without Plugins
  • Redirection Problem When Installing Wordpress
  • Edit The Default Wordpress RSS Widget
  • Best Wordpress Spam Filtering Plugin
  • Optimize Your Wordpress Site For Mobile
  • Wordpress Delete Post Revisions
  • Add Twitter Follower Count To A Wordpress Page

How Can We Help You?

  • Website Design Service
  • Google Penalty Recovery Service
  • Search Engine Optimization Service

Categories

  • Online Marketing
  • SEO
  • Social Media
  • Website Design
  • Wordpress

At A Glance

  • Ranking
  • Website Design
  • WordPress
  • Social Media
  • Contact
  • Google Penalties
  • Earnings Disclosure
  • Privacy Policy

Contact Us

Local SEO Perth

Contact Us Here

Copyright © 2023