Thank you
<a href=\"#\" onclick=\"window.open('$PHP_SELF?mod=images&area=$insert_location', '_Addimage', 'height=450,resizable=yes,scrollbars=yes,width=500');return false;\" target=\"_Addimage\"><img src=".$config_http_script_dir."/skins/images/tags/img.gif border=0 align=middle></a><a href=\"#\" onclick=\"window.open('$PHP_SELF?mod=images&area=$insert_location&sortby=time&start_from=&subfolder=&align=', '_Addimage', 'height=450,resizable=yes,scrollbars=yes,width=500');return false;\" target=\"_Addimage\"><img src=".$config_http_script_dir."/skins/images/tags/img.gif border=0 align=middle></a>samiro wrote:no - its not working...
i think i need to change somthing in inc/mod/images.mdu
<tr><td><?=(($_GET['sortby'] == "time") ? "<a href='".$config_http_script_dir."/index.php?mod=images&area=".$_GET['area']."&sortby=name&start_from=".$_GET['start_from']."&subfolder=".($_POST['subfolder'] ? $_POST['subfolder'] : $_GET['subfolder']).($area ? '&align='.$_GET['align'] : '')."'>".$echo['sortbyName']."</a>" : "<a href='".$config_http_script_dir."/index.php?mod=images&area=".$_GET['area']."&sortby=time&start_from=".$_GET['start_from']."&subfolder=".($_POST['subfolder'] ? $_POST['subfolder'] : $_GET['subfolder']).($area ? '&align='.$_GET['align'] : '')."'>".$echo['sortbyTime']."</a>"); ?></td>
</tr>
<tr><td><?=((($_GET['sortby'] == "time") || ($_GET['sortby'] == "")) ? "<a href='".$config_http_script_dir."/index.php?mod=images&area=".$_GET['area']."&sortby=name&start_from=".$_GET['start_from']."&subfolder=".($_POST['subfolder'] ? $_POST['subfolder'] : $_GET['subfolder']).($area ? '&align='.$_GET['align'] : '')."'>".$echo['sortbyName']."</a>" : "<a href='".$config_http_script_dir."/index.php?mod=images&area=".$_GET['area']."&sortby=time&start_from=".$_GET['start_from']."&subfolder=".($_POST['subfolder'] ? $_POST['subfolder'] : $_GET['subfolder']).($area ? '&align='.$_GET['align'] : '')."'>".$echo['sortbyTime']."</a>"); ?></td>
</tr>
if (count($files)){
(($_GET['sortby'] == "time") ? arsort($files) : ksort($files));
foreach ($files as $file => $time){
$all_images += filesize($folder.'/'.$file);
}
if (count($files)){
((($_GET['sortby'] == "time") || ($_GET['sortby'] == "")) ? arsort($files) : ksort($files));
foreach ($files as $file => $time){
$all_images += filesize($folder.'/'.$file);
}
eberswine wrote:Great stuff DARK!
Both of them together work, but the top one won't work unless you do the bottom hack as well.
I am thinking this should be a DEFAULT in the new build of the CMS!
Because, if you upload something, why would you want to sort through it alphabetically rather than chronologically???
(most people would want to get the picture they uploaded right away!!!!)
I like this way better having the chronological be the default and if we want, then click on the sort by alphabetical
__ thoughts ???
Users browsing this forum: No registered users and 2 guests