Title: Always Valid Lightbox
Author: Joffrey Quillet
Published: <strong>2012 年 8 月 7 日</strong>
Last modified: 2012 年 8 月 24 日

---

搜尋外掛

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

![](https://s.w.org/plugins/geopattern-icon/always-valid-lightbox.svg)

# Always Valid Lightbox

 由 [Joffrey Quillet](https://profiles.wordpress.org/jaykyuu/) 開發

[下載](https://downloads.wordpress.org/plugin/always-valid-lightbox.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/always-valid-lightbox/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/always-valid-lightbox/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/always-valid-lightbox/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/always-valid-lightbox/#developers)

 [技術支援](https://wordpress.org/support/plugin/always-valid-lightbox/)

## 外掛說明

Always Valid Lightbox is a Lightbox plugin which can automatically add the HTML 
attributes needed to trigger the effect on content image links, so that
 the user
never has to add a class or an attribute to his content images in order to make 
the lightbox work.

Also, AVL allows the user to chose the attributes he wants inserted on his image
links, depending on the Doctype declaration used in the website header.php template.

This way, the lightbox never generates markup validation errors at the W3C Validator
test.

The jQuery lightbox effect is an adaptation based on David Ryan’s jQuery lightbox
tutorial : http://dryan.com/articles/jquery-lightbox-tutorial/

## 安裝方式

 1. Unzip the plugin and upload the ‘always-valid-lightbox’ directory to your `/wp-
    content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Configure the plugin in the Always Valid Lightbox configuration section of your
    administration panel.

## 常見問題集

  I do not understand the plugin configuration page

Here’s an explanation for each option :

“Automatically include the jQuery library in your HTML document” : Always Valid 
Lightbox needs the jQuery library to work. If the jQuery script is already embedded
in the section of your documents, or if one of the plugins you’re using automatically
includes the jQuery library, you should check the “No” button. However, if there
is no active instance of jQuery running on the front-end part of your website, you
should check “Yes” in order for the plugin to work.

“Automatically detect the image links in your posts and apply the lightbox attribute
to them” : “Yes” allows the plugin to work in automatic mode. This means the plugin
will automatically detect your images and trigger the lightbox effect when you click
on them. If you choose “No”, you will have to manually edit your site contents and
mark all the links which should trigger a lightbox effect with the ‘data-lightbox
=”true”‘ or the ‘rel=”lightbox”‘ attributes.

“If you chose yes, select which attribute should be inserted in your code (choose
accordingly with your doctype declaration)” : only available if you chose ‘Yes’ 
to the previous option. It allows you to choose the kind of markup the plugin will
automatically insert in your page to trigger the lightbox effect. No matter what
choice you make, the lightbox will work. However, the W3C validity of your page 
will depend on it, so you should choose your markup in accordance with the DOCTYPE
declaration found in your site header.

“Lightbox skin” : choose the appearance of your lightbox effect

For more information about HTML validation and Doctypes, please consult the following
page : http://validator.w3.org/docs/help.html#validation_basics

  How do I display an image title under my lightbox images ?

The lightbox effect automatically takes the HTML “title” attribute on your images
in order to display image titles. So when uploading your images in your WordPress
posts, do not forget to fill the “Title” field.

## 使用者評論

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

## 參與者及開發者

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

參與者

 *   [ Joffrey Quillet ](https://profiles.wordpress.org/jaykyuu/)

[將〈Always Valid Lightbox〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/always-valid-lightbox)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/always-valid-lightbox/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/always-valid-lightbox/)，或透過
[RSS](https://plugins.trac.wordpress.org/log/always-valid-lightbox/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/always-valid-lightbox/)。

## 變更記錄

#### 1.1.3

 * CSS modifications for better caption readability

#### 1.1.2

 * Replaced all “$” signs by “jQuery” in the “lightbox.js” file in order to avoid
   conflicts
 * Added skins preview on the configuration page
 * Added “title” attribute support

#### 1.1.1

 * Added jpeg to the recognized image types
 * Changed the version of jQuery included to 1.7.2 minified

#### 1.1

 * Added skin selection in the admin panel
 * New CSS style : black
 * Fixed jQuery bug in the admin
 * Fixed AJAX loader image bug

#### 1.0

 * Automatic image links detection and automatic addition of the necessary markup
 * 2 different kinds of markups can be added to the page
 * 1 skin available
 * Plugin text is internationalized (all strings can be extracted and localized)

## 中繼資料

 *  版本 **v1.1.3**
 *  最後更新 **14 年前**
 *  啟用安裝數 **60+**
 *  WordPress 版本需求 ** 3.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.4.2**
 *  語言
 * [English (US)](https://wordpress.org/plugins/always-valid-lightbox/)
 * 標籤
 * [lightbox](https://tw.wordpress.org/plugins/tags/lightbox/)[shadowbox](https://tw.wordpress.org/plugins/tags/shadowbox/)
 *  [進階檢視](https://tw.wordpress.org/plugins/always-valid-lightbox/advanced/)

## 評分

 4.5 星，滿分為 5 星

 *  [  1 個 5 星使用者評論     ](https://wordpress.org/support/plugin/always-valid-lightbox/reviews/?filter=5)
 *  [  1 個 4 星使用者評論     ](https://wordpress.org/support/plugin/always-valid-lightbox/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/always-valid-lightbox/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/always-valid-lightbox/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/always-valid-lightbox/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/always-valid-lightbox/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/always-valid-lightbox/reviews/)

## 參與者

 *   [ Joffrey Quillet ](https://profiles.wordpress.org/jaykyuu/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/always-valid-lightbox/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](http://www.joffrey-quillet.fr/)