Default exception handler: Coding error detected, it must be fixed by a...
by Davo Smith. This is a developer forum - was this error a result of some code you've written or is this something that occurred in the standard Moodle code?If it is related to some custom code, then...
View ArticleAdding output to every course - better way to do this?
by top down. After a bit of investigation I find that using ::after and ::before is not rcommended in Moodle so I will not follow this up any more. Thanks to anyone who tried to assist.
View ArticleAutomating the Migration of Moodle Plugins and Custom Scripts from Bootstrap...
by Basavanagowda D K. Hi everyone,I’ve recently created a set of shell scripts to automate the migration of Moodle components from Bootstrap 4 to Bootstrap 5. These scripts are designed to help...
View ArticleRe: Purge caches design decision
by Rafael Monterroza. Thank you Paul for such accurate explanation. I understand it now :D
View ArticleAutomating the Migration of Moodle Plugins and Custom Scripts from Bootstrap...
by Petr Skoda. I was not sure about the donated bash scripts, so I asked AI if it is a good idea to run bash scripts from internet:As for running random bash scripts from the internet—it's generally a...
View ArticleAutomating the Migration of Moodle Plugins and Custom Scripts from Bootstrap...
by Basavanagowda D K. Hi Petr, Thanks for your feedback — and I fully agree: no script, regardless of source, should be trusted blindly. That's precisely why the scripts were designed as transparent...
View ArticleDatabase schema flagging issues that seem incorrect
by Megan Bohland. Hi all,I ran the Performance Overview check and got an error on my plugin (I am developing). It flagged the database schema as not aligned:My question is, why is it not...
View ArticleDatabase schema flagging issues that seem incorrect
by Megan Bohland. Update: To make things even more confusing, even though I thought these were set to notnull="true", in investigating this error I found they ARE set to notnull = "false". So they ARE...
View ArticleDatabase schema flagging issues that seem incorrect
by Petr Skoda. If you are talking about this plugin https://github.com/adlnet/Moodle-mod_cmi5launch/blob/main/db/install.xml, then the install.xml file there is invalid, all ID fields in Moodle...
View ArticleHelp Needed – Displaying Instructor Name in Course Cards Without Modifying Core
by Soumya Manna. Hi Devs,I'm new to Moodle development, and I need to display the instructor's name in the course cards (like those shown on the dashboard or course listing pages).I noticed that a...
View ArticleDatabase schema flagging issues that seem incorrect
by Bret Miller. Primary key fields are never allowed to be null. So if the XML is allowing it, then it is simply wrong and that's what's being flagged.
View ArticleDatabase schema flagging issues that seem incorrect
by Megan Bohland. Thank you! I thought by the error messaging saying "should allow null" it WANTED it to allow null, which made no sense for keys. And I didn't think of a mismatch between install and...
View ArticleDatabase schema flagging issues that seem incorrect
by Megan Bohland. Thank you! I thought they shouldn't be null, I misunderstood the wording of the error.
View ArticleHelp Needed – Displaying Instructor Name in Course Cards Without Modifying Core
by Mark Johnson. One option would be to write an override_webservice_execution callback, to modify the response to the core_course_get_enrolled_courses_by_timeline_classification web service function,...
View ArticleProposal to allow NULLs in user.username database field
by Petr Skoda. Hi devs,I am planning to create some new auth plugins later this year, so I was wondering if anybody would be interested in my proposal to allow usernames to be nullable - see MDL-85198...
View ArticleNew DB->upsert_record() proposal
by Petr Skoda. Hi devs,do you think it would be nice to include new DML method that inserts or updates existing record like this?$preference = new stdClass(); $preference->userid = $user->id;...
View ArticleNew DB->upsert_record() proposal
by Petr Skoda. ooops, forgot to include original code for comparison: $retry = 0; $saved = false; while (!$saved && $retry++ < 2) { if ($preference = $DB->get_record('user_preferences',...
View ArticleProposal to allow NULLs in user.username database field
by Petr Skoda. This could be also used to solve the old privacy issue of deleted accounts keeping the original email in username field.
View ArticleMoodle Quiz Essay Question with manual Grading
by Rafael Odermatt. Hi FolksThis is my first Entry in this Forum and I hope, I do it the right way. My use case is: I would like to insert a link in the tinyMCE Texteditor and use my repository (in my...
View Article