Page 1 of 1

[Feature Request] RSS file placement

Posted: 12 Jul 2008, 19:39
by commodo
Hi,

i installed Phoca with PicLens and it's very cool.
One fact that i didn't like was the RSS file placement which was out my control, so I hacked the code a bit and changed the location from images/phocagallery to images/phocagallery/rss.

I am using an Ubuntu server and my big HDD is used for storing pics and movies for the gallery; I am using a smaller HDD as a cache HDD for the gallery and am using symlinks. I want to keep the big HDD as clean as possible, meaning no extra files thrown in it's directory.

So, a quick explanation would be :

images/phocagallery is symlink to BIG_HDD
images/phocagallery/thumbs is symlink to CACHE_HDD
images/phocagallery/rss is symlink to CACHE_HDD

evidently the thumbs and rss symlinks are on the BIG_HDD; I am not a Linux expert to know if it can be done better but this is how i did the small hack for the RSS files and it works great

Re: [Feature Request] RSS file placement

Posted: 13 Jul 2008, 11:46
by commodo
correction

I also had to hack the 'thumbs' dir part of the code to work as mentioned above.

I thought that 'image/phocagallery/dirs' will be 'image/phocagallery/thumbs/dirs', but it's not like that
(it's 'image/phocagallery/dirs/thumbs').

I made a small hack in the 'phocagallery.php' in the administrator directory to change it to 'image/phocagallery/thumbs/dirs'.

the reason is that the pictures that i have are pretty important and the directories are only writable to sudo users, and i made a special cache directory on another HDD where Apache can write whatever it wants.

this was done (as mentioned before) with symlinks

Re: [Feature Request] RSS file placement

Posted: 13 Jul 2008, 21:22
by Jan
Hi, the problem is, there are thumbs folders for every category, for every folder, e.g.:

images/phocagallery/category1/thumbs
images/phocagallery/category2/thumbs

so maybe this
images/phocagallery/thumbs
can cause problems on your site :idea:

Re: [Feature Request] RSS file placement

Posted: 15 Jul 2008, 01:38
by commodo
well, it doesn't cause any problems at all; and it works pretty well with the hack i made

right now my server is holding the original photos on the BIG_HDD which is actually /images/phocagallery and the thumbs on CACHE_HDD which is on /images/phocagallery/thumbs

the dir structure in /images/phocagallery/thumbs is really a mirror structure of the /images/phocagallery structure

maybe i will chnage later from /images/phocagallery/thumbs to /images/thumbs or something of the sort

Re: [Feature Request] RSS file placement

Posted: 16 Jul 2008, 22:40
by Jan
if it works, then it is great, Jan