=== 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: trunk 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 thumbnails including WordPress Galleries * All you do is upload images to WordPress Gallery or write image links to images (``) * Pop-up effects are simple & fast compared to Lightbox, ColorBox, FancyBox, Shadowbox, Slimbox and so on * ThickBox will be the answer if you prefer no animation effects & no fancy design * Automatically resizes images that are larger than the browser window * Uses WordPress built-in ThickBox library (no need to install the script and refer to it separately) = Extra Features = * Overlays images in either "Gallery Images" or "**Single Image**" style * Automatically applies ThickBox to **text links** to images (`text`) * **Auto Resize** feature can be disabled if you prefer * ThickBox window can be **moved/resized by dragging** mouse * Can be customized the behavior & design through **more than 40 options** * e.g. Click action can be selected from 'Close', 'None', 'Next' and 'Prev/Next' * 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) * Compatible with **Twenty Eleven** theme (default theme in WordPress 3.2/3.3) * Compatible with cache plugins such as [W3 Total Cache](http://wordpress.org/extend/plugins/w3-total-cache/) and [Head Cleaner](http://wordpress.org/extend/plugins/head-cleaner/) * Uses WordPress translations * Now ThickBox window is localized to **more than 70 languages** (Arabic, Chinese, Dutch, French, German, Hindi, Italy, Japanese, Korean, Polish, Portuguese, Russian, Spanish and more) * And fixed some major/minor bugs in original plugin and thickbox.js/css (See [Changelog](changelog/)) \* 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/). = Special Thanks = * Dutch (nl_NL) translations - [Michel Bats](http://www.batssoft.nl/) = 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) * [ThickBox 3.1](http://jquery.com/demo/thickbox/) (JavaScript Library) == 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 (not 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 in 'Settings' menu. You can customize the behavior & design of the plugin through these options. See also [Screenshots](../screenshots/). * General * Default Display Style (Single Image or Gallery Images) * ThickBox on Text Links (Auto or Manual) * Auto Resize * ThickBox Resources (original thickbox.js/css) * Action * Mouse Click * Mouse Wheel (Scroll) * Drag & Drop * Keyboard Shortcuts * View * Font Family & Weight * Text Color * Background Color * Border * Border Raidus * Opacity * Box Shadow * Text Shadow * Image * Prev/Next, Close, Loading image and so on * Effect (beta) * Open, Close, Transition effects and Speed == Frequently Asked Questions == = Auto ThickBox Plus does not work = ThickBox resources may not have been loaded correctly. Please check the followings. \* If you can send me your blog URL that the plugin does not work, it's easy to debug the problem and find the cause quickly. **Can you see any messages (errors/warnings) in browser console?** * Internet Explorer - Double-click the warning icon in status bar or [Tools] - [Developer Tools] (F12) * Mozilla Firefox: [Firefox/Tools] - [Web Developer] - [Error Console] (Ctrl+Shift+J) * Google Chrome: [Tools] - [JavaScript console] (Ctrl+Shift+J) * Opera: [Opera] - [Page] - [Developer Tools] - [Error Console] (Ctrl+Shift+O) * Safari: [Develop] - [Show Error Console] (Option-Command-C) * Windows: Page Menu Button - [Developer] - [Show Error Console] (Ctrl+Alt+C) * To enable the developer tools, click Advanced in Safari preferences and check "Show Develop menu in menu bar" **Can you see the HTML source codes bellow in your blog?** Inside the `` tag: Before the closing `` tag: And other thickbox `` tags should not be output. **Try to use original ThickBox resources** Access 'Options' page, and check [ThickBox Resources] - [Use WordPress built-in thickbox.js/css] checkbox. If ThickBox works, there are issues in Auto ThickBox Plus. = How to access Auto ThickBox Plus Options = 1. Access Dashboard screen in WordPress 1. Click [Settings] - [Auto ThickBox Plus] in sidebar = [Default Display Style] - [Single Image] or [Gallery Images] option = When [Gallery Images] radio button is selected, this plugin displayes images on the page as a gallery. You can switch the current image on ThickBox window by clicking Prev/Next links. When [Single Image] radio button is selected, this plugin displayes images on the page one by one. You cannot switch the current image on ThickBox window. If you displayes some images as gallery, you need to set `rel="gallery-id"` attribute to `` tag manually as below. image1 image2 = [ThickBox on Text Links] - [Auto] or [Manual] option = When [Auto] radio button is selected, this plugin applies ThickBox to text links to images automatically. When [Manual] radio button is selected, this plugin does not apply ThickBox to text links. So you need to set `class="thickbox"` attribute to `` tag manually as below. Text = How to upload images via Media Uploader = 1. Click [Select a File] button at Image options 1. Drag a image file from your computer and drop to "Drop files here" * or Click [Select Files] button and choose a image file from your computer 1. Click [Insert into Post] button = Can I use original ThickBox resources? = Yes, you can. Access 'Options' page, and check [ThickBox Resources] - [Use WordPress built-in thickbox.js/css] checkbox. \* Note: some extra features will be disabled. For instance, most mouse/keyboard actions, animation effects, disabled Auto Resize, compatibility with cache plugins. And many improvements and bug fixes won't be applied. == 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 == = 1.1 = * Improve Options page UI * Place [Farbtastic Color Picker](http://acko.net/blog/farbtastic-jquery-color-picker-plug-in/) and Color Preview at color options * Place [jQuery UI Slider](http://jqueryui.com/demos/slider/) at Opacity option * Place WordPress Media Uploader at Image options * Add Transparent checkbox to Background Color options, and None checkbox to Border, Box/Text Shadow options * Compatible with cache plugins such as [W3 Total Cache](http://wordpress.org/extend/plugins/w3-total-cache/) and [Head Cleaner](http://wordpress.org/extend/plugins/head-cleaner/) [thickbox.js bug] * Break down auto-thickbox.php into modules (auto-thickbox-options.php, auto-thickbox.js/css) * Update Dutch translations (props Michel Bats) and Japanese translations = 1.0 = * Experimental: Supports animation effects * Open/Close/Transition - Zoom/Slide/Fade/None * Speed - Fast/Normal/Slow or arbitrary value * Improve Options page UI * Uses meta boxes to drag to change order, and click to toggle open/close * Loading image option accepts the URL without scheme and host (i.e. started with '/') * Fix: iFramed content is not shown smoothly in Google Chrome and Safari [thickbox.js bug] * Fix: Jump to current page with double click on image [thickbox.js bug] * Fix: Scroll bar appears and gray overlay shifts when closing in IE6 [thickbox.js bug] * Fix: Shortcut keys with shift key do not work (regression in version 0.9) * Update Dutch translations (props Michel Bats) and Japanese translations = 0.9 = * Supports "Drag & Drop" action. Now ThickBox window can be moved/resized by drag. * Add [Drag & Drop] - [Window (Image/Content)] - [Move/Resize] options * Add "Auto Resize" option. Auto Resize feature can be disabled if you prefer. * Fix: Some bound event handlers does not removed (causes memory leaks) [thickbox.js bug] * Fix: Hide dotted lines around the left/right side of image when click links (for IE6/7) * Minify thickbox.js with [Closure Compiler](https://developers.google.com/closure/compiler/) (reduced about 15% file size) * Optimize global option variables (bring together multiple variables as an object literal) * Update Japanese translations = 0.8 = * Supports more mouse/keyboard actions, and add related options * Mouse Click: Next, Next / Prev (click on the left/right side of image) * Close, None, Loop (click on the first/last image) * Keyboard Shortcuts: Home / End * Add 'Image' options to specify arbitrary images for Prev/Next, Close, Loading, etc. * Set links to CSS Reference (MDN) from View option label * Shrink padding-bottom of ThickBox window when displayed in "Gallery Images" without caption * Fix: Loading image is not displayed in the exact center of browser window [thickbox.css bug] * Uses uncompressed thickbox.js/css when WP_DEBUG is true * Update Japanese translations = 0.7 = * Supports more mouse/keyboard actions, and add 'Action' options to 'Options' page * Mouse Click: Close, None * Mouse Wheel (Scroll): Prev / Next, None * Keyboard Shortcuts: Esc, Enter, < / >, Left / Right, [Shift +] Tab, [Shift +] Space, BackSpace * Uses WordPress translations as much as possible * Now ThickBox window is localized to more than **70 languages** * e.g. Arabic, Chinese, Dutch, French, German, Hindi, Italy, Japanese, Korean, Polish, Portuguese, Russian, Spanish, etc. * Suppresses redundant `