Last week we released PHP support for the Social Business Toolkit. We have now introduced some important changes: support for multiple endpoints to the WordPress plugin (this allows users to configure their WordPress widgets to use different endpoints), a Moodle block (Moodle is a open-source learning management system written in PHP currently serving over 80,000 universities).
An experimental version of this block can be be found on our Github repository under php/moodle-block.
In addition, we have changed the styling of the included samples and fixed the following bugs:
- The endpoint name not being passed into the CredentialStore when fetching the OAuth request token, meaning that the default endpoint name was used. If an endpoint with by such a name did not exist, the OAuth dance would fail.
- A wrong argument was passed into constructor of the FileGrid, resulting in the default endpoint name being used. Again, if an endpoint with by such a name did not exist, the file grid would fail when displaying files.
- The PHP Proxy would fail to forward file upload requests. This was the due to the fact that PHP makes raw post data being unavailable when submitting multipart data. We have found a work-around and file uploads now work.
We also removed the endpoint’s logout button that appeared below each widget to make the UI more intuitive, changed the ordering of the input fields in the endpoint configuration dialog box and included a community files with the Moodle black that allows the user to select a community, a list of files for the given community and provide the option to upload new files to the selected community (see the screenshot below).
Oh, and alongside refactoring a lot of code, we also updated our Wiki pages (so make sure to take a look if you haven’t done so yet).