our website<\/a>.\n <\/li>\n<\/ol>\n<\/p>\n
\n Optionally, once you have the basics running, you may want to further integrate MSG into Moodle, by having users presences displayed in other parts of the Moodle site. For example, you may want to show users MSG presence status in the Moodle forums. To do this you can make use of the PHP function \u00e2\u20ac\u0153display_jabber_state\u00e2\u20ac\u009d. To use this add the following line to the top of the Moodle PHP page:
\n
\nrequire_once($CFG->dirroot.'\/blocks\/msg\/lib.php');
\n<\/code>\n <\/p>\n\n This will include the MSG PHP library. Then you can use
\n
\ndisplay_jabber_state($userid,false);
\n<\/code>\n <\/p>\n\n whereever you would like the presence state displayed. The first parameter ($userid) is the ID of the user you want to display the presence state for and the second parameter (a boolean value) determines whether or not to show the presence state in text format next to the presence icon. The presence state will only be displayed for uses who have opted in to using MSG and who share a course with the current user (i.e. both users must have at least one course enrolment in common).\n <\/p>\n","protected":false},"excerpt":{"rendered":"
MSG Installation Guide To install MSG please first download the package from: http:\/\/technologies.kmi.open.ac.uk\/msg\/download.php?file=msgpackage_v2.0.zip Then follow the instructions below. We have also produced a set of installation videos to take you through the process of installing MSG: Part 1: Overview and Setting up Openfire Part 2: Customising Openfire Part 3: Setting up BuddyXML Part 4: Testing […]<\/p>\n","protected":false},"author":9,"featured_media":0,"parent":26,"menu_order":2,"comment_status":"closed","ping_status":"open","template":"","meta":[],"_links":{"self":[{"href":"http:\/\/technologies.kmi.open.ac.uk\/msg\/wp-json\/wp\/v2\/pages\/33"}],"collection":[{"href":"http:\/\/technologies.kmi.open.ac.uk\/msg\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/technologies.kmi.open.ac.uk\/msg\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/technologies.kmi.open.ac.uk\/msg\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"http:\/\/technologies.kmi.open.ac.uk\/msg\/wp-json\/wp\/v2\/comments?post=33"}],"version-history":[{"count":0,"href":"http:\/\/technologies.kmi.open.ac.uk\/msg\/wp-json\/wp\/v2\/pages\/33\/revisions"}],"up":[{"embeddable":true,"href":"http:\/\/technologies.kmi.open.ac.uk\/msg\/wp-json\/wp\/v2\/pages\/26"}],"wp:attachment":[{"href":"http:\/\/technologies.kmi.open.ac.uk\/msg\/wp-json\/wp\/v2\/media?parent=33"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}