block_groupthreadspecified.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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_groupthreadspecified.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_groupthreadspecified extends block_groupthread {
  13. function block_groupthreadspecified() {
  14. $this->setting = array(
  15. 'tids' => array(
  16. 'title' => 'groupthread_tids',
  17. 'type' => 'text'
  18. ),
  19. 'fids' => array(
  20. 'title' => 'groupthread_fids',
  21. 'type' => 'text'
  22. ),
  23. 'uids' => array(
  24. 'title' => 'groupthread_uids',
  25. 'type' => 'text'
  26. ),
  27. 'special' => array(
  28. 'title' => 'groupthread_special',
  29. 'type' => 'mcheckbox',
  30. 'value' => array(
  31. array(1, 'groupthread_special_1'),
  32. array(2, 'groupthread_special_2'),
  33. array(3, 'groupthread_special_3'),
  34. array(4, 'groupthread_special_4'),
  35. array(5, 'groupthread_special_5'),
  36. array(0, 'groupthread_special_0'),
  37. )
  38. ),
  39. 'rewardstatus' => array(
  40. 'title' => 'groupthread_special_reward',
  41. 'type' => 'mradio',
  42. 'value' => array(
  43. array(0, 'groupthread_special_reward_0'),
  44. array(1, 'groupthread_special_reward_1'),
  45. array(2, 'groupthread_special_reward_2')
  46. ),
  47. 'default' => 0,
  48. ),
  49. 'picrequired' => array(
  50. 'title' => 'groupthread_picrequired',
  51. 'type' => 'radio',
  52. 'value' => '0'
  53. ),
  54. 'titlelength' => array(
  55. 'title' => 'groupthread_titlelength',
  56. 'type' => 'text',
  57. 'default' => 40
  58. ),
  59. 'summarylength' => array(
  60. 'title' => 'groupthread_summarylength',
  61. 'type' => 'text',
  62. 'default' => 80
  63. ),
  64. );
  65. }
  66. function name() {
  67. return lang('blockclass', 'blockclass_groupthread_script_groupthreadspecified');
  68. }
  69. }
  70. ?>