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
2
votes
0 answers

Interacting with Moodle API client to get quiz by course id

How can I interact with Moodle Api clients to get to quizzes by course id. The documentation says the mod_quiz_get_quizzes_by_courses requires a courseids array, but I don't know how to pass the array to the to Get request.
mev
  • 177
  • 5
2
votes
0 answers

how to add my own h5p interactive video in h5p in moodle

I tried to find the solution to my question everywhere without a result. Let me explain the problem. I have a moodle docker. We can install H5P there by following these steps in: https://github.com/h5p/moodle-mod_hvp Now we can manually install the…
2
votes
1 answer

Help pertaining to cURL on Moodle

Good day everyone. I'm currently programming in Moodle. Since I haven't got any answers yet in their forums I will have to ask it here because I really need help badly. How can my cURL bypass Moodle login page? $ckfile =…
POGI
  • 21
  • 1
  • 2
2
votes
0 answers

Getting javascript error in the in-built file of moodle

enter image description here From past 2 weeks we are having JavaScript error for in-built library files of the Moodle. All the popups is not working properly on the site and giving following error: I have tried looking for the solution but didn't…
2
votes
1 answer

Custom evalution policy for multiple choice questions based on the number of discrepancies

I am using exams2moodle, I would like to implement a custom evaluation policy for multiple choice questions, based on the number of discrepancies between the correct answers and the answers given by the student. In all multiple choice questions,…
eusebe
  • 362
  • 2
  • 7
2
votes
1 answer

how to receive an unknown amount of inputs without an input that tells the code to stop?

I'm supposed to write a code that receives two integers (m and n) and returns all the prime numbers between those numbers (essentially a range(m,n)). The original exercise is in Portuguese, but I tried to insert a translated version at the end for…
minyards
  • 23
  • 4
2
votes
2 answers

Moodle Docker Web Service working but can not be called from another docker container in the same network

I am running a moodle docker container and one other container to call moodle web service function in a same network. I'm pretty sure I have set up the moodle properly because I can call moodle web service from postman. I am also aware i need to use…
rixpl
  • 31
  • 7
2
votes
0 answers

Moodle + nginx = 502 Bad Gateway

I use nginx+letsencrypt as proxy in docker, that's my nginx.yml: version: "3.7" services: nginx-proxy: container_name: nginx-proxy image: jwilder/nginx-proxy restart: always ports: - 80:80 - 443:443 networks: - proxy volumes: -…
2
votes
1 answer

How do I access values on an array of objects in mustache template in moodle?

I extracted records from the database and assigned them to the variable $results and I'm trying to loop through this array of objects but can't access anything in the objects and it only runs once despite there being 3 objects. Here is what I get…
3nws
  • 1,391
  • 2
  • 10
  • 21
2
votes
0 answers

SQL:Can't find row with SELECT WHERE (VARCHAR column) Moodle: Error "Can't find data record in database table external_functions."

Any ideas why this happens? Can't find the row containing 'core_course_get_course_content_items' in the column 'name' even if the column with id=76 contains exactly that string in 'name'. Trying to UPDATE the row with the same string, doesn't update…
albertost
  • 21
  • 2
2
votes
1 answer

moodle get feedback item

when i try get the feedback items, i receipt only the first column, why? SELECT u.firstname as "Usuario", CASE WHEN i.name = 'task 1' THEN v.value END AS "1", CASE WHEN i.name = 'task 2' THEN v.value END AS "2", CASE WHEN i.name = 'task 3' THEN…
ele
  • 35
  • 4
2
votes
1 answer

Adding an image from within a child theme on Moodle 3.11

So, I'm new to Moodle and I'm creating a custom theme (child theme of Boost). I'm a attempting to insert an image from the pix directory into the footer template - however I can't seem to get it to output any paths. I've tried following the Moodle…
Droopy
  • 41
  • 5
2
votes
1 answer

Moodle Enrolment Email for Teachers - Add Student Email Address

I'm running Moodle, and have a teacher who receives a notification email anytime a student enrolls in a course (via PayPal enrollment). The email contents come from lang/en/enrol.php: $string['enrolmentnewuser'] = '{$a->user} has enrolled in course…
carbide20
  • 1,717
  • 6
  • 29
  • 52
2
votes
1 answer

using flash media server with moodle whiteboard

I am trying to use flash media server with moodle [Course Management System] to use it the steps tells me to add this line of code : $CFG->fms = 'YourFmsLink'; as following this link : http://moodlemodules.netcourse.org/2007/11/17/whiteboard/ well…
Eslam Soliman
  • 1,276
  • 5
  • 16
  • 42
2
votes
1 answer

How to upgrade moodle version using cli/git?

I have a moodle site which is maintained in a personal github repository. When moodle releases a new moodle version, I need to replace files manually to upgrade moodle version in my personal repository. Is there any way, in which I can automate the…
Ahnaf
  • 149
  • 5
  • 18