Shadowbox plug-in

Patches LDM to use version 2 of Shadowbox (http://mjijackson.com/) to provide
lightbox hosting of the LDM Jukeboxes and enlarged images

(See end of this file for details of upgrading to version 3 of Shadowbox)

Installation:

- upload the contents of the clientscript directory into your forums clientscript directory, retaining
  the directory structure
- upload the contents of the includes directory into your forums includes directory
- install the plugin in the usual way via vbulletin/admincp
- set the controlling parameters using the LDM admin/settings page

Settings:

Enable Shadowbox Jukebox
   Puts the jukebox inside Shadowbox, using LDM settings *musicbox_standalone_height*
   and *musicbox_standalone_width* to define size of the inner page area in Shadowbox

Audio Filetypes
As usual, these must be defined in the mimetype table and a suitable player configured

Jukebox Template
  Defines the template used to create the Jukebox when displayed in
  Shadowbox (links_play_naked)

Playbit Template
  Defines the template used to create the Playbit when displayed in
  Shadowbox (links_playbit_naked)

Enable Shadowbox Image Magnifier
   Puts the output from the 'magnify image' thumbnail inside Shadowbox instead of
   creating a new window

Image Magnifier Template
  Defines the template used to hold images when displayed in
  Shadowbox (links_imgpage)

Shadowbox Image Page Width/Height
  Define the dimensions of image inner page areas in Shadowbox

Shadowbox Image Border
  Size of top border in pixels in Shadowbox inner frame surrounding images

Background colour for inner Shadowbox window

Caution:

It is not a good idea to install this extra and the (deprecated) LDM *lightbox* extra
at the same time


Includes the 2.0 release of Shadowbox.  This is licensed under CreativeCommons,
free for personal, non-commercial use. You are expected to pay $20 if you
intend to use it on a commercial site.


Using version 3.0 of Shadowbox

Obtain the code from http://mjijackson.com/.  Upload the directory structure
as a subdirectory of clientscript, e.g. shadowbox3, so that shadowbox.css
and shadowbox.js are in that subdirectory.

Edit includes/local_links_shadowbox.php; find function ldm_shadowbox_placescripts
and modify the definition of $ldm_headtag_include as follows.

		$ldm_headtag_include .= "
<link rel='stylesheet' type='text/css' href='clientscript/shadowbox/shadowbox.css'>
<script type='text/javascript' src='clientscript/shadowbox/shadowbox.js'></script>
<script type='text/javascript'>

Shadowbox.init({
    language:   '$shadowbox_language',
    players:    ['html', 'iframe']
});

</script>
		";

That should do the trick.

Tested May 2009