
Moodle
文章平均质量分 66
totogogo
@CityU of HK
展开
-
Moodle开发笔记2-Block开发
Block是以一个长方形区域出现在moodlesite的page的左列或右列。Block是最简单、也是最常用的moodle plugin。下面讲解如何开发一个hello world moodle block “helloworld”1. create “helloworld” folder (目录名来自你的modulename) in ”moodle/blocks” folder2. 在”helloworld”目录下创建blockpage “block_helloworld.php” (命名格式原创 2010-07-16 12:02:00 · 5021 阅读 · 1 评论 -
Panopto通过moodle进行login & SSO的原理
<br />准备工作:<br />l Build upPanopto website<br />l addmoodle provider instance in panopto website (the instance will provide moodleprovider name and generate a provider key)<br />l installPanopto block to moodle, and use above generated key<br />原创 2011-02-16 18:11:00 · 2230 阅读 · 0 评论 -
moodle 2 new features
<br />1. dock block<br />2. "navigation" block in individual course will show<br /> 1) profile<br /> 2) enrolled course list<br /> 3) in each course node, show links to individual sections and expand to the activities in those sections<br /><br原创 2011-02-16 01:21:00 · 1057 阅读 · 0 评论 -
Moodle开发笔记7-Activity module开发
Activity module是moodle里最复杂的module类型。Assignment, Quiz等module都属于activitymodule。Activitymodule can support for gradebook connectivity, course groups, course reset,and backup and restore.一个典型的Activity都应该包含下列文件mod_form.php - a form to set up or update an原创 2011-02-28 18:07:00 · 4679 阅读 · 2 评论 -
如何为moodle block添加icon?
<br /><br /><br /><br />By default, 你开发一个block,icon是没有的(如下图)<br /><br /><br />如何可以像上面的第一个block那样有一个icon? 使用firefox能查看到下列结果<br /> <br /><br /> <br />可以见到原来block的header的icon是通过<your theme folder>/styles.php设置的css来设置background url属性的。再细看该styles.php(我们使用的the原创 2010-11-15 18:09:00 · 1268 阅读 · 0 评论 -
Moodle cache problem
<br />[Moodle 1.9.x]<br /> <br />在course的files area, if you update a file,在update之后,click this file,你会看到old version file,你需要refresh才可以看到最新update的file。但是对于word document/ppt file等,如果用firefox,click file就会弹出窗口让你open/save,无法进行refresh,只能够换一个web browser来查看。<br />原创 2010-10-07 16:20:00 · 1206 阅读 · 0 评论 -
Moodle Front Page Course List Output
Where output course list in front page?see /index.php about line 220 (moodle v1.9.9) case FRONTPAGECOURSELIST: //output enrolled course list for non-admin user if (isloggedin() and !has_capability('moodle/site:confi原创 2010-09-14 00:09:00 · 930 阅读 · 0 评论 -
Moodle plugin "Sharing Cart" installation error
download latest version (2009040600) sharing cart and install it, following error occurs:1101: BLOB/TEXT column 'data' can't have a default valueADOConnection._Execute(CREATE TABLE mdl_sharing_cart_plugins (...install_from_xmldb_file(D:/iis7/public原创 2010-09-13 11:59:00 · 887 阅读 · 0 评论 -
Moodle笔记
Install GuideRequirements: Apache + PHP + MySQL1) Download "moodle standard package" zip file2) extract it and copy the whole moodle folder to Apache_Web_Root folder3) create a database named "moodle" in mysql4) create a data directory named "moodl原创 2010-06-21 12:26:00 · 987 阅读 · 0 评论 -
Get latest moodle from Eclipse cvs
<br />1. install eclipse + pdt<br />2. run eclipse, select menu "file > new > project..."<br />3. select "CVS > Projects from CVS"<br />4. set following options, and then click next<br /> Host: us.cvs.moodle.org<br /> Repository path: /cvsr原创 2010-06-11 17:48:00 · 652 阅读 · 0 评论 -
Moodle开发笔记6-Database操作
Moodle db table的规则:· the first field is aninteger field called idas primary key· table name can be nolonger than 28 characters· Field names can be nolonger than 30 characters· table character set(collation) sho原创 2010-07-16 12:18:00 · 3539 阅读 · 0 评论 -
Moodle开发笔记4-Theme开发
通过Theme,你可以修改整个moodle site的外观和风格。一个Theme最起码包含下列东东:l config.php 它设置了theme要用到的css file,以及其他style optionl styles.php 它是standard的,不用动它。l header.html 它是所有moodlepage的开头部分。它实际是一个php filel footer.ht原创 2010-07-16 12:07:00 · 3786 阅读 · 0 评论 -
Moodle开发笔记3-Filter开发
Moodle filters是对修改来自database的content进行过滤修改后再输出显示。一个例子是moodle自带的multimedia filter,它能够detect references to video and audio files,然后replace them with a"mini-player" embedded in the content。Filter的工作原理Moodle里所有要输出到screen的text都要经过format_textfunction的处理,该函数会原创 2010-07-16 12:04:00 · 1960 阅读 · 0 评论 -
Moodle开发笔记1-基础知识
There are roughly 200 related tables in Moodle database. “mdl_” is prefix of each table name.Moodle data Moodle data is the file storage location foruser-uploaded content, Moodle data also stores the session data for userslogged into the system, if fil原创 2010-07-16 11:56:00 · 8612 阅读 · 2 评论 -
Moodle开发笔记5-Course Format开发
<br />Course format是用来定义coursepage的布局和显示。Moodle提供了6个standard course formats:<br />l lams<br />l scorm<br />l social<br />l topics<br />l weeks<br />l weekscss<br />后面3个最常用,These display a course i原创 2010-07-16 12:16:00 · 2152 阅读 · 0 评论 -
moodle email
<br />1. login with admin role<br />2. go to "Site administration > server > email"<br />3. fill in following settings<br /> SMTP hosts: smtp.gmail.com:465<br /> SMTP username: xxx@gmail.com<br /> SMTP password: xxx<br />4. find /lib/p原创 2011-05-02 02:36:00 · 2088 阅读 · 0 评论