Too Many Folders in Albums Too Many Folders in Albums
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Too Many Folders in Albums

Started by jenma, July 16, 2004, 08:59:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jenma

OK, I screwed up.  I was stupid enough not to realize there'll be such a huge number of folders in my Albums folder at the very beginning.  Now that I already have around 20 folders in there I would like to put them into sub-directories.   Is there a way to change the location of the files after they're being added to the albums now?

Joachim Müller

no, unless you know your way around in phpMyAdmin. Not recommended though - the human doesn't have to keep track of pic locations, that's what the database is for and is best at. Leave the folders as they are right now and start a new structure within the albums folder fro the pics you a starting from now on.

GauGau

Carsten

This week I fixed exactly the same problem jenma has.

Here's my solution:

1. Create subfolders like "year/event/" and copy your images and thumbs from "oldeventdir" to "year/event".

2.
a) Download a dump of you sql-database. (and don't forget to save a copy before editing)
b) Take a look in this sql-file with an editor of your choice.
c) find and replace all the 'oldeventdir/',' with  'year/event/','
d) save this version.

3.
a) Use phpMyAdmin to delete the old database and install the new one.
b) Control whether everything works.

4. Delete your old "oldeventdir" with all the images.

It's not very complicated, just try. If you fail, install the old version of you sql-file  ;)