Advanced search  

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

Pages: [1]   Go Down

Author Topic: Too Many Folders in Albums  (Read 3256 times)

0 Members and 1 Guest are viewing this topic.

jenma

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Too Many Folders in Albums
« 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?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Too Many Folders in Albums
« Reply #1 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
Logged

Carsten

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 38
Re: Too Many Folders in Albums
« Reply #2 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  ;)
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.