coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: Colliope on June 10, 2007, 09:11:57 PM

Title: rename albums folder?
Post by: Colliope on June 10, 2007, 09:11:57 PM
I've been creating folders (/cpg143/albums/foldername) to upload pics to and
then using Batch Add to add the pics to my Gallery.

I occassionally rename Albums in the Gallery. Is it ok to rename the actual folder
that they're located in as well to keep them matched-up?

C
Title: Re: rename albums folder?
Post by: Nibbler on June 10, 2007, 09:41:56 PM
Yeah, but you'll need to update the database (pictures table, filepath field) manually.
Title: Re: rename albums folder?
Post by: Colliope on June 11, 2007, 12:12:24 AM
Quote from: Nibbler on June 10, 2007, 09:41:56 PM
Yeah, but you'll need to update the database (pictures table, filepath field) manually.

If it's simply changing a path name somewhere, I can do that. But where do I do it? From phpMyAdmin or from somewhere in Coppermine itself?

Thanks,
C
Title: Re: rename albums folder?
Post by: Nibbler on June 11, 2007, 01:24:47 AM
phpmyadmin, hence 'manually'. If you search the board you will find previous posts about this, but you need to run a query like

UPDATE cpg_pictures SET filepath = 'newpath' WHERE filepath = 'oldpath'

If you are not familiar with phpmyadmin make a backup of the table first.
Title: Re: rename albums folder?
Post by: Colliope on June 14, 2007, 01:16:47 AM
Thanks.
Title: Re: rename albums folder?
Post by: Colliope on October 28, 2007, 05:57:55 PM
Sorry for the time delay, lost the time to tackle this 'til now.
Anyway, I have looked around phpMyAdmin and feel comfortable manually typing in new path names. However, I don't see any button/option labeled "backup database" or whatnot. Can you instruct me on how to make a backup before I proceed?
Thankyou,
C
Title: Re: rename albums folder?
Post by: Nibbler on October 28, 2007, 07:03:48 PM
It's called 'Export'. Try searching the web if you need a tutorial.
Title: Re: rename albums folder?
Post by: Joachim Müller on December 31, 2007, 03:59:49 PM
Unrelated reply to this thread split into separate thread (http://forum.coppermine-gallery.net/index.php?topic=49381.0). Locking this one.