Table of Contents

Already using Thickbox?

If you are already using Thickbox you must decide which version to use: the version you have already installed or the version that came with TalkBack. The Thickbox css included with TalkBack has been slightly modified to improve the appearance of the ThickBox window.

If you want to use the version you have already installed, edit head-inc.php and remove or comment out the Thickbox code:

<script type='text/javascript' src='".TB_PATH."includes/jquery-c.js'></script>
<script type='text/javascript' src='".TB_PATH."includes/thickbox.js'></script>
<link rel='stylesheet' type='text/css' href='".TB_PATH."styleThickbox.css' />

If you want to use the version that came with TalkBack, change the paths in your HTML to point to the TalkBack versions of the CSS and javascript.

Using a different lightbox?

If you are using a different lightbox implementation (Greybox, Lightbox JS, etc.), it may not coexist peacefully with ThickBox. Do a test to find out.

Edit test.php. Add the HTML for your lightbox to the head section above the line:

<?php include "head-inc.php"; ?>

In the body of the page, before the TalkBack comments.php include, enter your lightbox HTML for an image link. Browse to test.php and see if your image link works. If it does, use the “image” button to enter an image link into a comment. Does it work? If so, do the help buttons work? If your existing lightbox works and Thickbox works then you are in good shape.

If one or the other doesn’t work, move the HTML for your lightbox to below the head-inc.php line in the head section. If it still doesn't work you must decide either to switch to ThickBox entirely for your website or disable ThickBox in TalkBack.

To disable ThickBox in TalkBack, comment out the head-inc.php lines as described in “Already using Thickbox” above.

Already using a Javascript library?

ThickBox uses the Jquery library. If you are using a different library, e.g. Prototype JS, for other applications the two libraries may conflict if used on the same page. Do some tests to find out. If they don’t work together and you want to have comments on a page that uses the other library, you will have to disable Thickbox as described in “Already using Thickbox” above.

s