dokeos
[ class tree: dokeos ] [ index: dokeos ] [ all elements ]

Source for file forumconfig.inc.php

Documentation is available at forumconfig.inc.php

  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. /*
  13. -----------------------------------------------------------
  14.     Database Variables
  15. -----------------------------------------------------------
  16. */
  17. $table_categories         "`".$_course["dbNameGlu"]."forum_category"."`"
  18. $table_forums             "`".$_course["dbNameGlu"]."forum_forum"."`"
  19. $table_threads             "`".$_course["dbNameGlu"]."forum_thread"."`"
  20. $table_posts             "`".$_course["dbNameGlu"]."forum_post"."`"
  21. $table_mailcue            "`".$_course["dbNameGlu"]."forum_mailcue"."`";
  22.  
  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. -----------------------------------------------------------
  29.     Constants
  30. -----------------------------------------------------------
  31. */
  32. define("TOOL_FORUM_CATEGORY",'forum_category');
  33. define("TOOL_FORUM",'forum');
  34. define("TOOL_FORUM_THREAD",'forum_thread');
  35. define("TOOL_FORUM_POST",'forum_post');
  36. define("TOOL_FORUM_ATTACH",'forum_attachment');
  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
  54.  
  55. ?>

Documentation generated on Thu, 12 Jun 2008 13:30:47 -0500 by phpDocumentor 1.4.1