Ich müsste doch die "Pic of x"-Box dublizieren. Weiß nur nicht, wo im Skript die Stelle ist, aus welcher Gallery er die Bilder nimmt.
(Man kann ja im Admin-Bereich bestimmen, woher er die Bilder für die Vorschau-Box nimmt. Das müsste man dann entweder auch im Admin dublizieren, oder fest in die Box reinschreiben.
Hier der relevante Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | $picofxThumb = 'img_thumb_' . $picofxOpts [ 'pic' ]; if ( $picofxOpts [ 'pic' ] != '' AND file_exists ( 'include/images/gallery/' . $picofxThumb )) { $picofxThumb = 'img_thumb_' . $picofxOpts [ 'pic' ]; $picofxImg = getimagesize ( 'include/images/gallery/' . $picofxThumb ); if ( $picofxImg [0] < $picofxOpts [ 'picwidth' ]) { $picofxImg [1] = @ ceil (( $picofxImg [1] / $picofxImg [0]) * $picofxOpts [ 'picwidth' ]); $picofxImg [0] = $picofxOpts [ 'picwidth' ]; } list ( $id , $endung ) = explode ( '.' , $picofxOpts [ 'pic' ]); if ( $picofxOpts [ 'directory' ] == 0) { $cid = db_result(db_query( "SELECT cat FROM prefix_gallery_imgs WHERE id = " . $id ),0); } else { $cid = $picofxOpts [ 'directory' ]; } $anz = db_result(db_query( "SELECT COUNT(*) FROM prefix_gallery_imgs WHERE id < " . $id . " AND cat = " . $cid ),0); $weite = $allgAr [ 'gallery_normal_width' ]+30; ?> <script language= "JavaScript" type= "text/javascript" > <!-- function picOfxOeffneFenster (bildr, cat) { var fenster = window.open ( 'index.php?gallery-show-' +cat+ '-p' +bildr, 'showBild' , 'scrollbars=yes,height=600,width=<?php echo $weite; ?>,left=200,status=yes' ); fenster.focus(); return (false); } //--> </script> <?php echo '<table width="100%" border="0" cellpadding="2" cellspacing="0"><tr><td align="center">' ; echo '<a target="_blank" href="index.php?gallery-show-' . $cid . '-p' . $anz . '" onClick="return picOfxOeffneFenster(' . $anz . ',' . $cid . ');"><img src="include/images/gallery/' . $picofxThumb . '" width="' . $picofxImg [0]. '" height="' . $picofxImg [1]. '" alt=""></a>' ; echo '</td></tr></table>' ; } else { echo $lang [ 'nothingavailable' ]; } ?> |
Reicht es, wenn ich einfach diese Zeile ändere:
1 2 | $picofxThumb = 'img_thumb_'.$picofxOpts['pic']; if ($picofxOpts['pic'] != '' AND file_exists ('include/images/gallery/'.$picofxThumb)) |
und das Thumb durch den tatsächlichen "Ordner" austausche?
Und das
1 | echo '<a target="_blank" href="index.php?gallery-show-'.$cid.'-p'.$anz.'" onClick="return picOfxOeffneFenster('.$anz.','.$cid.');"><img src="include/images/gallery/'.$picofxThumb.'" width="'.$picofxImg[0].'" height="'.$picofxImg[1].'" alt=""></a>'; |
Dementsprechend ändere?
Und dann das alles so oft mache, wie ich es brauche? (Also wi viele Vorschaubilder ich haben will.
Kann jemand helfen?
verwendete ilchClan Version: 1.1
Zuletzt modifiziert von Karnickel am 04.03.2008 - 13:02:40