forumconfig.inc.php 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * @todo use Database :: get_course_table
  5. * @todo move the tool constants to the appropriate place
  6. * @todo make config settings out of $forum_setting
  7. *
  8. * @author Patrick Cool <patrick.cool@UGent.be>, Ghent University
  9. * @version february 2006, dokeos 1.8
  10. */
  11. /*
  12. -----------------------------------------------------------
  13. Database Variables
  14. -----------------------------------------------------------
  15. */
  16. $table_categories = Database :: get_course_table(TABLE_FORUM_CATEGORY);
  17. $table_forums = Database :: get_course_table(TABLE_FORUM);
  18. $table_threads = Database :: get_course_table(TABLE_FORUM_THREAD);
  19. $table_posts = Database :: get_course_table(TABLE_FORUM_POST);
  20. $table_mailcue = Database :: get_course_table(TABLE_FORUM_MAIL_QUEUE);
  21. $table_threads_qualify = Database :: get_course_table(TABLE_FORUM_THREAD_QUALIFY);
  22. $table_threads_qualify_historical = Database :: get_course_table(TABLE_FORUM_THREAD_QUALIFY_LOG);
  23. $forum_table_attachment = Database :: get_course_table(TABLE_FORUM_ATTACHMENT);
  24. $table_item_property = Database :: get_course_table(TABLE_ITEM_PROPERTY);
  25. $table_users = Database :: get_main_table(TABLE_MAIN_USER);
  26. /*
  27. -----------------------------------------------------------
  28. Constants
  29. -----------------------------------------------------------
  30. */
  31. define('TOOL_FORUM_CATEGORY','forum_category');
  32. //define('TOOL_FORUM','forum'); defined in main_api
  33. define('TOOL_FORUM_THREAD','forum_thread');
  34. define('TOOL_FORUM_POST','forum_post');
  35. define('TOOL_FORUM_ATTACH','forum_attachment');
  36. define('TOOL_FORUM_THREAD_QUALIFY','forum_thread_qualify');
  37. /*
  38. -----------------------------------------------------------
  39. Some configuration settings
  40. (these can go to the dokeos config settings afterwards)
  41. -----------------------------------------------------------
  42. */
  43. // if this setting is true then an I-frame will be displayed when replying
  44. $forum_setting['show_thread_iframe_on_reply']=true;
  45. // if this setting is true then students and teachers can check a checkbox so that they receive a mail when somebody replies to the thread
  46. $forum_setting['allow_post_notificiation']=true;
  47. // when this setting is true then the course admin can post threads that are important. These posts remain on top all the time (until made unsticky)
  48. // these special posts are indicated with a special icon also
  49. $forum_setting['allow_sticky']=true;
  50. // when this setting is true there will be a column that displays the latest post (date and poster) of the given forum. This requires quite some sql statements that
  51. // might slow down the page with the fora.
  52. // note: I'm currently investigating how it would be possible to increase the performance of this part.
  53. $forum_setting['show_last_post']=false;