forumconfig.inc.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. /**
  3. * @todo use Database :: get_course_table
  4. * @todo move the tool constants to the appropriate place
  5. * @todo make config settings out of $forum_setting
  6. *
  7. * @author Patrick Cool <patrick.cool@UGent.be>, Ghent University
  8. * @version february 2006, dokeos 1.8
  9. */
  10. /*
  11. -----------------------------------------------------------
  12. Database Variables
  13. -----------------------------------------------------------
  14. */
  15. $table_categories = "`".$_course["dbNameGlu"]."forum_category"."`";
  16. $table_forums = "`".$_course["dbNameGlu"]."forum_forum"."`";
  17. $table_threads = "`".$_course["dbNameGlu"]."forum_thread"."`";
  18. $table_posts = "`".$_course["dbNameGlu"]."forum_post"."`";
  19. $table_mailcue = "`".$_course["dbNameGlu"]."forum_mailcue"."`";
  20. $table_item_property = Database :: get_course_table(LAST_TOOL_EDIT_TABLE);
  21. $table_users = Database :: get_main_table(MAIN_USER_TABLE);
  22. /*
  23. -----------------------------------------------------------
  24. Constants
  25. -----------------------------------------------------------
  26. */
  27. define("TOOL_FORUM_CATEGORY",'forum_category');
  28. define("TOOL_FORUM",'forum');
  29. define("TOOL_FORUM_THREAD",'forum_thread');
  30. define("TOOL_FORUM_POST",'forum_post');
  31. /*
  32. -----------------------------------------------------------
  33. Some configuration settings
  34. (these can go to the dokeos config settings afterwards)
  35. -----------------------------------------------------------
  36. */
  37. // if this setting is true then an I-frame will be displayed when replying
  38. $forum_setting['show_thread_iframe_on_reply']=true;
  39. // 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
  40. $forum_setting['allow_post_notificiation']=true;
  41. // 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)
  42. // these special posts are indicated with a special icon also
  43. $forum_setting['allow_sticky']=true;
  44. // 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
  45. // might slow down the page with the fora.
  46. // note: I'm currently investigating how it would be possible to increase the performance of this part.
  47. $forum_setting['show_last_post']=false;
  48. ?>