coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: jenma on July 16, 2004, 08:59:53 PM

Title: Too Many Folders in Albums
Post by: jenma on July 16, 2004, 08:59:53 PM
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?
Title: Re: Too Many Folders in Albums
Post by: Joachim Müller on July 17, 2004, 09:36:45 AM
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
Title: Re: Too Many Folders in Albums
Post by: Carsten on July 18, 2004, 02:35:59 PM
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  ;)