Jump to content

Now it looks nice. but...


sweepdude68

Recommended Posts

I have one more thing that i cant figure out . if you look at my page   http://www.slybullit.com    when pressing the links Forum and Downloads, youll see that the right frame goes away and opens in the lower left side. I want that to happen when you press the Gallery link aswell. so the question is how do i fix that? the code for the gallery comes here

 

<?php
require_once("../../class2.php");
require_once(HEADERF);

function crawlFolder($dir='.'){ // c:/test/
  if (is_dir($dir)) {
     if ($dh = opendir($dir)) {
       while (($file = readdir($dh)) !== false) {            
            if($file!='images' && $file!='.' && $file!='..' && $file!='js' && $file!='admin' && $file!='cache' && $file!='license' && $file!='lang' && is_dir($file)){
               $num = opendir($file);
               $c=0;
               while (($g = readdir($num)) !== false) { 
                    if($g!='.' &&$g!='..' &&$g!='description.txt' &&$g!='cache.txt' && $g!='cache'  && $g!='Thumbs.db') {$c++;$pics[$file][]=$g;}                    
                }
               $data[]=array($file,$c);
             }
         }
         closedir($dh);
         sort($data);
         reset($data);
     }
  }
  return array($data,$pics);
}



require 'config.php';
require 'class.core.php';
include 'version.php';
$stylesheet=(is_numeric($_GET['s']))?'GalStyle'.$_GET['s'].'.css':$stylesheet;
$styleAdd=(is_numeric($_GET['s']))?'&s='.$_GET['s']:'';
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>
<title>QuickGal</title>
<meta http-equiv="imagetoolbar" content="no">
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<link rel="stylesheet" href="'.$stylesheet.'" type="text/css" media="screen" />
</head><body><center>
<div id="QuickGcontainer">
        <table id="QuickGal" width="95%"><tr><td><h1>'.$lc_galleries.'</h1><br></td></tr>';

list($get,$pics)= crawlFolder();
$folders=array();
foreach ($get as $k=>$v) { 
if($v[1]==0) echo '<tr><td height="25" class="indextab" style="padding-left:28px;"><strike>'.$v[0].'</strike> '.$lc_emptyfolder.'</td></tr>';
else echo '<tr><td height="25" class="indextab" style="padding-left:28px;"><a href="QuickGal.php?album='.urlencode($v[0]).'/'.$styleAdd.'">'.$v[0].'</a> ('.$v[1].' '.$lc_pictures.')</td></tr>';
$folders[]=$v[0];
}


$QG=new QuickGal(1,'./');
list($_thumb,$_img,$_fold)=$QG->rand($folders,$pics,$system);
        $img=@getimagesize($_fold.'/'.$_img);      
        $width= ($img[0]>$maxImgWidth)?$maxImgWidth:$img[0];
        if($width!=0)   $height= round($img[1]/($img[0]/$width));
        $height= ($height>$maxImgHeight)?$maxImgHeight:$height;
  
//// Random pic
echo '<tr><td align="center"><br>
<b>' .$lc_randompicture .'</b><br>
<table alin="center">
<tr><td><a href="thumb.php?img='.$_img.'&w='.$width.'&h='.$height.'&f='.$_fold.'/" rel="lightbox[]" title="' .$lc_randompicture .'"><div class="p-shadow"><div><p><img src="'.$_thumb.'" width="150" height="100" border="0"></p></div></div></a></td></tr>
<tr><td><center>' .$lc_gallery .': <a href="QuickGal.php?album='.$_fold.'/'.$styleAdd.'">'.$_fold.'</a></center></td></tr>
</td></tr></table>
</td></tr>
';

echo '</table>
<br><table id="QuickGalFooter">
<tr><td style="height:25px">
<a href="http://www.andyydev.com"><span style="float:right;width:45px;height:10px;"> </span></a>
</td></tr>
</table>
</div>
</center></body></html>';

require_once(FOOTERF);


?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.