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

Is there way to add a userselector to the settings page of an activity module in moodle?

So, basically what the title says. Here is what I would like to have in my settings.php page: And here is what I have as a workaround: $warning = 'Please make sure you have no unsaved changes.'; $link = "
3nws
  • 1,391
  • 2
  • 10
  • 21
0
votes
1 answer

In Moodle Certificate not displaying course completion date

I am using Moodle and having problem with the plugin certificate builder I had created my template correctly, but now that learner are starting to complete the course, I've noticed the course completion date is missing from their generated…
0
votes
1 answer

Moodle + Docker Reverse Proxy with Apache/NGINX

I think this is becoming an eternal problem which may need a good solution, as Docker is being more and more popular. My problem comes when trying to reverse Proxy to a Docker container which exposes a port (8080) with a bitnami/moodle image. I've…
h4b1f
  • 1
  • 1
0
votes
1 answer

How can I make a page accessible to only admins in moodle?

I have a link on the settings.php page of my activity module that goes to a clear.php page that truncates a table in the database. As it stands even guests can still run this function by going to the clear.php themselves by typing in the address…
3nws
  • 1,391
  • 2
  • 10
  • 21
0
votes
1 answer

why some users do not appear in mdl_user_info_data in Moodle?

I am getting students added to course using a query but i noticed 2 of them do not appear( even if they are active and listed as participants) checking inside tables i noticed they do not appear in mdl_user_info_data. How can i prevent this? or…
0
votes
1 answer

How can I add a button on settings.php page in moodle?

So I have an activity module and I want to add a button on the settings.php page which when clicked runs a particular function in locallib.php, I have gone over the adminlib.php to see my options but couldn't find anything that I could make use of…
3nws
  • 1,391
  • 2
  • 10
  • 21
0
votes
1 answer

Moodle - Getting first access of user to a Course

I'm currently working on a configurable report and I may need to get the date of the users' first access to a Course. I can easily get it via logstore_standard_log with the following query: SELECT FROM_UNIXTIME(timecreated) AS firstCourseAccess FROM…
Goma
  • 2,018
  • 1
  • 10
  • 19
0
votes
0 answers

Fatal error: $CFG->dataroot in Moodle after PHP upgrade

I am new to moodle and I have voluntarily assisted one of the schools to set up their moodle page as Covid19 has recently hit us. The Moodle was working fine until I upgraded the PHP version from 7.2 to a higher version. This resulted in an error…
Tekitaa Mautaake
  • 132
  • 4
  • 16
0
votes
0 answers

Moodle local plugin development creating user access

I am creating a new local plugin on moodle that nedd to be accessed by users that are not admin, i tried to create a new item on the left navigation bar but didn't get and i was told to not do it, i was able to create a link in the site…
0
votes
1 answer

moodle:summary image not display in custom page

when I get summary image in my custom page it will not display and print the name of image with small icon image like that echo format_text($course->summary); enter image description here
0
votes
0 answers

I would like to know if there's a way to complete this query

I'm trying to obtain the average time of an "activity" in a moodle database, i am not an sql expert, but i have managed to get to the point showed in the picture, my question is if exists a way to obtain, first the timestamp/time difference (this…
Dupo
  • 3
  • 3
0
votes
2 answers

Slow performance on course main page due too much DB queries (seeing on performance profiler)

I have a problem with a Moodle 3.10.5 and two courses, let me explain. I have two courses that are created on the development moodle, and we import them on the production server one week ago. This night, 200 students was their enrolment activated,…
Marcos Pérez Gude
  • 21,869
  • 4
  • 38
  • 69
0
votes
1 answer

Moodle - move QR code from profile to login page

I'm trying to move the QR code block to the main login page, i don't want to use the QR code to login, just the download app QR code generated on the profile page, i seems that the only way is via code insert but i'm not very sure how to do it…
0
votes
1 answer

How to serve a file with "Content-Encoding: gzip" header?

I have a game that I want run on my apache server. When I try to view a game activity instance I redirect to the index.html file of the uploaded game. Here is the code in view.php: $fp = get_file_packer('application/zip'); $dest =…
3nws
  • 1,391
  • 2
  • 10
  • 21
0
votes
1 answer

How do I call extract_to_pathname function on a user uploaded zip file?

I have an instance of an activity and when I want to view it I want to extract the associated zip file to be extracted and set the index.html file inside to be the starting page inside view.php. I found out that the filepath I passed in the extract…
3nws
  • 1,391
  • 2
  • 10
  • 21