WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Transparent Secured Images

Secure your images with a transparent picture (CSS3 compatible browser required!)

  1. Upload all files to a directory of your choice (it has to be available through your domain)

  2. Copy the following code into your theme header before "" (use the editor of WordPress for this)

$(document).ready(function () { if($.support.cssProperty('backgroundSize')) { $('#content img').each(function() { var temp = $(this); var width = temp.width(); var height = temp.height(); var src = temp.attr('src'); var id = temp.attr('alt').replace(/\s/g, ''); temp.wrap(''); $(this).parent().css('backgroundImage', 'url("' + src + '")'); $(this).parent().css('backgroundSize', '100%'); temp.attr('src', '[TRANSPARENCY.PNG]'); $('div#' + id + ' img').replaceWith(temp); }); } });
  1. Replace "[TRANSPARENCY.PNG]" in the above code with the url to the transparency.png file

  2. Replace "[ADDON.JS]" in the above code with the url to your addon.js file

  3. Enjoy your secured pictures

Requires: 3.0 or higher
Compatible up to: 3.3.2
Last Updated: 2011-12-17
Active Installs: Less than 10

Ratings

1 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
0,1,0