=== Auto Thickbox Plus === Contributors: attosoft Donate link: http://attosoft.info/blog/en/donate/ Tags: lightbox, thickbox, shadowbox, gallery, semiologic, image, images, thumbnail, thumbnails, popup, pop-up, overlay, photo, photos, picture, pictures, javascript, simple Requires at least: 2.8 Tested up to: 3.3.1 Stable tag: 0.6 Overlays linked image, inline, iFrame and AJAX content on the page in simple & fast effects. (improved version of Auto Thickbox plugin) == Description == Auto Thickbox Plus plugin is the improved version of [Auto Thickbox](http://wordpress.org/extend/plugins/auto-thickbox/) plugin, with some extra features. Clicking on image/text links to images etc, this plugin overlays linked content on the page in simple & fast effects. It's recommended if you want to pop up thumbnails easily in its original size. = Basic Features = * Automatically applies [ThickBox script](http://jquery.com/demo/thickbox/) to thumbnail images * All you do is upload images to WordPress Gallery or write image links to images (``) * Pop-up effects are simple & fast compared to [Lightbox and derivative scripts](http://planetozh.com/projects/lightbox-clones/) (no animation effects, no fancy design) * Uses WordPress' built-in ThickBox library (no need to install the script and refer to it separately) = Extra Features = * By default, overlays images in not "Gallery Images" but "**Single Image**" style * By default, automatically also applies ThickBox to **text links** to images (`text`) * By default, loads optimized (compressed & tweaked) alternative resources * Auto Thickbox Plus Options in 'Settings' menu (you can customize the behavior & design of the plugin) * Supports BMP and [WebP](http://code.google.com/speed/webp/) image formats * Supports inline content on the page (#TB_inline) * Supports AJAX content (displays internal files on the page without iframe) * Supports Twenty Eleven theme (default theme in WordPress 3.2/3.3) * Supports more translations in addition to Hindi and Irish * Czech, Dutch, French, German, Japanese, Portuguese and Romanian * And fixed several major/minor bugs in original plugin and thickbox.js \* Note: Auto Thickbox Plus plugin is besed on Auto Thickbox v.2.0.3 (Jul 20th, 2011). = How to Install = See [Installation](installation/). = How to Use = See [Usage in Other Notes](other_notes/). = Supported Locales = * Czech (cs_CZ) * Dutch (nl_NL) - [Michel Bats](http://www.batssoft.nl/) * French (fr_FR) * German (de_DE) * Hindi (hi_IN) * Irish (ga_IR) * Japanese (ja) * Portuguese (pt_BR) * Romanian (ro_RO) = Links = * [attosoft.info](http://attosoft.info/en/) \[[Japanese](http://attosoft.info/)\] * [Auto Thickbox Plus Plugin Official Site](http://attosoft.info/blog/en/auto-thickbox-plus/) \[[Japanese](http://attosoft.info/blog/auto-thickbox-plus/)\] * [Auto Thickbox Plugin](http://www.semiologic.com/software/auto-thickbox/) (Original) == Installation == = Auto Install = 1. Access Dashboard screen in WordPress 1. Select [Plugins] - [Add New] 1. Input "thickbox" into text field, and click [Search Plugins] 1. Click 'Install Now' at 'Auto Thickbox Plus' 1. Click 'Activate Plugin' 1. Upload images to WordPress Gallery or write links to images, inline, iFrame or AJAX contents = Manual Install = 1. Download [auto-thickbox-plus.zip](http://downloads.wordpress.org/plugin/auto-thickbox-plus.zip) 1. Access Dashboard screen in WordPress 1. Select [Plugins] - [Add New] - 'Upload' tab 1. Upload the plugin zip file, and click [Install Now] 1. Click 'Activate Plugin' 1. Upload images to WordPress Gallery or write links to images, inline, iFrame or AJAX contents = Manual Install via FTP = 1. Download [auto-thickbox-plus.zip](http://downloads.wordpress.org/plugin/auto-thickbox-plus.zip), and unzip it 1. Upload the plugin folder to the `/wp-content/plugins/` directory 1. Activate the plugin through the 'Plugins' menu in WordPress 1. Upload images to WordPress Gallery or write links to images, inline, iFrame or AJAX contents \* Note: If Auto Thickbox (without Plus) plugin is installed, you need to deactivate or uninstall it before activating Auto Thickbox Plus plugin. You cannot activate this plugin and the original plugin at the same time. = Customization = This is available options at Auto Thickbox Plus Options. You can customize the behavior & design of Auto Thickbox Plus plugin through these options. See also [Screenshots](../screenshots/). * General * Default Display Style (Single Image or Gallery Images) * ThickBox on Text Links (Auto or Manual) * ThickBox Resources (JS, CSS) * View * Font Family & Weight * Text Color * Background Color * Border * Border Raidus * Opacity * Box Shadow * Text Shadow == Frequently Asked Questions == = How to access Auto Thickbox Plus Options? = 1. Access Dashboard screen in WordPress 1. Click [Settings] - [Auto Thickbox Plus] in sidebar = I want to overlay images in "Gallery Images" style by default = 1. Access Auto Thickbox Plus Options page 1. Select [Gallery Images] button in [Default Display Style] 1. Click [Save Changes] button = I want to disable ThickBox on text links by default = 1. Access Auto Thickbox Plus Options page 1. Select [Manual] button in [ThickBox on Text Links] 1. Click [Save Changes] button = I want to use original ThickBox resources (JS, CSS) = 1. Access Auto Thickbox Plus Options page 1. Uncheck [Loads optimized (compressed & tweaked) alternative resources (thickbox.js, thickbox.css)] checkbox in [ThickBox Resources (JS, CSS)] 1. Click [Save Changes] button = How to pop up WebP image in Google Chrome or Opera? = If you use optimized resources, you do not need to do anything. If you use original ThickBox resources, execute the following steps. 1. Open `/wp-includes/js/thickbox/thickbox.js` file 1. Jump to line 72, and modify as follows - var urlString = /\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/; + var urlString = /\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$|\.webp$/; 1. Jump to line 75, and modify as follows - if(urlType == ... == '.bmp'){//code to show images + if(urlType == ... == '.bmp' || urlType == '.webp'){//code to show images 1. Save the file == Screenshots == 1. Pop-up image in "Single Image" style 1. Pop-up image in "Gallery Images" style (with Prev/Next links) 1. Auto Thickbox Plus Options page 1. Customization example (pink background, transparent window, rounded corners, no borders, bold font, etc.) == Changelog == = 0.6 = * Add 'View' options to Auto Thickbox Plus Options * Font Family & Weight * Text Color * Background Color * Border * Border Radius * Opacity * Box Shadow * Text Shadow * Place 'Reset' button to Auto Thickbox Plus Options * Switch padding-bottom of ThickBox window depending on Single/Gallery style * Fixed: Auto Thickbox corrupts links with custom data-* attributes (original bug) * Fixed: Image is not displayed in the exact center of ThickBox window (thickbox.js bug) * Add Dutch (nl_NL) translations, props Michel Bats * Add 'Support', 'Donate' links to 'Plugins' page * Update readme.txt with major changes * Usage, Installation, Screenshots, Customization and so on = 0.5 = * Supports AJAX content (displays internal files on the page without iframe) * Fixed bugs in Auto Thickbox plugin (original) and ThickBox script (thickbox.js) * Supports Twenty Eleven theme * Fixed a bug in ThickBox style sheet (thickbox.css) * Improved URL string generated by "Full iFrame support" in Auto Thickbox plugin (original) = 0.4 = * Supports inline content on the page (#TB_inline) * Fixed a bug in Auto Thickbox plugin (original) * Supports URL has '?' parameter such as default permalinks and post/page preview * e.g. `http://blog.example.com/?p=123&preview=true` * Fixed a bug in ThickBox script (thickbox.js) = 0.3 = * Add optimized (compressed & tweaked) resources (thickbox.js, thickbox.css) * The file size is reduced by about 25% * Supports BMP and WebP image formats (now no need to tweak original thickbox.js) * Rounds corners and shrinks padding-bottom of pop-up window * Delete additional CSS file (auto-thickbox.css) * Replace additional CSS load option with optimized resources load option = 0.2 = * Add additional CSS file (auto-thickbox.css), and CSS load option (see [FAQ](../faq/)) * Supports BMP and [WebP](http://code.google.com/speed/webp/) image formats * Note: To pop up WebP image requires to tweak thickbox.js (see [FAQ](../faq/)) * Add plugin links on the 'Plugins' page (Show Details, Settings, Contact Me) * Include screenshot images in release zip (see [Screenshots](../screenshots/)) = 0.1 = * Initial release (based on Auto Thickbox v.2.0.3) * By default, overlays images in not "Gallery Images" but "**Single Image**" style * By default, automatically also applies ThickBox to **text links** to images (text enclosed with link tag) * Add Auto Thickbox Plus Options in 'Settings' menu * Default Display Style (Single Image or Gallery Images) * ThickBox on Text Links (Auto or Manual) * Add French, Japanese and Romanian translations * Add missing MO files of Czech, German and Portuguese == Usage == = WordPress Gallery = Upload images to WordPress Gallery through the 'Post/Page' screen, then write [Gallery Shortcode](http://codex.wordpress.org/Gallery_Shortcode) with `link="file"` option. [gallery link="file"] = Single Image = Write image links to images. Image caption is specified by `img@alt` (`foo`). foo Or write text links to images. Image caption is specified by `a@title` (``). Text = Gallery Images = To display images in "Gallery Images" style, add arbitrary value to `a@rel` (``). image1 image2 = No ThickBox = To disable ThickBox on specific images, add "nothickbox" to `a@class` (``). Anchor (image or text) = Inline Content = 1. Write inline content with `@id` (e.g. `
...
`) * Inline content can be set to hide (e.g. `
`) 1. Write links and add "thickbox" to `a@class` (``) * Window title is specified by `a@title` (``) 1. Set `#TB_inline` to `a@href` (``) 1. Add `inlineId` parameter to `a@href` (``) Anchor \* You can set `width`, `height` and `modal` parameters if needed. For details, see [Inline Content Examples](http://jquery.com/demo/thickbox/#container-4). = iFramed Content = Writing links to external URLs and add "thickbox" to `a@class` (``), URLs are opened inside `