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
3
votes
1 answer

How to add a block to the center of a page in Moodle?

I wanted to display a comment block below the activity rather than on the left or right side bars. It was a lot easier than I thought. I've added code for center-post which will add a block at the bottom of the main content. It could easily be…
Russell England
  • 9,436
  • 1
  • 27
  • 41
3
votes
1 answer

Moodle development error in new plugin module with file manager

Please if you can help me in my problem, I'm developing a new module in Moodle (v. 2.4) (mod_problem), as part of my master thesis. In the mod_form I included a file manager element as follows: //**…
3
votes
1 answer

MOODLE - custom CSS for blocks

I want to create custom css for my custom block content, but moodle will take css from theme for all the blocks with similar css: .block div.content { font-size: 12px; font-weight: 200; padding: 10px 15px 15px; } Here is the code I…
user2686207
  • 37
  • 2
  • 12
3
votes
5 answers

Getting users information from moodle

How to get the section's user information (like name, password)? Is there any method that returns it? I'm trying the function "core_user_get_users_by_field", but it isn't works. That's I've done: String serverurl = url +…
MCGBra
  • 240
  • 1
  • 5
  • 13
3
votes
4 answers

moodle not working properly after installation

I have installed moodle many times. But this time when i install moodle all steps are completed uptil update profile. (localhost/moodle/user/editadvanced.php id=2) when i enter admin details and update file nothing is displayed. when i try to access…
user3418805
  • 91
  • 1
  • 1
  • 6
3
votes
3 answers

Moodle: SQL for listing all users (with custom user profile fields)

I was looking for the proper SQL query to retrieve details of all users with the role student. The information would include data of some custom user profile fields. For example, I have created 2 user profile fields, with the short names Department…
d.yuk
  • 809
  • 1
  • 12
  • 30
3
votes
1 answer

How to Save quiz attempt Step data in Moodle?

I am writing a custom Moodle (2.6) web service for taking up the moodle quiz, that requires to create an attempt or start an attempt. I written the API to start an attempt as well as get the questions for a particular quiz. However I m not able to…
3
votes
8 answers

Create user using Moodle webservice

I have tried to create a new user on the Moodle by web service api. I tried with a example that i found on the github and with another php code In the both i receive the same response: "Missing required key in single structure: users" the…
Guilherme
  • 1,705
  • 1
  • 25
  • 45
3
votes
2 answers

How to get the current courseid for the current page in moodle

i have an addres moodle/course/modedit.php?add=page&type=&course=4§ion=1&return=0&sr=0 in moodle. How can i get the courseid that is 4? I tried $COURSE->id but it doesnot worked. Please help me with the solution.
3
votes
1 answer

How can i get $cm->id based on the $courseId In Moodle 2.6.0 Version?

I need $cm->id Because In latest Moodle 2.6.0 Version. $context = get_context_instance(CONTEXT_MODULE, $courseId); Not Working Above Code. Instead Of this given code I need to implement. $contextmodule = context_module::instance($cm->id); Use of…
3
votes
2 answers

moodle: how to change the column size in bootstrap theme 'clean'?

i'm trying to change the column size of the moodle theme 'clean' which is based on bootstrap. My Moodle uses a three column layout. The left and right columns are too wide and i'm want to make them more narrow, so that the column in the middle can…
user3018108
  • 33
  • 1
  • 3
3
votes
2 answers

Moodle Function API doc over REST

I am trying to develop a Moodle Android app. I am using MoodleREST source code for my reference.Is there any other documentation on Moodle site which documents moodle core webservice functions with their required params. I have found list of…
Harshawardhan
  • 1,521
  • 1
  • 24
  • 29
3
votes
1 answer

Upload a Scorm File to a Course in Moodle with Web service

I have already created a course to Moodle using joomdle WS "joomdle_create_course" using a Java client through SOAP protocol. After, I have uploaded a SCORM package file with WS "core_files_upload" in my personal area. Now I want to link this Scorm…
3
votes
1 answer

Python: Moodle login with urllib2

I am trying to log in to a Moodle website, but it returns the "you haven't logged in yet" page, which means authentication wasn't successful. What am I doing wrong? Am I forgetting to set a parameter? Please don't recommend mechanize. I want to…
EMartins
  • 477
  • 1
  • 5
  • 13
3
votes
2 answers

Automatically login to moodle when login to another site

I was wondering is it possible to automatically login to moodle after loging-in in aonther site? I tried to use curl but it seems not really working. This is my testing code: //set POST variables $url =…
wm90
  • 41
  • 1
  • 4