block_memberposts.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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_memberposts.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_member', 'class/block/member');
  12. class block_memberposts extends block_member {
  13. function block_memberposts() {
  14. $this->setting = array(
  15. 'orderby' => array(
  16. 'title' => 'memberlist_orderby',
  17. 'type' => 'mradio',
  18. 'value' => array(
  19. array('threads', 'memberlist_orderby_threads'),
  20. array('posts', 'memberlist_orderby_posts'),
  21. array('digestposts', 'memberlist_orderby_digestposts'),
  22. ),
  23. 'default' => 'threads'
  24. ),
  25. 'lastpost' => array(
  26. 'title' => 'memberlist_lastpost',
  27. 'type' => 'mradio',
  28. 'value' => array(
  29. array('', 'memberlist_lastpost_nolimit'),
  30. array('3600', 'memberlist_lastpost_hour'),
  31. array('86400', 'memberlist_lastpost_day'),
  32. array('604800', 'memberlist_lastpost_week'),
  33. array('2592000', 'memberlist_lastpost_month'),
  34. ),
  35. 'default' => ''
  36. ),
  37. 'startrow' => array(
  38. 'title' => 'memberlist_startrow',
  39. 'type' => 'text',
  40. 'default' => 0
  41. ),
  42. );
  43. }
  44. function name() {
  45. return lang('blockclass', 'blockclass_member_script_memberposts');
  46. }
  47. }
  48. ?>