Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

htmlarea wont sort images


eternity575

Recommended Posts

im using osc with htmlarea 2.03 in it.

in the image manager, the image filenames are randomly sorted. any chance of having a solution?

please dont tell me to change editor, too much of a hassle for such a small thing :)

thnx

 

I have been wanting to do the samething. Does anyone know how? Thanks

Link to comment
Share on other sites

im using osc with htmlarea 2.03 in it.

in the image manager, the image filenames are randomly sorted. any chance of having a solution?

please dont tell me to change editor, too much of a hassle for such a small thing :)

thnx

 

I'm not sure what version of HTML Area I'm using, but I struggled with the same issue. The solution I found is pretty simple (hope it works for you).

 

In the /htmlarea/popups/ directory, you will find a file called "lister.php". In that file you will find a function called "listDirs()". At the very end of that function, you will see:

 

// return the Directories
return $result;

Change this to:

 

// sort result
sort($result);

// return the Directories
return $result;

 

This will sort the contents of the $result array alphabetically. You will also need to make the exact same change to the "listFiles()" function directly below the "listDirs()" function.

 

Good luck!

Link to comment
Share on other sites

  • 6 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...