這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Basic Protected Lightbox

外掛說明

This plugin provides a very lightweight, minimalist, jQuery-based lightbox for displaying full-screen versions of the images from WordPress galleries. It also gives some basic copy protection that should foil relatively unmotivated image thieves by inserting a transparent overlay over the lightbox and all gallery thumbnails. This will prevent people from copying images in your galleries via right-click or drag-and-drop. It’s not a true preventative measure, in that someone who really wants to download copies of your images will most likely find a different way, but it is a little more secure than linking directly to the full resolution versions. Image copying is pretty much impossible to fully prevent aside from just not publishing your work in the first place; my goal with this plugin is to find a good middle ground.

Want to see it in action? Check out the photos page on my personal website for a live demo.

Features

  • Minimalist and lightweight: the 3 public-facing files are only about 8KB total
  • Mobile-friendly with swipe gesture support
  • Prevents some common image download methods with a transparent overlay
  • Works immediately and seamlessly with the WordPress default gallery block

螢幕擷圖

  • This plugin in action on my personal website.

安裝方式

Install the plugin through the WordPress plugins repository or upload the plugin files to your /wp-content/plugins/basic-protected-lightbox directory. Then activate the plugin and you’re good to go! It will automatically include the JavaScript and CSS files in your site’s header and activate whenever it’s on a page with at least one WordPress gallery block.

常見問題集

Why should I use this plugin?

If you want to display your portfolio of images on your website, but you want a little bit of protection from visitors to your site downloading copies of your images and reusing them, this plugin might be for you!

Will this work with gallery plugin X?

This lightbox has been tested with WordPress’s built-in gallery block. If you’re using a gallery plugin that generates the same markup structure, it should work just fine, but I can’t guarantee compatibility with every gallery plugin. It can’t hurt to try though! If you run into issues, please do reach out via the support forum for the plugin.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Basic Protected Lightbox〉的開發相關工作。

參與者

將〈Basic Protected Lightbox〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.1

Added keyboard controls and logic to hide the left/right buttons if they aren’t needed.

1.0

Initial release.