WP Thickbox Integration

This Wordpress plugin integrate easily Thickbox into your front-end blogs.

The  “thickbox” class name is included into your image tag without touching the html. You can select an option “Open in the same window” on the Edit Image Panel.

You can include the Thickbox parameters to the URL on the Link Url field like this example to open an iframe:
Link Url: http://web-argument.com/?KeepThis=true&TB_iframe=true&height=400&width=600

Wordpress Galleries are automatically set for use Thickbox, so you just need to insert the “gallery” into your post and the “class” name and “rel” tag will be included.

The plugin uses the wordpress back-end “jquery” and “thickbox” javascript files to maximaze themes and plugins compatibilities.

Download the plugin here.

Wp Thickbox Integration

Support our project, leave your comments or make a donation.

February 7th, 2009  | Tags: , , , , ,
  1. EJ
    October 19th, 2009 at 01:10
    Reply | Quote | #1

    hey there- can anyone let me know why the ‘close’ button isn’t showing up in my thickbox setup? this is a test page, but to see what i mean just click on one of the thumbnails within the post…

    http://ej.reifier.org/newsite/?p=50

  2. September 29th, 2009 at 07:00
    Reply | Quote | #2

    We can do thickbox without a plugin in wordpress. Only 3 steps
    http://www.myhtmlworld.com/wordpress/create-thickbox-wordpress.html.

  3. August 21st, 2009 at 23:14
    Reply | Quote | #3

    Found a better kludge. Still have tocomment out lines 8 and 9 in thickbox.js but instead of modifying the header.php and admin-header.php files just add the following code the the function add_tickbox_integration_css()

    $tpi_header = “\n<!– Default Thickbox Paths –>\n”;
    $tpi_header .= “<script type=\”text/javascript\”>\n”;
    $tpi_header .= “\t var tb_pathToImage=\”".”../wp-includes/js/thickbox/loadingAnimation.gif\”;\n”;
    $tpi_header .= “\t var tb_closeImage=\”".”../wp-includes/js/thickbox/tb-close.png\”;\n”;
    $tpi_header .= “</script>\n”;
    echo $tpi_header;

    This seems to allow the plugin to work with wordpress 2.8.4 when creating a gallery.

  4. August 21st, 2009 at 20:43
    Reply | Quote | #4

    I am using wordpress 2.8.4 and version 1.0.1 of your plugin and ran into a serious problem trying to use your plugin. Basically the redefinition of the variables tb_pathToImage and tb_closeImage by thickbox_path_int() was being ignored by the wordpress thickbox code. Commenting out lines 8 and 9 in thickbox.js made the plugin work for a gallery but broke the admin use of thickbox. Don’t know why this happens as it looks like it shoild work! Perhaps you have some ideas.

    I used the following kludge to fix it for my purposes:

    1. Comment out lines 8 and 9 in thickbox.js
    2. Add the following code to the head section of the header.php and admin-header.php files:
    <?php
    $tpi_header = “\n\n”;
    $tpi_header .= “\n”;
    $tpi_header .= “\t var tb_pathToImage=\”".”../wp-includes/js/thickbox/loadingAnimation.gif\”;\n”;
    $tpi_header .= “\t var tb_closeImage=\”".”../wp-includes/js/thickbox/tb-close.png\”;\n”;
    $tpi_header .= “\n”;
    echo $tpi_header;
    ?>

    This seems to allow the plugin to work in both the admin section (but I’ve only done limited testing) and the public section.

  5. July 28th, 2009 at 16:30
    Reply | Quote | #5

    cool, but this plugin not integration url in image

  6. July 25th, 2009 at 04:05
    Reply | Quote | #6

    Does this work on Wordpress 2.8.2?

  7. alain
    March 11th, 2009 at 01:55
    Reply | Quote | #7

    @Klark
    The plugin use the same jquery file that wordpress do. This is the function that add it “wp_enqueue_script(’jquery’)”.

  8. Klark
    March 10th, 2009 at 14:45
    Reply | Quote | #8

    Hi, I’m already including jQuery in my pages. Your plugin also includes an older version of jQuery. Is there a way to disable that?

  9. March 9th, 2009 at 13:14
    Reply | Quote | #9

    Two things:
    1. When I use your plugin with WP-Cumulus (Flash based Tag Cloud), your pictures are below/under the tag-cloud, which doesn’t look very nice. How can I fix this?

    2. How can I add only one picture which is like a gallery (you can click then within the layer for the next pictures -> as it is on this site here above!) I don’t want nine pictures, I want only one instead to show. See: http://www.juiced.de/blog/2009/03/07/website-relaunch-02-contact-domain-more/ (Unnecessary, but I don’t know how to use your plugin to solve this)

  10. Alain
    March 5th, 2009 at 17:27

    @Claudiu
    Can you include a link, please?

  11. Claudiu
    March 5th, 2009 at 16:57

    how about using this plugin for text?
    I tried to implement it but without succes. I tried to make a combination using the plugin and a step by step tutorial for normal website and…I managed to make it open the window, but without the text.

    Solution for this?

  12. alain
    February 14th, 2009 at 18:43

    @Tom
    Fixed in the new version 1.0.1, just update it.

  13. alain
    February 13th, 2009 at 02:57

    @Tom
    Thank you for your comments. You’r right!!!
    To fix this I think it’s better to override the values of “tb_pathToImage” and “tb_closeImage” in the plugin instead of edit the lines 8 and 9 of the /wp-includes/js/thickbox/thickbox.js file.

    I will try something like this to update the plugin:

    var tb_pathToImage = “< ?php bloginfo('url'); ?>/wp-includes/js/thickbox/loadingAnimation.gif”;

    var tb_pathToImage = “< ?php bloginfo('url'); ?>/wp-includes/js/thickbox/tb-close.png”;

    Regards,
    Alain

  14. Tom
    February 12th, 2009 at 20:53

    There is an issue with the path to /wp-includes/js/thickbox/tb-close.png where my custom permalink structure (/%category%/%postname%/) is causing it to break. i.e. /furniture/wp-includes/js/thickbox/tb-close.png is the path to the icon after the page is rendered.

    The issue can be fixed in /wp-includes/js/thickbox/thickbox.js and removing “..” on lines 8 and 9.

  15. Tom
    February 12th, 2009 at 20:45

    There is an issue with the path to /wp-includes/js/thickbox/tb-close.png where my custom permalink structure (/%category%/%postname%/) is causing it to break. i.e. /furniture/wp-includes/js/thickbox/tb-close.png is the path to the icon after the page is rendered.

  16. February 8th, 2009 at 17:36

    Thanks for this plugin, it randomly came up in my dashboard and this was the improvement that the ‘gallery’ feature really needed (and most other tools were not up-to-date for 2.5+).

TOP