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
2
votes
2 answers

How can I check required_param is set or not in Moodle?

I wanna check required_param('LType',PARAM_ALPHA) is set or not? How can I do this? I use this but it it doesn't work correctly: if(!isset(required_param('LType',PARAM_ALPHA))) {echo "salaam";exit;}
Karim Pazoki
  • 951
  • 1
  • 13
  • 34
2
votes
1 answer

Moodle force privacy policy at first login

I have to include on our Moodle 2.9.5 a function for the new student, who have to go to a page at first login and confirm the universities privacy policy. In Moodle there is only force password change at first login, but not force a page. Does…
StartVader
  • 151
  • 1
  • 13
2
votes
1 answer

After submitting course create form in moodle 2.8 showing alert "This page should automatically.." message

I am using moodle 2.8 I have added some css code in course/edit.php to hide some form fields on for trainer/student role. But when I submit form from trainer account showing alert message like "This page should automatically redirect. If nothing is…
Pravin
  • 37
  • 1
  • 12
2
votes
1 answer

Adding CSS class to form element in Moodle

I create forms in Moodle by extending the moodle moodleform class and calling the addElement() or createElement() methods. For example, I create a select element this way: $mform->addElement('select', 'mySelect', 'Select title' , $list); Where…
Aldo Paradiso
  • 911
  • 2
  • 15
  • 30
2
votes
1 answer

Try/catch is ignored in Moodle/PHP when using httpful within a class

I have the following PHP script, test.php in my Moodle plugin: body($requestbody) ->send();…
Alex Black
  • 39
  • 5
2
votes
1 answer

Cannot assign role to user using web service

I am trying to assign a role using webservice. I have tried the below code to assign the role. $user_id= 35; $context_id=1; $role_id=5; $assignment = array( 'roleid' => $role_id, 'userid' => $user_id, 'contextid' => $context_id ); $assignments =…
Akhilesh
  • 1,243
  • 4
  • 16
  • 49
2
votes
1 answer

Show data only to selected user in Quiz activity

I am using Moodle 2.7 and in the Quiz activity there is the overview page for all attempts of the learners. The table is under mymoodle/mod/quiz/report.php?id=50&mode=overview Right now only admin users or users with the capability…
StartVader
  • 151
  • 1
  • 13
2
votes
0 answers

Auto login via moodle ( SAML )

I'm using Django 1.6 for a backend and I've created a web application of meta player. I used OAuth2 for login. Now I'd like to integrate my web Application in a moodle site, so here comes the question: How can I login to this web app via moodle…
Yuqing Wei
  • 289
  • 1
  • 3
  • 12
2
votes
2 answers

Moodle function to edit contents

Moodle API has functions like core_course_create_courses() core_course_duplicate_course() core_course_get_contents() These all work fine. Is there a way to set and edit the contents of a course? We are syncing our SIS (Student Information…
2
votes
1 answer

Moodle Interface for .net

My company is planning to setup Moodle for internal & external training courses. Our training team has a lot of training material - mostly in MS Word/HTML/PDF/PPT slides format that needs to be converted into courses in Moodle. It is becoming too…
silverspoon
  • 1,085
  • 1
  • 11
  • 22
2
votes
2 answers

Showing course image on custom page in Moodle

I have created a custom page on which all available courses are displayed. I have also uploaded the image for the course and now want to show the name of the course along with the image. I am able to get the names of courses from the database but…
Rupinder Kaur
  • 319
  • 6
  • 21
2
votes
3 answers

Moodle without stylesheet

I've just installed the latest version of moodle on my server but I get the moodle site with no styles as if it can't detect the css sheet. During the installation process was all apparently well but once I finished I get my moodle site without…
2
votes
2 answers

insert_record(); Error writing to database

I created new table in moodle by phpmyadmin. Now I want to insert data into new table "dev". I got Error writing to database. my code is... if($_POST['send']){ $id =$_POST['id']; $name =$_POST['name']; global $DB; $data = new…
aung aye
  • 35
  • 1
  • 4
2
votes
2 answers

How to add more mnet service using moodle site base

Currently, moodle support 4 mnet services 1. Remote enrolment service 2. Portfolio services 3. SSO (Identity Provider) 4. SSO (Service Provider) to add more mnet service, I need to manually add code for admin/mnet/service.php and then add new in…
nguyentran
  • 458
  • 2
  • 14
2
votes
1 answer

get_records_sql returns only one result using inner join in moodle

I have used following code for getting category and corresponding course detail in MOODLE global $DB; $catlist = $DB->get_records_sql( 'SELECT ca.id,ca.name,ca.coursecount, c.id as course_id , c.category, c.fullname, c.shortname , c.summary ,…
Khushboo
  • 475
  • 1
  • 4
  • 10