Upload images front-end using Cooliris

Phoca Gallery - image gallery extension
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Upload images front-end using Cooliris

Post by Jan »

Hi, sorry I don't understand?
If you find Phoca extensions useful, please support the project
BeLakor
Phoca Member
Phoca Member
Posts: 11
Joined: 04 May 2010, 16:56

Re: Upload images front-end using Cooliris

Post by BeLakor »

The problem is this:
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?
So i try to attach the method piclens($cids) in OnUploadSubmitPG().
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? :cry:

BeLakor
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Upload images front-end using Cooliris

Post by Jan »

Hi,
Why? It isn't possible to attach the generation of RSS files during the upload of a new image?
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 demanding :-(

You have tell me that method OnUploadSubmitPG() is in
administrator\components\com_phocagallery\libraries\phocagallery\render\renderfront.php
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 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
Phoca Newbie
Posts: 7
Joined: 02 Feb 2014, 08:12

Re: Upload images front-end using Cooliris

Post by arthurf »

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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Upload images front-end using Cooliris

Post by Jan »

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 :idea:
If you find Phoca extensions useful, please support the project
arthurf
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 02 Feb 2014, 08:12

Re: Upload images front-end using Cooliris

Post by arthurf »

Thanks for promt reply as always, I will look into it as I can't commit to manually rebuilding the feeds.
Post Reply