Tuesday 12 September 06

Found that for now we can just carry on using the ‘old’ Moodle 1.6 functions for roles and permissions and we’ll update to the new 1.7 functionality later in October.
Chris and I are getting very close to having the Jabber server properly connected up to Moodle – still a few more things to do, like checking that the Jabber server can log a user in based on being passed the Moodle cookies. Had a bit of a nightmare yesterday when I tried to connect my Moodle up to Chris’s desktop PC, and I updated the blocks setting, unfortunately the firewall (or something) was blocking the connection between my dev Moodle and Chris’s PC – the resulted in my Moodle site just hanging. I couldn’t go back and edit the setting (because the site was hanging). Eventually got this fixed by commenting out the code which tries to connect, which then allowed me to edit the block setting. I had hoped to just be able edit the settings in the Moodle database, but I couldn’t find where the global settings are stored for a block – though I could find where they are stored for a block instance.

I then tried to implement the stream_set_timeout() function (to stop this happening in the future) – so that fsockopen didn’t just hang the server, but I couldn’t get it to work correctly. I could really do with getting this working so that we can return a decent error message if the Jabber server isn’t available for some reason (but Moodle is still running).

I’m also going to implement some security on the group and user services provided so that the results will only be returned if they have originated from one of the given IP addresses.

Leave a Reply