Moodle – Mysql query initiate new DB for Moodle

How to quickly create Data Base for Moodle Instance via CLI Mode (Less secure Not for Production Mode)

run: CREATE DATABASE moodle DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
//mysql 5.7
GRANT ALL PRIVILEGES ON moodle.* to 'youredbusername'@'localhost' identified by 'yourepassword'; 
//mysql 8
//Create User
CREATE USER 'moodle'@'localhost' IDENTIFIED WITH mysql_native_password BY 'yourepassword';

//grand all permission  
GRANT ALL PRIVILEGES ON moodle.* TO 'moodle'@'localhost';

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.

Continue reading “Moodle – Add multi-lang strings in Javascript”

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.

Continue reading “Moodle – Create a new Course format, based on Topics”

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

מבוא 

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

Continue reading “Moodle – יצירת קורס פורמת חדש”