Joey46 Posted December 17, 2008 Share Posted December 17, 2008 how can i add jpg,JPEG,gif,png to my thumbnails everything i have tried has failed Link to comment Share on other sites More sharing options...
Synook Posted December 18, 2008 Share Posted December 18, 2008 ? What format are they in now, and how are you generating them? Link to comment Share on other sites More sharing options...
Joey46 Posted December 18, 2008 Author Share Posted December 18, 2008 ? What format are they in now, and how are you generating them?This is my PHP code<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" ("content-type:image/png");.imagepng(),><title>Index.php</title></head><body><?echo '<ul class="hoverbox">';$max_num = 15;$j=0;$narray = array();$dir = "Thumbs/"; if (is_dir($dir)) { $dh= @opendir($dir) or die("Unable to open $path please notify the administrator. Thank you."); while (($file = readdir($dh)) !== false) { if(($file != '.') && ($file != '..') && (stristr($file,'jpg'))){ if ($ext == "JPEG") if ($ext == "gif") if ($ext == "png") { $narray[]=$file; $n++; } }if ($n < $max_num) { $max_num = $n; }shuffle( $narray); while ( $j <= $max_num-1) { echo "\t" . '<li><a href="' . $dir . $narray[$j] . '" alt="full-size"><img src="' . $dir . $narray[$j] . '" alt="' . $dir . $narray[$j] . '" > </a></li> ' . "\n\r\t"; $j++; }} else { echo 'There is a problem with the directories. Please Notify the Administrator. Thank You.';} echo '</ul>';?></body></html>but for some reason it is now placing all images in a temporary folder instead of on my gallery pageAnd please can i thank you in adavnce for your assisstance Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.