BOARDS

planetluc.com discussion board

all about the planetlu.com scripts

You are not logged in.

Announcement

I had to clean the boards due to massive spam. Actually i deleted everything /-one after 1st Oct 2008. It was the only way to get this spam out of the boards. So i'm sorry for all serious users who registered/posted meanwhile.

#1 18-07-2008 00:30:42

malli
New member
Registered: 03-07-2008
Posts: 4

lighbox not working

Hi
The gallery is working fine, but not the lightbox, i cant spot the problem.
Here is config

Code:

<?
/*
######################### 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'] = "xxx";

// password for admin
$mgConf['adminpwd'] = "xxx";

// time in seconds until admin has to relogin
$mgConf['adminexpire'] = 60*20;

// whether to have slideshow or not
$mgConf['slideshow'] = true;

// use lightbox by http://www.huddletogether.com/projects/lightbox2/
$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'] = 100;
$mgConf['thumbheight'] = 100;

// 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'] = "/prufusida/test2/gallery/";

// phpwcms alias name (only if you're using the script as module for phpwcms)
$mgConf['phpwcmsalias'] = "";

// 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'] = "localhost";                          // ftp server address - 'localhost' should work for most web servers
$mgConf['ftpuser'] = "username";                             // ftp username
$mgConf['ftppass'] = "password";                          // ftp password
$mgConf['ftpimagepath'] = "path/to/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("Aftur á forsíðu");
$txtlogin=        htmlentities("Innskrá");
$txtpass=        htmlentities("Leyniorð");
$txtlogout=        htmlentities("Útskrá");
$txtnewgal=        htmlentities("Creating New Gallery");
$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("Select a ZIP archive or a single picture (JPG) for uploading");
$txtbuild=        htmlentities("Build");
$txtexgals=        htmlentities("Existing Galleries");
$txtedit=        htmlentities("breyta");
$txtdelete=        htmlentities("eyða");
$txtasktodel=    htmlentities("Do you really want to delete this gallery?");
$txtnodir=        htmlentities("Couldn't create a new folder (check permissions!)");
$txtnochmod=   htmlentities("Could not change the permissions for the new folder");
$txtnozip=        htmlentities("No ZIP archive or picture selected or empty name field!");
$txtnoname=        htmlentities("Empty name field!");
$txtname=        htmlentities("Nafn");
$txtup=            htmlentities("upp");
$txtdown=        htmlentities("niður");
$txtediting=    htmlentities("Editing Gallery");
$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("Vista");
$txtsavedchanges=htmlentities("Vistað");
$txtdescription=htmlentities("Description");
$txtviewthisgal=htmlentities("View the {gallery} Gallery!");
$txtfirstpage=    htmlentities("«««");
$txtprevpage=    htmlentities("««");
$txtnextpage=    htmlentities("»»");
$txtlastpage=    htmlentities("»»»");
$txtpicture =     htmlentities("Mynd");
$txtpictureof = htmlentities("af");
$txtcontinueslideshow = htmlentities("Continue Slideshow");
$txtincludewatermark = htmlentities("include watermark");




// ******************** 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">
<!--
.mgtxt, .mgtxt a {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
}
.mgtxt a{
    text-decoration:underline;
}
.mgtxt a:hover{
    text-decoration:none;
}
.mggalcap{
    font-size:12px;
    font-weight: bold;
}
.mgimgcap{
    font-size:12px;
    font-weight: bold;
}
.mgsmall, .mgsmall a {
    font-size: 9px;
    font-weight:normal;
}
.mgimgbrd {
    border: 1px solid #666666;
}
.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; }
.mggallery{
    margin-bottom:10px; 
    padding-bottom:10px; 
    border-bottom: dotted 1px #999999;
}


/*
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; /* Trick IE into showing hover */
    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 {
    /* Hides from IE-mac \*/
    height: 1%;
    /* End hide from IE-mac */
    }    

-->
</style>


<? }?>

Offline

 

#2 18-07-2008 00:39:03

sidtheduck
Moderator
From: down by the water
Registered: 14-07-2006
Posts: 515
Website

Re: lighbox not working

Try replacing "<?=$mgConf['pathtoscript']?>" with your actual full path name (i.e. "http://www.yourdomain.com/mygallery_install_directory/") in this code:

Code:

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

If it looks like a duck, and quacks like a duck, we have at least to consider the possibility that we have a small aquatic bird of the family anatidae on our hands.                ~Douglas Adams~

Offline

 

#3 18-07-2008 11:02:27

malli
New member
Registered: 03-07-2008
Posts: 4

Re: lighbox not working

same thing, lightbox not working

Code:

<script type="text/javascript" src="<?=$mgConf['pathtoscript']?>http://www.almennt.com/prufusida/test2/gallery/lightbox/js/prototype.js"></script>
<script type="text/javascript" src="<?=$mgConf['pathtoscript']?>http://www.almennt.com/prufusida/test2/gallery/lightbox/js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="<?=$mgConf['pathtoscript']?>http://www.almennt.com/prufusida/test2/gallery/lightbox/js/lightbox.js.php"></script>

i have include in to page using this

Code:

<?PHP include "gallery/gallery.inc.php";?>

Offline

 

#4 10-10-2009 06:26:35

highroller
New member
Registered: 10-10-2009
Posts: 2

Re: lighbox not working

Hi Lightbox is also not working on my site, I made the changes noted above and no joy.  Any tips?

Offline

 

#5 31-01-2010 10:32:46

enigma
New member
Registered: 31-01-2010
Posts: 6

Re: lighbox not working

Lightbox displays fine in Firefox,but does not in IE when using php include method.

Only way I can get lightbox to work in IE,is to use an I-frame instead of php include method. Then it works fine in IE.

Last edited by enigma (31-01-2010 10:34:48)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

 
 
© 2003-2010 by planetluc.com · Bachtelstrasse 104 · CH-8400 Winterthur | Support | Login |