Greetings to you all :-)
I have published a new plugin [extension by plg] Contribute to Demo in order to start the project "participative demo". As said on [Forum, topic 26262] Happy new year 2016 with Piwigo :
* get your Piwigo highlighted when participating to the Piwigo demo. The idea is to have high quality and fresh content in the demo and give credits to Piwigo community for that.
The idea is quite simple: if you wish to participate, ie display some of your photos in Piwigo demo, install the plugin, edit the photo and click on "contribute to demo".
This is a first version of the plugin and the launch of the project. Things will get improved step by step but this first version should already offer the basic feature.
Offline
First test says error calling piwigo demo. This is done from a mobile phone. I'll try from a desktop later
Offline
OK, thank you for this first test. It's certainly a very technical issue because I have implemented a cross-domain request with Ajax. When I was implementing it I had 2 Piwigo installs on "localhost" so there was no problem. But when I tested live, I realized the cross-domain issue. I fixed it (in my case, with Firefox on Linux) with a specific header(), see [Github] Piwigo-contribute_to_demo commit 6fe30b95
... but Iimagine it doesn't solve everything! I think I will have to reimplement the HTTP request to piwigo.org/demo another way (with a fetchRemote in PHP)
Offline
Well... my test on MacOSX (Firefox or Chrome) ends with an "error calling piwigo demo". Damned!
Offline
New version 0.0.2beta should fix the problem (I do all cross-domain HTTP requests from PHP with fetchRemote)
Offline
Cross domain requests are usually done with jquery by specifying a jsonp. Basically it inserts a script html element which does not have a security issue
Offline
I have no idea if it works. I have an animated gif always displayed and pressing the link doesn't give any feedback at all.
Offline
OK. It seems I had an issue with the strip block and carriage returns on the class contrib ?
Once corrected, I press the link, the loader appears and no more feedback ...
it appears that ws responds invalid uuid
Offline
rvelices wrote:
OK. It seems I had an issue with the strip block and carriage returns on the class contrib ?
Once corrected, I press the link, the loader appears and no more feedback ...
it appears that ws responds invalid uuid
in addition error log shows undefined index result in...contrib... functions line 89
Offline
Hum, I suspect you don't allow direct HTTP access to the original. The Piwigo demo gets the original photo with this kind of direct URL. I may have to find a workaround.
The demo has received 4 contributions from another Piwigo, see http://piwigo.org/demo/index.php?/category/102
Offline
I just published version 0.0.3beta, which directly sends the photo in the POST HTTP requests (instead of letting the demo perform the download).
Offline