Showing posts with label Moodle. Show all posts
Showing posts with label Moodle. Show all posts

Moodle1.9でForumモジュールを非表示にする方法


なぜ?
MoodleではForumモジュールを非表示にすることはできません。

どうやって?
Moodle DBの値を更新することで可能にします。


  1. MoodleユーザでMoodle DBにアクセスします。
  2. sysadmin@linux-rsgv:~> mysql -u moodleuser moodle -p
    Enter password: 
    
  3. Modulesテーブルのvisibleカラムの値を1から0に更新します。
  4. mysql> select visible from mdl_modules where name='forum';
    +---------+
    | visible |
    +---------+
    |       1 |
    +---------+
    1 row in set (0.00 sec)
    
    mysql> update mdl_modules set visible='0' where name='forum';
    Query OK, 1 row affected (0.00 sec)
    Rows matched: 1  Changed: 1  Warnings: 0
    
    mysql> select visible from mdl_modules where name='forum';
    +---------+
    | visible |
    +---------+
    |       0 |
    +---------+
    1 row in set (0.00 sec)
    
    mysql> commit;
    Query OK, 0 rows affected (0.00 sec)
    
これでMoodle上のForumモジュールが使えなくなっていると思います。

もちろんこの操作はMoodleから勧められているわけではありません。
実行は自己責任でお願いします。:-)

How to disable Forum module in Moodle 1.9


Why?
Moodle don't allow to disable Forum module by configuration.


How?
It makes Forum disable by changing the value stored in Moodle DB(My SQL).



  1. Access Moodle DB by moodel DB user
  2. sysadmin@linux-rsgv:~> mysql -u moodleuser moodle -p
    Enter password: 
    
  3. Change the value from 1 to 0 for Visible column in modules table.
  4. mysql> select visible from mdl_modules where name='forum';
    +---------+
    | visible |
    +---------+
    |       1 |
    +---------+
    1 row in set (0.00 sec)
    
    mysql> update mdl_modules set visible='0' where name='forum';
    Query OK, 1 row affected (0.00 sec)
    Rows matched: 1  Changed: 1  Warnings: 0
    
    mysql> select visible from mdl_modules where name='forum';
    +---------+
    | visible |
    +---------+
    |       0 |
    +---------+
    1 row in set (0.00 sec)
    
    mysql> commit;
    Query OK, 0 rows affected (0.00 sec)
    
You'll see the forum module module is disable in your site.


Of cause this modification isn't recommended by Moodle.
Please take responsibility for your action. :-)