|
View previous topic :: View next topic |
| Author |
Message |
NanoCaiordo Developer


Offline Joined: Jun 29, 2004 Posts: 3878 Location: Melbourne, AU
|
Posted: Sat Sep 22, 2007 7:44 am Post subject: Re: alphabetical sort of directories for batch upload |
|
| dusman wrote: |
| I will give lots of monopoly money |
I want the purple houses
_________________ .:: I met php the 03 December 2003 :: Unforgettable day! ::.
Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) mixed
|
|
| Back to top |
|
 |
dusman Dragonfly addicted


Offline Joined: Mar 17, 2006 Posts: 303 Location: Maryland
|
Posted: Sat Sep 22, 2007 11:00 pm Post subject: Re: alphabetical sort of directories for batch upload |
|
thanks
_________________ -Dustin
Celebrity Babes | Celebrity Videos | Funny Videos | Information for Men
dusman's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/Apache 1.3/4.1.21/5.2.1/9.2.0.RC1
|
|
| Back to top |
|
 |
cliff Newbie


Offline Joined: Jun 02, 2007 Posts: 22 Location: Columbus Ohio
|
Posted: Mon Oct 15, 2007 7:21 am Post subject: Re: alphabetical sort of directories for batch upload |
|
Make sure you back-up all files before editing.
Edited "module/coppermine/searchnew.php" to show directories in alphabetical order. This was accomplished by rewriting the "function display_dir_tree($folder, $ident)" in the searchnew.php file.
| Code:: |
function display_dir_tree($folder, $ident)
{
global $CONFIG, $THEME_DIR;
$dir_path = $CONFIG['fullpath'] . $folder;
$d = array();
if (!is_readable($dir_path))
return;
clearstatcache();
$d = glob($dir_path . "*",GLOB_ONLYDIR);
foreach ($d as $file)
{
$start_target = substr($file,similar_text($dir_path,$file));
$dirpath = $CONFIG['fullpath'] . $start_target;
$warnings = '';
if (!is_writable($file))
$warnings .= DIR_RO;
if (!is_readable($file))
$warnings .= DIR_CANT_READ;
if ($warnings)
$warnings = ' <b>' . $warnings . '<b>';
echo '<tr><td class="tableb">'
. $ident
. '<img src="'
. $THEME_DIR
. '/images/folder.gif" alt="" /> <a href= "'
. getlink("&file=searchnew&startdir="
. $folder . $start_target, false)
. '">'
. $start_target
. '</a>'
. $warnings
. '</td></tr>';
display_dir_tree($folder . $start_target . '/', $ident . ' ');
}
}
|
Hope this works for you also.
cliff's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/2.0/5.0.45/5.2.8/9.1.2.1
|
|
| Back to top |
|
 |
dusman Dragonfly addicted


Offline Joined: Mar 17, 2006 Posts: 303 Location: Maryland
|
Posted: Mon Oct 15, 2007 3:36 pm Post subject: Re: alphabetical sort of directories for batch upload |
|
thanks, I'll give it a shot, hopefully it will be in the next CVS
_________________ -Dustin
Celebrity Babes | Celebrity Videos | Funny Videos | Information for Men
dusman's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/Apache 1.3/4.1.21/5.2.1/9.2.0.RC1
|
|
| Back to top |
|
 |
dusman Dragonfly addicted


Offline Joined: Mar 17, 2006 Posts: 303 Location: Maryland
|
Posted: Mon Oct 29, 2007 2:39 pm Post subject: Re: alphabetical sort of directories for batch upload |
|
can we get confirmation that this fix or similar is added to CVS so the next release will not revert back? Thanks for all the help
_________________ -Dustin
Celebrity Babes | Celebrity Videos | Funny Videos | Information for Men
dusman's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/Apache 1.3/4.1.21/5.2.1/9.2.0.RC1
|
|
| Back to top |
|
 |
NanoCaiordo Developer


