thickbox lite
-> HowTo & Allgemeine Fragen

#1: thickbox lite Autor: Klas BeitragVerfasst am: 11.01.2008 15:08
    ----
Eine einfache Version der ThickBox (lightbox) für das coppermine Modul:

Download from
www.jquery.com/demo/thickbox/
the following:

loadingAnimation.gif
macFFBgHack.png
jquery-latest.pack.js
thickbox-compressed.js
thickbox.css

Edit thickbox.css
find:
Array:
*{padding: 0; margin: 0;}
replace with
Array:
/* *{padding: 0; margin: 0;} */

find:
Array:
.TB_overlayMacFFBGHack {background: url(macFFBgHack.png) repeat;}
replace with
Array:
.TB_overlayMacFFBGHack {background: url(../../../images/macFFBgHack.png) repeat;}


Copy to your server:
loadingAnimation.gif and macFFBgHack.png to images/
jquery-latest.pack.js and thickbox-compressed.js to includes/javascript/
thickbox.css to themes/(yourtheme)/style(

Edit modules/coppermine/displayimage.php (make a backup first!)
find:
Array:
		if (isset($image_size['reduced'])) {
after add:
Array:
			global $modheader,$CPG_SESS;
			$modheader .= '<script type="text/javascript" language="javascript" src="includes/javascript/jquery-latest.pack.js"></script>'."\n"
				.'<script type="text/javascript" language="javascript" src="includes/javascript/thickbox-compressed.js"></script>'."\n"
				.'<link rel="stylesheet" href="themes/'.$CPG_SESS['theme'].'/style/thickbox.css" type="text/css" media="screen" />'."\n";

find:
Array:
				$pic_html = '<a href="'.getlink("&amp;file=displayimagepopup&amp;pid=$pid&amp;fullsize=1",true,true).'" target="' . uniqid(rand()) . "\" onclick=\"imgpop('".getlink("&amp;file=displayimagepopup&amp;pid=$pid&amp;fullsize=1",true,true)."','" . uniqid(rand()) . "','resizable=yes,scrollbars=yes,width=$winsizeX,height=$winsizeY,left=0,top=0');return false\">"; //toolbar=yes,status=yes,
replace with
Array:
				$pic_html = '<a class="thickbox" href="'.get_pic_url($CURRENT_PIC_DATA, 'fullsize').'" target="blank">';

To show smaller images in the ThickBox
find in displayimage.php:
Array:
		if (isset($image_size['reduced'])) {
replace with
Array:
		if (1) {

#2: Re: thickbox lite Autor: Klas BeitragVerfasst am: 11.01.2008 17:19
    ----
www.dragonflycms.org/F...21637.html



-> HowTo & Allgemeine Fragen

Alle Zeitangaben sind in GMT + 1 Stunden

Seite 1 von 1