Welcome Guest. Please login or register.
    
Login with username and password.
Friday, May 18, 2012 (17:58:47)
Toggle Content
Please Vote!
TERRA-Dreams - Toplist - Die besten Terragenseiten!

Select

Languages
English Deutsch

My favorites:

Forum › Support › DragonflyCMS › thickbox lite
thickbox lite

Post new topic   Reply to topic   Printer Friendly Page    Forum Index DragonflyCMS

View previous topic :: View next topic  
Author Message
Klas



Joined: May 29, 2003
Posts: 110
Location: Oldenburg

PostPosted: Sun Nov 01, 2009 12:37 pm    Post subject: thickbox lite 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:
Code::
*{padding: 0; margin: 0;}
replace with
Code::
/* *{padding: 0; margin: 0;} */

find:
Code::
.TB_overlayMacFFBGHack {background: url(macFFBgHack.png) repeat;}
replace with
Code::
.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:
Code::
		if (isset($image_size['reduced'])) {
after add:
Code::
			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:
Code::
				$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
Code::
				$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:
Code::
		if (isset($image_size['reduced'])) {
replace with
Code::
		if (1) {

_________________
Klas
Back to top
View user's profile Send e-mail Visit poster's website Photo Gallery
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page    Forum Index DragonflyCMS
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