i have install the script on my test page.
i can upload the images on the admin site to my page, i see the images, but lightbox doesn' work
www.aktuelles-online.net/test.php
<?
/*
######################### MyGallery 1.7.2 ###########################
### |-----------------------------------------------------------| ###
### | COPYRIGHT 2004 by Lukas Stalder, planetluc.com | ###
### | DO NOT REDISTRIBUTE OR RESELL THIS SCRIPT | ###
### | ANY WAYS WITHOUT MY EXPLICIT PERMISSION! | ###
### | For support use support@planetluc.com but | ###
### | please read README.txt for installation first! | ###
### | Or visit the board at www.planetluc.com | ###
### |-----------------------------------------------------------| ###
#####################################################################
*/
// ****************************** CONFIG ******************************
// ********************************************************************
// error reporting
error_reporting(0);
// login for admin
$mgConf['adminlogin'] = "admin";
// password for admin
$mgConf['adminpwd'] = "admin";
// time in seconds until admin has to relogin
$mgConf['adminexpire'] = 60*20;
// whether to have slideshow or not
$mgConf['slideshow'] = true;
// use lightbox 2
$mgConf['lightbox'] = true;
// autoslideshow for the lightbox
$mgConf['fancyslideshow'] = true;
// time until next picture is show in slideshow
$mgConf['slideshowtime'] = 3;
// watermark image (PNG), if != "" each fullsize image comes with
// a small watermark image at the location defined below
// file must be located in the mygallery folder root
$mgConf['watermarkimg'] = "watermark.png";
// watermark position (0/0 is top left corner)
// negative values for bottom right corner
$mgConf['watermark_x'] = -95;
$mgConf['watermark_y'] = -40;
// watermark transparancy
$mgConf['watermark_transparency'] = 100;
// thumbnails (thereore gd lib must be installed in php!)s
$mgConf['thumbnails'] = true;
// image size
$mgConf['imagewidth'] = 500;
$mgConf['imageheight'] = 500;
// there are 3 modes if image doesn't have above width/height
// 1) 'w' - resize image to width
// 2) 'h' - resize image to height
// 3) 'm' - resize image to bigger side's value given above
// 4) 'c' - resize and crop image to $mgConf['imagewidth'] & $mgConf['imageheight']
$mgConf['imagemode'] = "m";
// thumb size
$mgConf['thumbwidth'] = 90;
$mgConf['thumbheight'] = 90;
// there are 3 modes if thumb doesn't have above width/height
// 1) 'w' - resize thumb to width
// 2) 'h' - resize thumb to height
// 3) 'm' - resize thumb to bigger side's value given above
// 4) 'c' - resize and crop thumb to $mgConf['thumbwidth'] & $mgConf['thumbhight']
$mgConf['thumbmode'] = "c";
// number of thumbnails cols
$mgConf['thumbcols'] = 4;
// number of thumbnails cols in admin cp
$mgConf['thumbcolsadmin'] = 4;
// when you include the script into a file that is
// outside the mygallery folder you have to put the
// path to the mygallery folder here (with trailing slash if set!)
$mgConf['pathtoscript'] = "/mygallery/";
// phpwcms alias name (only if you're using the script as module for phpwcms)
$mgConf['phpwcmsalias'] = "";
// if script is used as cms made simple module
$mgConf['is_cmsms_module'] = false;
// GET variables that need to be present all the time
$mgConf['getvars'][] = "page";
// jpg quality (0=bad, 100=good, standard is 80)
$mgConf['jpgquality'] = 85;
// galleries per page in galleries overview mode
$mgConf['gpp'] = 4;
// thumbs per page in gallery overview mode
// >> should be bigger than $mgConf['gpp'] and a multiple of it!
$mgConf['tpp'] = 12;
// FTP create directory for 'SAFE_MODE = on' workaround (new folder permissions not set to '0777')
// this may be the issue if MyGallery makes the gallery folders, but you cannot upload images to new galleries
$mgConf['ftp_mkdir'] = false; // set to 'true' to use SAFE_MODE workaround using ftp to create new folders because your server is in 'SAFE_MODE' - set to 'false' for default use of PHP's 'mkdir' function
$mgConf['ftpserver'] = "alfa3010.alfahosting-server.de"; // ftp server address - 'localhost' should work for most web servers
$mgConf['ftpuser'] = "*****"; // ftp username
$mgConf['ftppass'] = "*****"; // ftp password
$mgConf['ftpimagepath'] = "/images"; // directory path from ftp root to MyGallery 'images' folder
// language settings
$txtadmin= htmlentities("Admin");
$txtnextslide= htmlentities("Wait ".$mgConf['slideshowtime']." seconds or");
$txtclickpic= htmlentities("Click on the picture to get to the next one");
$txtback= htmlentities("Zurück zur Indexseite");
$txtlogin= htmlentities("Login");
$txtpass= htmlentities("Password");
$txtlogout= htmlentities("Logout");
$txtnewgal= htmlentities("Neue Gallery erstellen");
$txtzipdesc= htmlentities("To upload a new gallery you first have to put all photos together into a ZIP archive that you can upload afterwards. Except you just want to have a single picture in it");
$txtgalname= htmlentities("Gallery Name");
$txtselzip= htmlentities("Zum Uploaden ZIP Archive oder einzel Foto (JPG) auswählen");
$txtbuild= htmlentities("Erstellen");
$txtexgals= htmlentities("Bestehenede Galleries");
$txtedit= htmlentities("bearbeiten");
$txtdelete= htmlentities("löschen");
$txtasktodel= htmlentities("Gallery wirklich löschen?");
$txtnodir= htmlentities("Konnte keinen neuen Ordner erstellen (Berechtigungen überprüfen!)");
$txtnochmod= htmlentities("Konnte die Berechtigungen für den neuen Ordner nicht ändern");
$txtnozip= htmlentities("Kein ZIP Archive oder Foto ausgewählt, Felder leer!");
$txtnoname= htmlentities("Namensfeld leer!");
$txtname= htmlentities("Name");
$txtup= ("<strong>↑</strong>");
$txtdown= ("<strong>↓</strong>");
$txtediting= htmlentities("Gallery bearbeiten");
$txtcaption= htmlentities("Caption");
$txtfilename= htmlentities("Filename");
$txtadd= htmlentities("Add");
$txtaddpicscap= htmlentities("Adding Picture(s)");
$txtaddpics= htmlentities("Select a single picture or a ZIP archive that you 'd like to add to this gallery");
$txtsavechange= htmlentities("Änderungen sichern");
$txtsavedchanges=htmlentities("Änderungen gesichert");
$txtdescription=htmlentities("Beschreibung");
$txtviewthisgal=htmlentities("View the {gallery} Gallery!");
$txtfirstpage= htmlentities("«««");
$txtprevpage= htmlentities("««");
$txtnextpage= htmlentities("»»");
$txtlastpage= htmlentities("»»»");
$txtpicture = htmlentities("Fotos");
$txtpictureof = htmlentities("of");
$txtcontinueslideshow = htmlentities("Weiter zur Slideshow");
$txtincludewatermark = htmlentities("Watermark einfügen");
// ******************** INIT LIGHTBOX & STYLE DEFs ********************
// ********************************************************************
if ($mgRef != "JS"){
?>
<script type="text/javascript" src="<?=$mgConf['pathtoscript']?>lightbox/js/prototype.js"></script>
<script type="text/javascript" src="<?=$mgConf['pathtoscript']?>lightbox/js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="<?=$mgConf['pathtoscript']?>lightbox/js/lightbox.js.php"></script>
<style type="text/css">
<!--
.mgadmincap { background-color:#4B6B92; color: #ffffff; font-weight: bold; }
.mgadmintdbg { background-color:#ffffff; }
.mgaltbgcol { background-color: #dedede; }
.mginputln { font-family: Verdana, Arial, Helvetica, sans-serif; background-color:#ffffff; color:#FF3300; font-size: 10px; font-weight: normal; border: solid 1px #999999; }
.mginputradio { vertical-align:middle; }
/*
==================
LIGHTBOX STYLES
==================
*/
#lightbox { position: absolute; top: 40px; left: 0; width: 100%; z-index: 100; text-align: center; line-height: 0; }
#lightbox a img { border: none; }
#outerImageContainer { position: relative; background-color: #fff; width: 250px; height: 250px; margin: 0 auto; }
#imageContainer { padding: 10px; }
#loading { position: absolute; top: 40%; left: 0%; height: 25%; width: 100%; text-align: center; line-height: 0; }
#hoverNav { position: absolute; top: 0; left: 0; height: 100%; width: 100%; z-index: 10; }
#imageContainer>#hoverNav { left: 0; }
#hoverNav a { outline: none; }
#prevLink, #nextLink { width: 49%; height: 100%; background: transparent url(<?=$mgConf['pathtoscript']?>lightbox/images/blank.gif) no-repeat; display: block; }
#prevLink { left: 0; float: left; }
#nextLink { right: 0; float: right; }
#prevLink:hover, #prevLink:visited:hover { background: url(<?=$mgConf['pathtoscript']?>lightbox/images/prevlabel.gif) left 15% no-repeat; background-position:top left; }
#nextLink:hover, #nextLink:visited:hover { background: url(<?=$mgConf['pathtoscript']?>lightbox/images/nextlabel.gif) right 15% no-repeat; background-position:top right }
#imageDataContainer { font: 10px Verdana, Helvetica, sans-serif; background-color: #fff; margin: 0 auto; line-height: 1.4em; }
#imageData { padding:0 10px; color:#111; }
#imageData #imageDetails { width: 60%; float: left; text-align: left; }
#imageData #caption { font-weight: bold; }
#imageData #numberDisplay { display: block; padding-bottom: 1.0em; }
#imageData #bottomNavClose { width: auto; float: right; padding-bottom: 0.7em; }
#imageData #continueSlideshow { float:right; padding:0 10px 10px 0; }
#imageData #continueSlideshow img { cursor:hand; cursor:pointer; }
#overlay { position: absolute; top: 0; left: 0; z-index: 90; width: 100%; height: 500px; background-color: #000; filter:alpha(opacity=60); -moz-opacity: 0.6; opacity: 0.6; }
.clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
* html>body .clearfix { display: inline-block; width: 100%; }
* html .clearfix { height: 1%; }
-->
</style>
<? }?>
Last edited by klingi (29-09-2010 21:06:03)