Piwigo.org

You are not logged in. (Register / Login)

Announcement

#1 2016-04-20 10:07:00

plg
Piwigo Team
Location: Nantes, France, Europe
Registered: 2002-04-05
Posts: 13060
Website

Contribute to Demo

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.


Latest blog post (March 23th 2017) Piwigo.com Enterprise plans, now official!

Offline

 

#2 2016-04-20 10:25:18

rvelices
Piwigo Team
Registered: 2005-12-29
Posts: 1953
Website

Re: Contribute to Demo

First test says error calling piwigo demo. This is done from a mobile phone. I'll try from a desktop later

Offline

 

#3 2016-04-20 10:30:54

plg
Piwigo Team
Location: Nantes, France, Europe
Registered: 2002-04-05
Posts: 13060
Website

Re: Contribute to Demo

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)


Latest blog post (March 23th 2017) Piwigo.com Enterprise plans, now official!

Offline

 

#4 2016-04-20 10:35:48

plg
Piwigo Team
Location: Nantes, France, Europe
Registered: 2002-04-05
Posts: 13060
Website

Re: Contribute to Demo

Well... my test on MacOSX (Firefox or Chrome) ends with an "error calling piwigo demo". Damned!


Latest blog post (March 23th 2017) Piwigo.com Enterprise plans, now official!

Offline

 

#5 2016-04-20 13:40:57

plg
Piwigo Team
Location: Nantes, France, Europe
Registered: 2002-04-05
Posts: 13060
Website

Re: Contribute to Demo

New version 0.0.2beta should fix the problem (I do all cross-domain HTTP requests from PHP with fetchRemote)


Latest blog post (March 23th 2017) Piwigo.com Enterprise plans, now official!

Offline

 

#6 2016-04-20 14:24:07

rvelices
Piwigo Team
Registered: 2005-12-29
Posts: 1953
Website

Re: Contribute to Demo

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

 

#7 2016-04-20 14:31:37

rvelices
Piwigo Team
Registered: 2005-12-29
Posts: 1953
Website

Re: Contribute to Demo

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

 

#8 2016-04-20 17:30:36

rvelices
Piwigo Team
Registered: 2005-12-29
Posts: 1953
Website

Re: Contribute to Demo

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

 

#9 2016-04-20 17:37:39

rvelices
Piwigo Team
Registered: 2005-12-29
Posts: 1953
Website

Re: Contribute to Demo

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

 

#10 2016-04-20 20:24:19

plg
Piwigo Team
Location: Nantes, France, Europe
Registered: 2002-04-05
Posts: 13060
Website

Re: Contribute to Demo

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


Latest blog post (March 23th 2017) Piwigo.com Enterprise plans, now official!

Offline

 

#11 2016-04-21 15:46:09

plg
Piwigo Team
Location: Nantes, France, Europe
Registered: 2002-04-05
Posts: 13060
Website

Re: Contribute to Demo

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).


Latest blog post (March 23th 2017) Piwigo.com Enterprise plans, now official!

Offline

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2017 · Contact