Updating the Moodle Frontpage Summary through the database

You might have the need to update the Moodle front page summary through the database rather than through the UI. For example you might get an error editing the summary after a clone, or you might want to script the cloning process and change the frontpage text through the database. Here are the steps: Update…

Uninstalling a Moodle Plugin and forcing reinstallation

The easiest way to get moodle to re-run installation is to update the version in version.php. However, if you want to be sure it makes any schema changes etc then remove the plugin version from the mdl_config_plugins table. Note you can leave the other configuration there if required to save re-setting up the plugin. The…

Access the WSDL for a Moodle SOAP service

When you enable SOAP based web services through Moodle: Site administration > Plugins > Web Services > Overview (follow the steps) You can access the WSDL for the SOAP based service by passing the flag &wsdl=1 in your URL e.g. http://yourmoodle.com/webservice/soap/server.php?wsdl=1&wstoken=tokenifrequired

Assign site admins through the database

The following steps can be used to add your user as a siteadmin in the database if required. Step 1: Find your moodle user ID select id from mdl_user where username = ‘{username}’; Step 2: Get the list of current siteadmin IDs select value from mdl_config where name = ‘siteadmins’; This gives you a list…