You're looking for some 4images templates and styles? Then visit this thread to show websites with 4images templates to download.
0 Members and 2 Guests are viewing this topic.
Quote from: limes-> What about the other media files, will their thumbnails be shown?What are the others? By media files I ment any files that dont have thumbnails and uses media icons.
-> What about the other media files, will their thumbnails be shown?
I have found in the code the "width" & "height" variables, is there a way to set the width and have the hight set proportionaly? so that the image will not be streched?
if (empty($top_list[$i]['image_thumb_file'])) { $thumb_file = ICON_PATH."/".get_file_extension($top_list[$i]['image_media_file']).".gif"; }else { $thumb_file = (is_remote($top_list[$i]['image_thumb_file'])) ? $top_list[$i]['image_thumb_file'] : THUMB_PATH."/".$top_list[$i]['cat_id']."/".$top_list[$i]['image_thumb_file']; } $thumb_info = @getimagesize($thumb_file); $width = $thumb_info[0]; $height = $thumb_info[1]; $dimension = 48; $ratio = $width / $height; if ($ratio > 1) { $new_width = $dimension; $new_height = floor(($dimension/$width) * $height); }else { $new_width = floor(($dimension/$height) * $width); $new_height = $dimension; }
i can't get this to set proportionaly i only accept .jpg files in my gallery, and i see that this fix has mentioned something about .gif. can this be the reason?i can post my top.php code if neededi envy M@2T gallery topimages page... it's so good lucking with that thumbnails ok... please help meThanks
but i don't accept any media files, i only accept .jpg filescan't this be the problem? cause im inserting that code refering that i might be using media files, when i don't.
i added 4 new top.php´s and 4 new top.html´s and i included them in the page_header - now you switch between 4 toplists!
Yesterday I started changing the code of 4 images for the first time and with succes. I altered the Toplist to show a top 10 of Most commented images.I also added some lines to the top.php file to show the thumbnails, this last edit took me many hours since I do not have any programming skills yet, I'm a quick learner so I will be able to mange soon enough I think Feel free to take a look and if enough people love the way I changed the toplist I might write a tutorial here.to view the toplist: http://haunter.student.utwente.nl/Terrarevolution/galleries/top.phpCheers,Vraxor