Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Aug 2004
    Posts
    503
    Plugin Contributions
    0

    Default Sorting the upload directory

    Hi,

    We have a lot of upload directories and they are seemingly random in their listing under "upload to directory"

    Where/what do I change to make this listing alphabetical?

    Thanks

    Rick

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Sorting the upload directory

    What version Zen Cart are you using?

    I could of sworn I just alpha sorted all of those in v1.3.5 ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Aug 2004
    Posts
    503
    Plugin Contributions
    0

    Default Re: Sorting the upload directory

    We are in the process of redesigning the site using the newest version so we have not upgraded and are on version 1.2.6

    Thanks

    Rick

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Sorting the upload directory

    Here is an example in the collect_info.php for sorting the images directory:
    PHP Code:
      $dir = @dir(DIR_FS_CATALOG_IMAGES);
      
    $dir_info[] = array('id' => '''text' => "Main Directory");
      while (
    $file $dir->read()) {
        if (
    is_dir(DIR_FS_CATALOG_IMAGES $file) && strtoupper($file) != 'CVS' && $file != "." && $file != "..") {
          
    $dir_info[] = array('id' => $file '/''text' => $file);
        }
      }
      
    sort($dir_info); 

    What is added is the line:
    PHP Code:
      sort($dir_info); 
    A search in the Developer's Tool Kit bottom input box on:
    $dir_info

    For the Admin should find all of these ... and you can add the:
    PHP Code:
      sort($dir_info); 
    Or ... wait until you are upgraded to v1.3.5 ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Aug 2004
    Posts
    503
    Plugin Contributions
    0

    Default Re: Sorting the upload directory

    Thank you!!

 

 

Similar Threads

  1. v154 Upload to directory
    By adb34 in forum General Questions
    Replies: 3
    Last Post: 16 Jul 2016, 07:48 PM
  2. No subfolder in the images upload to directory drop down
    By Skullman in forum Customization from the Admin
    Replies: 3
    Last Post: 1 May 2013, 11:10 PM
  3. Upload, via FTP, the whole program into a directory on my server
    By alphamedit in forum Installing on a Windows Server
    Replies: 2
    Last Post: 22 Oct 2010, 11:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg