Hi Etienne!
I have been looking for a way to integrate Gallery3 and WP and found Florian’s semi-abandoned (or totally abandoned?) plugin. I was rather grateful to see that you volunteered to pick up the work where he has left it.
2 months have passed, and no answers from Florian, so I guess he has really abandoned his project. Such a pity.
Now, I’ve downloaded your own copy from GitHub and installed it. Unfortunately, there seem to be a few bugs. After configuring it (it was nice to see that G3Client’s configuration options remain available on your version as well!), I couldn’t get the visual mode on the posts to work — it remains blank. Text mode works fine. One clue I have is that you’re using cURL instead of Florian’s HTTP package.
PHP Warning: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set
This error is typical of cURL, running under PHP 5.4 with open_basedir restrictions in effect — I have seen it on many, many plugins, and it will become more noticeable in the next months, as everybody (namely, shared hosting providers who rely on open_basedir restrictions to limit what their clients can do) moves to PHP 5.4 and 5.5.
It would be better, since you are already replacing Florian’s HTTP code, to stick with WP’s own HTTP API. It’s not only efficient, but it comes with all WP installs (unlike cURL), and it will test for a variety of methods to see what works (so, if cURL is, indeed, installed, it might use that instead; if not, it will use direct socket connections, and so forth).
Because of that, I couldn’t test it more. A few comments:
– the link to https://my.path.com/rest/ will obviously not show anything (it’s the first menu option). I guess you’re just testing it out for some reason.
– speaking of tests, it would be nice if you could provide a visual feedback that the REST call is working
– the links at the top (un-styled) saying “Add photos to your Gallery3 | Configure Gallery3 media picker” do not work — the first goes to /rest/, the second has the wrong URL under a multisite install
– it would be nice to have the client settings copied over to the media picket settings, to save the trouble of typing it twice!
– on the media picker, it’s not clear what the “Gallery URL” is, since the client settings uses “Rest API URL”. So what is it?
– on the WP left sidebar, Media > Gallery3 does not work (it calls https://my.path.com/rest/)
– I couldn’t find a list of [g3client] options anywhere. It would be nice to have an extra menu option or something with a list of shortcode options!
Actually, I was thinking of taking a look at the original G3Client plugin, because I wish to have a few more options on the widget. It’s incredibly simplistic! Just one random picture! The old WPG2 plugin I used for Gallery2 had a lot of options…
Anyway, nice work, and thanks for continuing the development! I’m glad someone is doing a great job of continuing the plugin work while we wait for Florian to come back, wherever he might be. It would be nice if he added you as a co-developer so that you could change his code directly and keep G3Client updated.
Florian, where are you? ??