Home Private Messages Search
CPG Dragonfly™ CMS Dedicated Server & Bandwidth Sponsored by DedicatedNOW
Toggle Content
 
Forums ⇒ DragonflyCMS ⇒ Coppermine ⇒ alphabetical sort of directories for batch upload


alphabetical sort of directories for batch upload
Please post bugs in the Projects Module.
Post anything and everything else about Coppermine in this forum.

Go to page Previous  1, 2
Post new topic    Reply to topic    Printer Friendly Page     Forum Index ⇒  Add-Ons & BlocksCoppermine

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

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: 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 Big grin

_________________
.:: 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
View user's profile Visit poster's website Photo Gallery
dusman
Dragonfly addicted
Dragonfly addicted

Offline Offline
Joined: Mar 17, 2006
Posts: 303
Location: Maryland
PostPosted: 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
View user's profile Visit poster's website
cliff
Newbie
Newbie

Offline Offline
Joined: Jun 02, 2007
Posts: 22
Location: Columbus Ohio
PostPosted: 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("&amp;file=searchnew&amp;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
View user's profile Visit poster's website
dusman
Dragonfly addicted
Dragonfly addicted

Offline Offline
Joined: Mar 17, 2006
Posts: 303
Location: Maryland
PostPosted: 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
View user's profile Visit poster's website
dusman
Dragonfly addicted
Dragonfly addicted

Offline Offline
Joined: Mar 17, 2006
Posts: 303
Location: Maryland
PostPosted: 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
View user's profile Visit poster's website
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: 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
View user's profile Visit poster's website Photo Gallery
dusman
Dragonfly addicted
Dragonfly addicted

Offline Offline
Joined: Mar 17, 2006
Posts: 303
Location: Maryland
PostPosted: 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
View user's profile Visit poster's website
dusman
Dragonfly addicted
Dragonfly addicted

Offline Offline
Joined: Mar 17, 2006
Posts: 303
Location: Maryland
PostPosted: 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
View user's profile Visit poster's website
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: 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
View user's profile Visit poster's website Photo Gallery
dusman
Dragonfly addicted
Dragonfly addicted

Offline Offline
Joined: Mar 17, 2006
Posts: 303
Location: Maryland
PostPosted: 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
View user's profile Visit poster's website
HighOctane
Newbie
Newbie

Offline Offline
Joined: Mar 15, 2005
Posts: 15
Location: Australia
PostPosted: 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
View user's profile Visit poster's website
HighOctane
Newbie
Newbie

Offline Offline
Joined: Mar 15, 2005
Posts: 15
Location: Australia
PostPosted: 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
View user's profile Visit poster's website
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index ⇒  Add-Ons & BlocksCoppermine
Page 2 of 2
All times are GMT
Go to page Previous  1, 2



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

Aiheesta Lisää...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy