David - Many thanks for sharing the Adobe Connect block. I have a some comments, observations, and concerns about the block which I hope will be helpful.
1) Generally speaking, for security reasons it is preferred not to store the passwords, especially as simple text values to the Moodle database. If you are going to store them, I think it would be good store them in config_plugins (since the block is a plugin) rather than in config.
2) There seems to only be the option for one user to use the block. It would make since to me that you could have a block setting for each course or perhaps better for each user. The you may want to consider using the user_preferences table to store some of the data.
3) When loading the page with false host information, etc. I received a variety of PHP notices. Ideally I would work to avoid displaying these. I did not look at the code that produced them but if it is unable to connect then it should simply stop and display the error. I am attaching a screen capture of the various PHP notices I received.
4) The error message I received was [[Can\t get admin session]] which did not appear to be in the language file.
5) It appears that you can only add the block to courses and not the front page. This appeared counter-intuitive to me since there was only the option to store one username and password.
At this point, I am on the fence as to whether it would really be helpful/recommended to add it to CONTRIB (mostly because of the concern with the password). But the other issues make me question the overall helpfulness of the block. I would be willing to add it to Moodle's CVS server for you to continue working on it but I would recommend waiting to share it publicly with folks unless you wanted to invite others to help you with testing and providing feedback. If you choose to store the password in the database, I would recommend encrypting and decrypting it with something like mcrypt. At this point, if you could let me know what would be the best way to move forward. If you prefer to work on improving the code on Moodle's CVS that is fine or you may prefer just to hack away at it on your own a little bit. Either way, let me know how I can best be supportive. If you have any questions just let me know.
Peace - Anthony
David - Many thanks for sharing the Adobe Connect block. I have a some comments, observations, and concerns about the block which I hope will be helpful.
1) Generally speaking, for security reasons it is preferred not to store the passwords, especially as simple text values to the Moodle database. If you are going to store them, I think it would be good store them in config_plugins (since the block is a plugin) rather than in config.
2) There seems to only be the option for one user to use the block. It would make since to me that you could have a block setting for each course or perhaps better for each user. The you may want to consider using the user_preferences table to store some of the data.
3) When loading the page with false host information, etc. I received a variety of PHP notices. Ideally I would work to avoid displaying these. I did not look at the code that produced them but if it is unable to connect then it should simply stop and display the error. I am attaching a screen capture of the various PHP notices I received.
4) The error message I received was [[Can\t get admin session]] which did not appear to be in the language file.
5) It appears that you can only add the block to courses and not the front page. This appeared counter-intuitive to me since there was only the option to store one username and password.
At this point, I am on the fence as to whether it would really be helpful/recommended to add it to CONTRIB (mostly because of the concern with the password). But the other issues make me question the overall helpfulness of the block. I would be willing to add it to Moodle's CVS server for you to continue working on it but I would recommend waiting to share it publicly with folks unless you wanted to invite others to help you with testing and providing feedback. If you choose to store the password in the database, I would recommend encrypting and decrypting it with something like mcrypt. At this point, if you could let me know what would be the best way to move forward. If you prefer to work on improving the code on Moodle's CVS that is fine or you may prefer just to hack away at it on your own a little bit. Either way, let me know how I can best be supportive. If you have any questions just let me know.
Peace - Anthony