Upload images front-end using Cooliris
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Upload images front-end using Cooliris
Hi, sorry I don't understand?
If you find Phoca extensions useful, please support the project
-
BeLakor
- Phoca Member

- Posts: 11
- Joined: 04 May 2010, 16:56
Re: Upload images front-end using Cooliris
The problem is this:
You have tell me that method OnUploadSubmitPG() is in
administrator\components\com_phocagallery\libraries\phocagallery\render\renderfront.php
but it not work...
Can you help me?
BeLakor
So i try to attach the method piclens($cids) in OnUploadSubmitPG().When the administrator upload a new image, the image is not display in Cooliris Gallery.
I have to access in back-end, select the category and the clic button "Cooliris" to generate RSS files.
Why? It isn't possible to attach the generation of RSS files during the upload of a new image?
You have tell me that method OnUploadSubmitPG() is in
administrator\components\com_phocagallery\libraries\phocagallery\render\renderfront.php
but it not work...
Can you help me?
BeLakor
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Upload images front-end using Cooliris
Hi,

You cannot only add some $id somewhere and expect the whole feature you need will be working.
- if user will upload image, it must be opened the RSS (xml) file and added there an item which was loaded
- but if you do it with whole category, you only overwrite all the RSS file with new items, if you want to do with only one image, you need to open this file, check which files are already there, and add or updated the uploaded image there and then save this files (and this is very difficult - working with file - and can cause slowing down the server performance). With such behaviour I have no experiences so cannot give any advice there
Jan
This is explained in the forum, creating new RSS after every image upload can slow down or stop server as this can be server performance demandingWhy? It isn't possible to attach the generation of RSS files during the upload of a new image?
Yes, but I don't have any experience with all the code it must be coded to work (Phoca Gallery has over 70.000 lines of codes and there are different dependencies)You have tell me that method OnUploadSubmitPG() is in
administrator\components\com_phocagallery\libraries\phocagallery\render\renderfront.php
You cannot only add some $id somewhere and expect the whole feature you need will be working.
- if user will upload image, it must be opened the RSS (xml) file and added there an item which was loaded
- but if you do it with whole category, you only overwrite all the RSS file with new items, if you want to do with only one image, you need to open this file, check which files are already there, and add or updated the uploaded image there and then save this files (and this is very difficult - working with file - and can cause slowing down the server performance). With such behaviour I have no experiences so cannot give any advice there
Jan
If you find Phoca extensions useful, please support the project
-
arthurf
- Phoca Newbie

- Posts: 7
- Joined: 02 Feb 2014, 08:12
Re: Upload images front-end using Cooliris
Hi Jan
I am wondering if this situation is still the same and it requires a manual recreation of the Cooliris RSS feed to show new images added to a category. I have a community site and I am using Phoca Gallery to get the visitors to the site to upload their own images of the community then display them on the Cooliris wall.
If it still requires manual intervention is there a way to set an automated process to recreate the RSS feed weekly or every few days ike a cron job or similar.
I am sure you understand it is not practical for someone to manually go into the backend every few days and recreate the RSS feed.
I am wondering if this situation is still the same and it requires a manual recreation of the Cooliris RSS feed to show new images added to a category. I have a community site and I am using Phoca Gallery to get the visitors to the site to upload their own images of the community then display them on the Cooliris wall.
If it still requires manual intervention is there a way to set an automated process to recreate the RSS feed weekly or every few days ike a cron job or similar.
I am sure you understand it is not practical for someone to manually go into the backend every few days and recreate the RSS feed.
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Upload images front-end using Cooliris
Hi, still the same situation.
Cron jobs, etc, this needs to be customized directly for the server.
The same with the creating an RSS by every upload of the image. This can have memory impacts on the server so this needs to be directly customized for the server
Cron jobs, etc, this needs to be customized directly for the server.
The same with the creating an RSS by every upload of the image. This can have memory impacts on the server so this needs to be directly customized for the server
If you find Phoca extensions useful, please support the project
-
arthurf
- Phoca Newbie

- Posts: 7
- Joined: 02 Feb 2014, 08:12
Re: Upload images front-end using Cooliris
Thanks for promt reply as always, I will look into it as I can't commit to manually rebuilding the feeds.