NanoCaiordo
Offline
Joined: Jun 29, 2004
Posts: 4291
Location: Italy
0 👍
/
0 👎
Sat Sep 22, 2007 7:44 am
dusman wrote I will give lots of monopoly money I want the purple houses
.:: I met php the 03 December 2003 :: Unforgettable day! ::.
Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS
dusman
Offline
Joined: Mar 17, 2006
Posts: 303
Location: Maryland
0 👍
/
0 👎
Sat Sep 22, 2007 11:00 pm
thanks
-Dustin
Celebrity Babes | Celebrity Videos | Funny Videos | Information for Men
Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/Apache 1.3/4.1.21/5.2.1/9.2.0.RC1
cliff
Offline
Joined: Jun 02, 2007
Posts: 22
Location: Columbus Ohio
0 👍
/
0 👎
Mon Oct 15, 2007 7:21 am
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.
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.
Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/2.0/5.0.45/5.2.8/9.1.2.1
dusman
Offline
Joined: Mar 17, 2006
Posts: 303
Location: Maryland
0 👍
/
0 👎
Mon Oct 15, 2007 3:36 pm
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
Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/Apache 1.3/4.1.21/5.2.1/9.2.0.RC1
dusman
Offline
Joined: Mar 17, 2006
Posts: 303
Location: Maryland
0 👍
/
0 👎
Mon Oct 29, 2007 2:39 pm
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
Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/Apache 1.3/4.1.21/5.2.1/9.2.0.RC1
NanoCaiordo
Offline
Joined: Jun 29, 2004
Posts: 4291
Location: Italy
0 👍
/
0 👎
Mon Oct 29, 2007 3:25 pm
Cannot confirm but I'll try to.
.:: I met php the 03 December 2003 :: Unforgettable day! ::.
Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS
dusman
Offline
Joined: Mar 17, 2006
Posts: 303
Location: Maryland
0 👍
/
0 👎
Mon Oct 29, 2007 7:06 pm
thanks as usual Nano
-Dustin
Celebrity Babes | Celebrity Videos | Funny Videos | Information for Men
Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/Apache 1.3/4.1.21/5.2.1/9.2.0.RC1
dusman
Offline
Joined: Mar 17, 2006
Posts: 303
Location: Maryland
0 👍
/
0 👎
Mon Dec 03, 2007 8:44 pm
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
Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/Apache 1.3/4.1.21/5.2.1/9.2.0.RC1
NanoCaiordo
Offline
Joined: Jun 29, 2004
Posts: 4291
Location: Italy
0 👍
/
0 👎
Wed Dec 19, 2007 10:29 am
in RC2 now.
.:: I met php the 03 December 2003 :: Unforgettable day! ::.
Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS
dusman
Offline
Joined: Mar 17, 2006
Posts: 303
Location: Maryland
0 👍
/
0 👎
Wed Dec 19, 2007 2:25 pm
Thanks Nano as usual
-Dustin
Celebrity Babes | Celebrity Videos | Funny Videos | Information for Men
Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/Apache 1.3/4.1.21/5.2.1/9.2.0.RC1
HighOctane
Offline
Joined: Mar 15, 2005
Posts: 15
Location: Australia
0 👍
/
0 👎
Fri Dec 18, 2009 12:47 pm
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...
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
HighOctane
Offline
Joined: Mar 15, 2005
Posts: 15
Location: Australia
0 👍
/
0 👎
Fri Dec 18, 2009 1:24 pm
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...
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