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から勧められているわけではありません。
実行は自己責任でお願いします。:-)

1 comment: