View Full Version : How to set thumbnails from Index page to ascending order ??
ipru
27th of March 2007 (Tue), 05:03
Is it possible to set thumbnails from Index page (and Gallery Map) to Ascending order ?
jeronimo
8th of April 2007 (Sun), 09:17
Maybe this might work
In basecode/SCRIPT_common_functions.php qou'll find somewhere around line 872 the next code
if ($viewtype == "thumb") {
ob_start();
$s_max_thumbsize_width = $s_thumbs_outputstyle_max_thumbsize_width;
$s_max_thumbsize_height = $s_thumbs_outputstyle_max_thumbsize_height;
$thumb_output = ee_print_thumbs($thumbarraylist,"thumb");
ob_end_clean();
foreach ($thumb_output as $thisthumb => $thumbdata) {
print $thumbdata["output"];
print "<p class=\"ee_css_paragraph_small\" style=\"margin: -5px 0px 5px 0px;\">";
print $thumbdata["thumbheader"];
print "</p>";
}
//print "<br class=\"clear\"></div>";
}
Change the line
foreach ($thumb_output as $thisthumb => $thumbdata) {
to
foreach ($thumb_output as $thisthumb <= $thumbdata) {
Might work (note the difference in => and <=)
I think you can safely try it, but be shure to keep an copy of the original file.
Good luck, and let us know
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.