hi,

works for me - great.

just a quick comment: in file wookie.php line 210 you should also check whether there is an ending slash or not by calling you checkWookieURI() function:

$widgetGallery = new Gallery(checkWookieURI($wookieConf['server']));

furthermore, the gallery gives an error if no valid wookie url is provided. so you could link that to your connection testing. only if a connection was established successfully, instantiate a new widget gallery in line 210. you do connection testing just some lines before.

-bernhard


Raido Kuli wrote:
Yeah, that can be done.

I'll work one the code a little and get back here with updates when
they're ready.

Update:
                Add Gallery support from Elgg/Moodle plugin
                Adjust width/height via web-interface
                Configure Wookie URI and API key via web-interface
                Display some info messages:
                        a) If loading Widget failed -> "Could not load Widget 
(Connection failed)"
                        b) API key or/and Wookie URI not set
                        c) "Connection failed / Connection successful", when 
configuring Wookie URI.
                        d) If no widget selected via Gallery, display -> No 
Widget
selected! (widgetid empty)
                'shareddatakey' parameter set to -> 
"wordpress_someWidgetIdHere";

Waiting for testing feedback.

At the moment this code could be better, but hopefully in near future
there's going to be plugin framework, when that happens, this plugin
is going to be rewritten.

Reply via email to