Questions tagged [moodle]

Moodle is an open source learning management system (LMS) written in PHP.

Moodle is an Open Source Course Management System (CMS), also known as a Learning Management System (LMS) or a Virtual Learning Environment (VLE). It has become very popular among educators around the world as a tool for creating online dynamic web sites for their students. To work, it needs to be installed on a web server somewhere, either on one of your own computers or one at a web hosting company.

Originally developed by Martin Dougiamas in Australia, it is used world-wide by many places of learning.

According to Moodle.org's stats, as of February 2013, there are over 77,000 registered sites using Moodle in over 225 countries, serving over 7 million courses with over 66 million users.

Useful links

Useful Developer Links

Distributions

3019 questions
0
votes
1 answer

Custom configuration in Moodle TinyMCE editor and relative URL/addressing to images

How to custom set configuration in Moodle for TinyMCE editor to keep and save relative addresses/URLs? see image 1. How to ensure how to enable/retain relative URL addresses in Moodle (TinyMCE editor)? We use TinyMCE to edit content in the Moodle…
0
votes
1 answer

Moodle: Error In fetching capabilities of logged-in User

class block_add extends block_base { function init() { $this->title = get_string('pluginname', 'block_add'); } function applicable_formats() { return array('all' => true, 'tag' => false); } function specialization() { $this->title =…
0
votes
1 answer

replace $_SESSION superglobal with $SESSION

do we still have to replace $_SESSION php superglobal by Moodle global called $SESSION or not ? $_SESSION -> $SESSION
ElCarraco
  • 51
  • 4
0
votes
1 answer

hosting PHP application within moodle LMS

Good day, I would like to know if there is a way to run a php application within the moodle LMS. Prior to implementation in php, the information was in the form of static html documents, which were simply uploaded into folder and accessing the files…
kyleED
  • 2,327
  • 2
  • 18
  • 23
0
votes
1 answer

I want to print all user role by id into my footer

I want user roles in any part of my block not necessary in footer, kindly help me as I am newbie in php and moodle too, here below is the code. class block_add extends block_base { function init() { $this->title =…
0
votes
1 answer

Observer function is not redirecting to my custom page in Moodle

I am fairly new to Moodle. I am working on a custom plugin in which I wanted to make a pop up that shows after the user has logged in for the first time. Exploring the forum, I came up with the idea of catching event and triggering something.…
Shihab
  • 17
  • 6
0
votes
0 answers

Backup pending for this resource

I have a site customized by moodle 3.9.2. Now, I want to delete a course but I can't. An announcement "Backup pending for this resource" appears when I delete it. Please help me.
0
votes
1 answer

Fatal error: $CFG->dataroot is not configured properly, directory does not exist or is not accessible! Exiting

I created moodle site in infinity free hosting But when I open the site it is appear this message Fatal error: $CFG->dataroot is not configured properly, directory does not exist or is not accessible! Exiting.
Rana
  • 1
  • 3
0
votes
1 answer

Moodle - Using "Old code" when I am actually using the newest version

I have had too many problems with my ubuntu moodle server, so now tried to do a factory resetting of my server and install everything anew. Even though I checked out with the newest git repo available, I am still getting the following error…
0
votes
1 answer

Login into moodle with another website's google sso id_token

What if a site is already logged in with google sso and has it's sso id_token and by using of that wants to login into moodle website by bypassing it's login page. Is this achievable from Oauth2? If yes then how? If not possible then one may have to…
Bhavesh Tilvani
  • 193
  • 1
  • 10
0
votes
1 answer

I need to get average grade per assignment in mysql sub-query for moodle

I need to calculate the average grade(gg.finalgrade) per assignment(a.name) in Moodle using a subquery(highlighted). I cannot figure this out SELECT u.username, u.firstname, u.lastname, u.id, c.fullname AS…
0
votes
1 answer

Moodle having trouble with updating

I am running a moodle server and wanted to upgrade it to 3.11.8+, which resulted in the following installation errors: I already removed any external Plugins form the installation, so I guess the error is with either my database or moodle code…
0
votes
1 answer

Form doesn't validate after submitting in moodle

I am trying to create a form whose structure depends on the parameter in the url. If no parameter is specified in the url, an error message should be displayed. Depending on the id, a database query is performed and the form is filled with…
Scorch
  • 153
  • 2
  • 17
0
votes
1 answer

Sending a message to an user in moodle

I am currently trying to implement what should be a simple task and send a message to one and / or more users via Moodle. In the process I found 2 guides, which confused me at first. Messaging 2.0 and Message API. Both have some differences and I…
Scorch
  • 153
  • 2
  • 17
0
votes
2 answers

Custom moodle completion rule does not work

I am developing a mod_plugin for Moodle and want to support the automatic activity completion with a custom rule. I followed the official documentation and implemented all necessary functions. In the lib.php [pluginname]_supports method I have…
Aro
  • 13
  • 3