This plugin will allow you to display a list of Moodle courses for a specific user of Moodle.
This section describes how to install the plugin and get it working.
Install: 1. Upload
moodle-courselist-widget.php
to the /wp-content/plugins/
directory 1. Activate the plugin through the 'Plugins' menu in WordPress 1. Place the new Moodle Courselist widget into your theme's sidebar.
IMPORTANT: You will need to edit the code of this plugin in 3 places in order for this to work properly. This will most likely involve a web administrator as you will need database connection settings for Moodle. This plugin is designed for use by educational institutions. Changes are clearly commented in the code with //CHANGE.
Here are the code changes you must edit:
Line 35 (Your Moodle Site URL)- action="http://yourmoodlesiteurl.com/login/index.php
Line 44 (Moodle Database Connection)- mysql_connect("localhost","MySQLusername","MYSQLpassword");
Line 76 (Your Moodle Site URL)- "http://yourmoodlesiteurl.com/course/view.php?id='.$course->courseid.'"
No comments:
Post a Comment