[x] Navigation

[x] Wer ist wo
 Bots:
1: Google > Forum 9.x
2: YANDEX > Downloads
 Visitors:
1: Benutzerbereich
2: Nachrichten
3: Forum 9.x

[x] Languages

[x] Design
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.

[x] Downloads (Top)

thickbox lite
Post new topic   Reply to topic   Printer Friendly Page    Forum Index > > HowTo & Allgemeine Fragen

Author Message
Klas
Moderator


Joined: Apr 14, 2004
Posts: 293

PostPost subject: thickbox lite
Posted: 11.01.2008 15:08
Reply with quote

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) {

_________________
Bitte lies dies bevor du fragst.

Klas's Serverdaten - verwendete Vers. (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website
Klas
Moderator


Joined: Apr 14, 2004
Posts: 293

PostPost subject: Re: thickbox lite
Posted: 11.01.2008 17:19
Reply with quote

www.dragonflycms.org/F...21637.html
_________________
Bitte lies dies bevor du fragst.

Klas's Serverdaten - verwendete Vers. (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page    Forum Index > > HowTo & Allgemeine Fragen
Page 1 of 1
All times are GMT + 1 Hour



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum




Interactive software released under GNU GPL, Code Credits, Privacy Policy