forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: soccerbs on October 27, 2004, 07:00:14 am

Title: ./albums/ outside of coppermine root?
Post by: soccerbs on October 27, 2004, 07:00:14 am
I moved my albums/ directory outside of the coppermine root.  For example coppermine is installed in httpdocs/gallery and I moved my album to httpdocs/images/storiesalbums.  I could not upload pictures and I had the path correct in the config.   

My album is working fine for all the images i batch loaded using ftp.  I just could not use the single file upload.  The directorys are all set to 777, but I still get the upload error that "has been asked a million times"

After a little time I think I solved my problem, but I am still a little confused.....

I peeked in the uploads.php it seemed to me that ./albums/edit was hardcoded in several places.    I changed this to my new directory location ../imagesstories/albums/edit and it seemed to work.  Does this upload.php file not pull the directory info from the config file?  Should it?  Should I have approached this differently?  Thanks

Brad

PS this coppermine gallery is sweet and I have it working well with my mambo install - not fully integrated by any means, but now I can share my images between the two!
Title: Re: ./albums/ outside of coppermine root?
Post by: Joachim Müller on October 27, 2004, 07:08:37 am
there are indeed some buggy lines of code that have "albums/" hardcoded in them, instead of respecting the albums folder settings from the config. Those bugs should have been ironed out by now in the cvs, but apparently not in the package that is available for download. You should either modify the files yourself (enough PHP know-how needed) or get the files from the web cvs (http://cvs.sourceforge.net/viewcvs.py/coppermine/stable/) (stable branch). If you're feeling adventurous, you could check out the devel version (cpg1.4.0) as well, but you have to understand that you will have to use all devel files or none (no mish-mash of file versions), and there's no suport for it (the devel version is not recommended yet for production sites).
You should however use a relative path (something along the lines "../images/storiesalbums/") instead of an absolute path in your coppermine settings anyway.

Joachim
Title: Re: ./albums/ outside of coppermine root?
Post by: redtroll on November 12, 2004, 10:53:23 am
What if I whish to save my album on another disk?
I would prefer if I was able to specify the real path eg, /home/user1/albums, not relative path.
Title: Re: ./albums/ outside of coppermine root?
Post by: Joachim Müller on November 14, 2004, 01:43:55 pm
That's easy: leave the albums path in coppermine config as it is right now, and use symlinks. Create one symlink in the coppermine dir that points to wherever you want.

Joachim
Title: Re: ./albums/ outside of coppermine root?
Post by: redtroll on November 14, 2004, 03:20:22 pm
I allready uses symlinks, but it would be nice if it was possible to enter a absolute UNC path or just an ordinary absolute path in Coppermine.

/Paul
Title: Re: ./albums/ outside of coppermine root?
Post by: Joachim Müller on November 14, 2004, 03:37:52 pm
I think the possibility to specify absolute paths was not included as an option into coppermine, because of two reasons:
So basically, what you request would be technically possible, but for ease of use is not recommended. Advanced users like you should be able to work with relative paths and the workarounds discussed above, it's no "life or death" situation, just nice to have. Leaving everything as-is just makes it easier for newbies - coppermine setup is hard enough already for them (making life hard enough for us supporters as well ;)), that's why I'd vote for allowing only relative paths for that setting in the future.

Joachim