moodle

Magento and Moodle Integration

浪子不回头ぞ 提交于 2019-12-01 16:50:42
问题 I have a project which requires me to setup an subscription-based online learning site using Moodle. I checked Moodle and it seems that it can handle this by itself. The problem is, the client won't be just selling online courses. He will also be selling books, reviewers, etc. I figured that Magento would be the best option for selling those items, and keep track of all the sales. I could probably add the online courses as virtual items. My questions is: Is there a way to fully integrate

Problem with PHP Session Object

混江龙づ霸主 提交于 2019-12-01 13:54:09
I am facing some problem with my php session. I have deployed a plugin for file management in my moodle application. The new plugin home page is behaving unexpectedly and is destroying the actual session of my application and is generating new session_id() . Also when I am trying to view session contents using print_r($_SESSION) , it is showing "PHP_Incomplete_Class_Name" in it. Actually PHP_Incomplete_Class_Name has nothing to do with session regeneration. This behaviour appears when you (or your cms/framework/whatever you have) call session_start() before each serialized object's class

Overriding plugin renderer moodle

こ雲淡風輕ζ 提交于 2019-12-01 10:41:02
问题 I have site running Moodle 2.9.3+ and i was trying to customize the renderer of one existing plugin, so i found this: How to override a renderer such that the functionality of the overridden renderer also remains available? I added the following into the core_renderer.php of my theme include_once($CFG->dirroot . "/course/format/topcoll/renderer.php"); but when i tried to do class topcoll_local_renderer extends format_topcoll_renderer { protected function section_header($section, $course,

Email moodle user data after registration

我们两清 提交于 2019-12-01 01:42:54
i need to send a custom email to the admin after user registration on my moodle site, but i want it to have all the user iformation displayed, i been searching a lot and found this link , it sends a custom email to the admin with the user name, but i've ben trying to send more info like custom fields added by me or even default fields like the phone but i can't find a way, i hope u help me. You could use the 'user_created' event. http://docs.moodle.org/dev/Events_API#Users Haven't tested this but you could create a local plugin Create a local folder /local/newuser/ Create events.php /local

moodle not showing CSS and theme with linux server

亡梦爱人 提交于 2019-11-30 23:58:41
I'm experiencing a problem regarding Moodle. I've made an install into a Linux server, but CSS and themes are not displaying so i have only plain text. How can this be possible and how to solve it? Thanks. This solution should work. I ran into the same problem after I migrated from local to production and I had to disable Use slash arguments in Sites Administration > Server > HTTP. It is the first item you see on the page. Just deselect it if it is checked and save to see if that helps. Today i installed the latest moodle 3.2 on Linux Ubuntu server with Apache2 and PHP5.6 . After successful

moodle not showing CSS and theme with linux server

旧城冷巷雨未停 提交于 2019-11-30 18:19:03
问题 I'm experiencing a problem regarding Moodle. I've made an install into a Linux server, but CSS and themes are not displaying so i have only plain text. How can this be possible and how to solve it? Thanks. 回答1: This solution should work. I ran into the same problem after I migrated from local to production and I had to disable Use slash arguments in Sites Administration > Server > HTTP. It is the first item you see on the page. Just deselect it if it is checked and save to see if that helps.

Cannot retrieve previously saved data from LMS - SCORM 2004

做~自己de王妃 提交于 2019-11-29 16:43:47
I'm trying to retrieve previously saved data from Moodle LMS but seems like something is not working. This is what I'm doing: I load the SCORM (v2004) package into Moodle and perform some actions (like save navigation data or set completion status): // Completion status always "unknown" at first time so I try to change it to incomplete: API_1484_11.SetValue('cmi.completion_status', 'incomplete'); // "true" ... API_1484_11.SetValue('cmi.location', '{"page":2}'); // "true" Then later on commit these changes: API_1484_11.Commit(''); // true Request/Response: When I leave and reenter the activity

Moodle Accept Login from external site

北城以北 提交于 2019-11-29 14:46:28
问题 We are adding Moodle to our site (different server, different sub-domain, but same main domain, and the servers are set up to be able to communicate with each other) and what we want to have it do is: User accesses the main site User logs in User clicks a link to Moodle The user is automatically logged into Moodle without having to reenter their info If the user bookmarks or directly accesses Moodle, they can still login directly there We already have it set up using db auth (the external

Create Moodle activities programmatically

不打扰是莪最后的温柔 提交于 2019-11-29 11:18:15
Does anyone know if it’s possible to add an activity programmatically to a course in Moodle? I was thinking to maybe use the class module_add_instance() from the lib.php of my custom plugin... e.g. function feedback_add_instance(stdClass $mod) { global $DB; $newmodule->timecreated = time(); // You may have to add extra stuff in here. $newmodule->id = $DB->insert_record('exams', $newmodule); unicexams_grade_item_update($newmodule); return $newmodule->id; } But then again: What is the $mod variable? What does it contain and how to construct it? Does anyone has knowledge on the subject? Or

D22

天大地大妈咪最大 提交于 2019-11-29 08:27:52
当天完成的工作 : 1.完成个人小结的撰写。 2.和组员进行总报告的分工,我主要进行引言及其他说明的撰写。 3.赵老师分配了科研训练的任务,完成了moodel及coderunner插件的安装。 第二天的计划: 1.撰写引言和说明。 2.进行moodle环境搭建。 3.阅读论文,熟悉moodle及coderunner的应用。 每日小结: 完成课设的报告以后就可以转战科研训练了,这个小学期还是学到了挺多东西。 来源: https://www.cnblogs.com/yvonnewang/p/11494006.html