Offline Joined: Jun 29, 2004 Posts: 3878 Location: Melbourne, AU
|
Posted: Mon Oct 29, 2007 3:25 pm Post subject: Re: alphabetical sort of directories for batch upload |
|
Cannot confirm but I'll try to.
_________________ .:: I met php the 03 December 2003 :: Unforgettable day! ::.
Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) mixed
|
|
| Back to top |
|
 |
dusman Dragonfly addicted


Offline Joined: Mar 17, 2006 Posts: 303 Location: Maryland
|
Posted: Mon Oct 29, 2007 7:06 pm Post subject: Re: alphabetical sort of directories for batch upload |
|
thanks as usual Nano
_________________ -Dustin
Celebrity Babes | Celebrity Videos | Funny Videos | Information for Men
dusman's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/Apache 1.3/4.1.21/5.2.1/9.2.0.RC1
|
|
| Back to top |
|
 |
dusman Dragonfly addicted


Offline Joined: Mar 17, 2006 Posts: 303 Location: Maryland
|
Posted: Mon Dec 03, 2007 8:44 pm Post subject: Re: alphabetical sort of directories for batch upload |
|
just a friendly reminder to add this to CVS so it isn't overwritten on next update. thanks
_________________ -Dustin
Celebrity Babes | Celebrity Videos | Funny Videos | Information for Men
dusman's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/Apache 1.3/4.1.21/5.2.1/9.2.0.RC1
|
|
| Back to top |
|
 |
NanoCaiordo Developer


Offline Joined: Jun 29, 2004 Posts: 3878 Location: Melbourne, AU
|
Posted: Wed Dec 19, 2007 10:29 am Post subject: Re: alphabetical sort of directories for batch upload |
|
in RC2 now.
_________________ .:: I met php the 03 December 2003 :: Unforgettable day! ::.
Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) mixed
|
|
| Back to top |
|
 |
dusman Dragonfly addicted


Offline Joined: Mar 17, 2006 Posts: 303 Location: Maryland
|
Posted: Wed Dec 19, 2007 2:25 pm Post subject: Re: alphabetical sort of directories for batch upload |
|
Thanks Nano as usual
_________________ -Dustin
Celebrity Babes | Celebrity Videos | Funny Videos | Information for Men
dusman's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/Apache 1.3/4.1.21/5.2.1/9.2.0.RC1
|
|
| Back to top |
|
 |
HighOctane Newbie


Offline Joined: Mar 15, 2005 Posts: 15 Location: Australia
|
Posted: Fri Dec 18, 2009 12:47 pm Post subject: Re: alphabetical sort of directories for batch upload |
|
is this still fixed in the current build? mine are showing up in some freaky order, it's not size based, date of creation based or alphanumerically sorted...
this is the only discussion about it i can find here, and it's a couple of years old, which makes me think there's another issue... probably something silly i've done...
HighOctane's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Ubuntu bserver 2.6.32-28 / 2.051 / MySQL 5.1.41 / PHP 5.3.2 / Dragonfly 9.3.3
|
|
| Back to top |
|
 |
HighOctane Newbie


Offline Joined: Mar 15, 2005 Posts: 15 Location: Australia
|
Posted: Fri Dec 18, 2009 1:24 pm Post subject: Re: alphabetical sort of directories for batch upload |
|
ok... answering myself again... i thought i'd used a new copy of the coppermine module when adding another instance to the site, but the searchnew.php file i was using indicated it was last edited in 2006... before this update... just copied and pasted the code provided above and all works well now...
i'll leave just this module changed for a while in case the code clashes with any of the latest updates, and if no problems, will be copying it to other instances of coppermine pretty soon...
HighOctane's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Ubuntu bserver 2.6.32-28 / 2.051 / MySQL 5.1.41 / PHP 5.3.2 / Dragonfly 9.3.3
|
|
| Back to top |
|
 |
|
|