Kiril

Moodle – Filter Team Work tutorial

This tutorial will describe how to use Team Work filter plugin in Moodle environment. Please, follow the instructions: 

Download plugin with link: https://github.com/PeTeL-Weizmann/moodle-filter_teamwork

Kiril

Moodle -Query to change all users details

UPDATE mdl_user 
SET
username=CONCAT('username',mdl_user.id),
phone1=CONCAT('11111',mdl_user.id),
phone2=CONCAT('11111',mdl_user.id),
firstname=CONCAT('Name',mdl_user.id),
lastname=CONCAT('Last',mdl_user.id),
email=CONCAT('email',mdl_user.id,'@test.com'),
idnumber= CONCAT('1000',mdl_user.id,'2000')
WHERE id>=7
Kiril

Moodle – Add multi-lang strings in Javascript

As we all know well, Moodle is a multilingual system which, depending on the wishes of the user, can perfectly support many languages. As a rule, when developing a new plugin, there are no big difficulties for the introduction of a language translator, but there are a few nuances about which we will talk about.

Kiril

Moodle – יצירת קורס פורמת חדש

מבוא 

הקורס פורמט הוא סוג תוסף מיוחד במוודל שאחראי על פריסת מידע של הקורס במערכת moodle. דף הקורס (/course/view.php) יכול להיות במצב תצוגה ועריכה, קורס פורמט של moodle מציג פרקים, משאבים ופעילויות בצורה מוגדרת בהגדרות הקורס במערכת moodle. מנהל מערכת יכול להפעיל, לבטל או למחוק תבניות לקורסים. 

Kiril

Moodle – Create a new Course format, based on Topics

Brief about course formats in Moodle

A course format is a special type of plugin in Moodle, which is responsible for the course layout – what the course page looks like (/course/view.php) in both view and editing mode, which resources and activities must be displayed, how they are styled and in which order they are arranged, in which sections they are located etc. The basic and most popular Moodle course format is the Topics format. It is the most simple and that’s why it’s best to use it as a skeleton for the creation of a new course format.

Kiril

Moodle – Code Styling for PHP

List of rules for proper development in the Moodle environment

Naming of parameters (do not use “_”  or uppercase)

//BED $Userid, $course_id, $ModuleCourseid
//GOOD $userid, $courseid, $modulecourseid,  $param1, $parm2 ..

The fast way to define test course Moodle using CLI Screen

Kiril

Moodle – How to make a test course in CLI mode

The fastest way to define a test course Moodle using the CLI Screen

php admin/tool/generator/cli/maketestcourse.php --shortname=Course1 --fullname=Course1 --size=M

–size=S – under a 100 users in the course

–size=M – under a 1000 users in the course

add

$CFG->tool_generator_users_password='your password for all tests user';
Kiril

Moodle – Extended Essay Validation Plugin

Extended Essay Validation Plugin counts the minimum ormaximum inserted words in the Moodle question type essay and will not allow thestudent to submit anything while the requirements are not met.