Questionnaire displays activity name without applying multi-language filter in the intro page (mod/questionnaire/view.php?id=) using Questionnaire version 2017050101.
Tag: moodle
Another thing that works in every other browser but does not work in Internet Explorer.
So my solution is to set the MIME type for the .vtt files. This can be done under the Site administration / Server / File types (Moodle >= 2.9). Click on “Add a new file type” button. Set Extension to vtt, set MIME type to text/vtt then click “Save changes”.
You have to re-upload your .vtt files to have the changes take effect.
Cheers.
Related link:
https://docs.moodle.org/29/en/Working_with_files#Site_administration_settings
I have using Aardvark theme for many years (thanks Shaun).
With my latest Aardvark theme deployment I had a problem that the fixed header was relative big (160 pixel) and when using hash tag links in the courses the content of the anchors was covered by the header. I needed to offset the anchors for fix this.
After digging the net I have found Chris Coyier post titled Hash Tag Links That Don’t Headbutt The Browser Window. Using the fancier clean HTML method I have added the following CSS code at the / Site administration / Appearance / Themes / Aardvark page / Custom CSS textarea:
.section:before {margin-top: -60px; height: 60px; visibility: hidden; content: " "; display: block;} /*section offset*/ .breadcrumb-button {position: relative;} /*fix for the breadcrumb button*/
Now it is under testing, but in this short time it worked well.
Related links:
https://moodle.org/plugins/view.php?plugin=theme_aardvark
https://css-tricks.com/hash-tag-links-padding/
A report was needed by my client to list participants in a course with access info, so those who did not access the course can be warned to perform the mandatory quiz before closing it.
SELECT u.firstname, u.lastname, u.idnumber, c.shortname, IF(ue.status = 0, 'Active', 'Suspended') as status, e.enrol, FROM_UNIXTIME(ue.timecreated, '%m/%d/%Y %h:%i:%s %p') as enrollment_date, IF(ue.timestart = 0, 'No End Date',FROM_UNIXTIME(ue.timestart, '%m/%d/%Y %h:%i:%s %p')) as start_enrollment_date, IF(ue.timeend = 0, 'No End Date',FROM_UNIXTIME(ue.timeend, '%m/%d/%Y %h:%i:%s %p')) as end_enrollment_date, COALESCE(( SELECT FROM_UNIXTIME(la.timeaccess,'%m/%d/%Y %h:%i:%s %p') FROM mdl_user_lastaccess as la WHERE u.id = la.userid AND c.id = la.courseid ), 'Never Accessed') as last_access, COALESCE(( SELECT r.name FROM mdl_role_assignments AS ra, mdl_context AS ctx, mdl_role as r WHERE ctx.instanceid = c.id AND ra.contextid = ctx.id AND ra.userid = u.id AND r.id = ra.roleid AND ( e.id = ra.itemid OR ra.itemid = 0 ) LIMIT 1 ), 'No Role Assigned') as role, ( SELECT c2.shortname FROM mdl_course as c2 WHERE e.customint1 = c2.id ) as child_course FROM mdl_user_enrolments as ue, mdl_enrol as e, mdl_course as c, mdl_user as u WHERE ue.userid = u.id AND ue.enrolid = e.id AND e.courseid = c.id AND c.id = 4 ORDER BY u.lastname, u.firstname, c.startdate DESC, c.shortname
Thanks for James Henestofel.
https://moodle.org/mod/forum/discuss.php?d=255646
As a request to our client we changed to HTTPS on our server for their Moodle 2.7.1+ instance. I configured the site, but after the change the file picker stopped working.
I have found that Chrome console shows the following:
Failed to load resource: the server responded with a status of 404 (Not Found)
Uncaught ReferenceError: MathJax is not defined
It was definitely true. I tried the link with HTTP and it was fine.
So my solution was to delete the equation from the Toolbar config at Site administration / Plugins / Text editors / Atto HTML editor / Atto toolbar settings.
When cloning a site for testing purposes, there could be a problem with HTTPS within the testing environment. There is a fast way to turn it off in the the database:
update prefix_config set value = 0 where name = 'loginhttps';
Then you can login without HTTPS.
How to change Moodle chat beep sound
You can change the beep sound by change the %WWWROOT%/mod/chat/beep.wav file.
You can also disable the beep by deleting this file.
When trying to export an assignment document to Mahara and we get the following error:
Payload not encryptedERROR 1:1:Payload not encryptedDebug: \nError code: failedtopingline 280 of /portfolio/mahara/lib.php: portfolio_export_exception thrown line 57 of /portfolio/mahara/preconfig.php: call to portfolio_plugin_mahara->send_intent()\n, referer: http://moodle.appi.bme.hu/mod/assign/view.php
Most likely we are behind a firewall. If both Moodle and Mahara servers are behind the firewall simply add the inner IP address of the Mahara server to the Moodle server /etc/hosts file like this:
192.168.x.x<-->mahara.example.org
Or if you have a DNS inside the firewall, check the settings of it.