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
[Feature Request] RSS file placement
-
- Phoca Newbie
- Posts: 5
- Joined: 12 Jul 2008, 19:26
Re: [Feature Request] RSS file placement
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
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
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: [Feature Request] RSS file placement
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
images/phocagallery/category1/thumbs
images/phocagallery/category2/thumbs
so maybe this
images/phocagallery/thumbs
can cause problems on your site
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 5
- Joined: 12 Jul 2008, 19:26
Re: [Feature Request] RSS file placement
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
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
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: [Feature Request] RSS file placement
if it works, then it is great, Jan
If you find Phoca extensions useful, please support the project