block_groupthreadnew.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <?php
  2. /**
  3. * [Discuz!] (C)2001-2099 Comsenz Inc.
  4. * This is NOT a freeware, use is subject to license terms
  5. *
  6. * $Id: block_groupthreadnew.php 23608 2011-07-27 08:10:07Z cnteacher $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. require_once libfile('block_groupthread', 'class/block/group');
  12. class block_groupthreadnew extends block_groupthread {
  13. function block_groupthreadnew() {
  14. $this->setting = array(
  15. 'gtids' => array(
  16. 'title' => 'groupthread_gtids',
  17. 'type' => 'mselect',
  18. 'value' => array(
  19. ),
  20. ),
  21. 'special' => array(
  22. 'title' => 'groupthread_special',
  23. 'type' => 'mcheckbox',
  24. 'value' => array(
  25. array(1, 'groupthread_special_1'),
  26. array(2, 'groupthread_special_2'),
  27. array(3, 'groupthread_special_3'),
  28. array(4, 'groupthread_special_4'),
  29. array(5, 'groupthread_special_5'),
  30. array(0, 'groupthread_special_0'),
  31. )
  32. ),
  33. 'rewardstatus' => array(
  34. 'title' => 'groupthread_special_reward',
  35. 'type' => 'mradio',
  36. 'value' => array(
  37. array(0, 'groupthread_special_reward_0'),
  38. array(1, 'groupthread_special_reward_1'),
  39. array(2, 'groupthread_special_reward_2')
  40. ),
  41. 'default' => 0,
  42. ),
  43. 'picrequired' => array(
  44. 'title' => 'groupthread_picrequired',
  45. 'type' => 'radio',
  46. 'value' => '0'
  47. ),
  48. 'orderby' => array(
  49. 'title' => 'groupthread_orderby',
  50. 'type'=> 'mradio',
  51. 'value' => array(
  52. array('lastpost', 'groupthread_orderby_lastpost'),
  53. array('dateline', 'groupthread_orderby_dateline'),
  54. ),
  55. 'default' => 'lastpost'
  56. ),
  57. 'lastpost' => array(
  58. 'title' => 'groupthread_lastpost',
  59. 'type'=> 'mradio',
  60. 'value' => array(
  61. array('0', 'groupthread_lastpost_nolimit'),
  62. array('3600', 'groupthread_lastpost_hour'),
  63. array('86400', 'groupthread_lastpost_day'),
  64. array('604800', 'groupthread_lastpost_week'),
  65. array('2592000', 'groupthread_lastpost_month'),
  66. ),
  67. 'default' => '0'
  68. ),
  69. 'gviewperm' => array(
  70. 'title' => 'groupthread_gviewperm',
  71. 'type' => 'mradio',
  72. 'value' => array(
  73. array('0', 'groupthread_gviewperm_only_member'),
  74. array('1', 'groupthread_gviewperm_all_member')
  75. ),
  76. 'default' => '1'
  77. ),
  78. 'titlelength' => array(
  79. 'title' => 'groupthread_titlelength',
  80. 'type' => 'text',
  81. 'default' => 40
  82. ),
  83. 'summarylength' => array(
  84. 'title' => 'groupthread_summarylength',
  85. 'type' => 'text',
  86. 'default' => 80
  87. ),
  88. );
  89. }
  90. function name() {
  91. return lang('blockclass', 'blockclass_groupthread_script_groupthreadnew');
  92. }
  93. }
  94. ?>