sweepdude68 Posted May 4, 2007 Share Posted May 4, 2007 im almost done, the only thing is this with this innerframe thing. when you press the gallery link, the new page takes over. if you look at for example, click the calendar link..thats is how its supposed to look when you press gallery link... anyone who can assist me with this one?? my page... www.slybullit.com Quote Link to comment Share on other sites More sharing options...
Rottingham Posted May 4, 2007 Share Posted May 4, 2007 If you are relying on CSS files to define classes and layout items, make sure the gallery page is including the CSS files properly. Just a quick guess. Quote Link to comment Share on other sites More sharing options...
trq Posted May 4, 2007 Share Posted May 4, 2007 Do you have an actual question? Some code? Quote Link to comment Share on other sites More sharing options...
sweepdude68 Posted May 4, 2007 Author Share Posted May 4, 2007 ok heres the code <?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); ?> obnoxious big page Quote Link to comment Share on other sites More sharing options...
trq Posted May 4, 2007 Share Posted May 4, 2007 And your question? Quote Link to comment Share on other sites More sharing options...
sweepdude68 Posted May 4, 2007 Author Share Posted May 4, 2007 why wont this page open nicely inframe like for example calendar link does? it takes over the whole page. thats my question. i just copied the reqonce class2 and reqonce headerf/footerf from calendar.php i know im dead wrong but i have to try so i eventually learn and see my mistakes Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.