forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Permissions & Access Rights => Topic started by: krimata on December 16, 2004, 10:02:41 pm

Title: Changing directory of album
Post by: krimata on December 16, 2004, 10:02:41 pm
How do you change the directory of location of where you install coppermine for a photo album that has already been set up?
Title: Re: Changing directory of album
Post by: krimata on December 16, 2004, 10:05:41 pm
nevermind! it was a lot simplier than i though...
Title: Re: Changing directory of album
Post by: djjava on January 04, 2005, 07:40:44 am
This is the exact question I am looking for an answer for.  I can see the location in db that defines the directory location but am wondering if there is an easier way.....is there some kind of config file that i am missing?  Not a huge php/or mysql guru so any help would be much obliged.

G
Title: Re: Changing directory of album
Post by: Joachim Müller on January 04, 2005, 07:52:05 am
coppermine stores the path to the files/pics as relative paths to the albums folder, so you're able to rename your coppermine folder (or move it around on the server) to anything you like. You only have to reflect your changes by visiting coppermine config after you have renamed and change the "target for ecards link" to the new folder name.
Example: if your coppermine gallery currently resides in http://www.yoursite.tld/coppermine/, just FTP to your site and change the name of the folder "coppermine" to "photos" -> your coppermine gallery will then be accessible by entereing the url http://www.yoursite.tld/photos/. That's all.
If you want to change the name of the albums folder, just go to coppermine config and change the name there (there's a text field for this purpose), but understand that you mustn't do that once pics/files exist in your coppermine database, you can only do so if you're doing a fresh install. If you already have files/pics in your db, you have to reflect the changes in your database entries as well by running a query (e.g. in phpMyAdmin) - not recommended for newbies. There's a bug in cpg1.3.2 (that has been ironed out only in the most recent files in the stable branch of the cvs) that has the word "albums" hardcoded (instead of respecting the setting you chose in coppermine's config), so you'll have to get the most recent checkout from the cvs.
In short terms: don't rename the albums folder, there's little point in that, as your users won't notice the difference, and you'll have to go through some hassles for apparently no reason at all.

Joachim
Title: Re: Changing directory of album
Post by: kegobeer on January 04, 2005, 07:53:11 am
If ou want to rename the /albums directory, rename it in your config page (The album directory), then rename the directory with your ftp program.

Oops, Joachim beat me to it.
Title: Re: Changing directory of album
Post by: djjava on January 04, 2005, 04:55:29 pm
Thank u very much, that was extremely informative! But what if I dont want to change the install dir of Cmine or the name of the albums directory.  If i have the \albums dir and subfolders underneath called \Paris, \Italy, \Spain and the corresponding albums already created in Cmine......but I then create a new folder under the \albums dir called \Newest Pix and I want to move \Paris, \Italy and \Spain under \Newest Pix......then what?  Would I still have run a query that would alter something in the DB?

G
Title: Re: Changing directory of album
Post by: kegobeer on January 04, 2005, 08:54:27 pm
What you are describing is totally unnecessary, as Coppermine doesn't care where your files are physically located.  Moving files to a "newest pics" directory would be a never ending quest, because each time you upload pics, they are of course the newest.  When would you move files out to a "not so newest pics" directory?

I understand wanting to keep things neat and tidy on your server, but at some point you have to just create a heirarchy of directories that won't change (vacations, countries, family, friends, etc) and upload your files to the approrpriate directory.

If you did decide to physically move your directories around, you would indeed have to run a query that would change a directory based on a where clause.