+++ /dev/null
-<?php
-function b_user_newusers_show($options)
-{
- $block = array();
- $criteria = new CriteriaCompo(new Criteria('level', 0, '>'));
- $limit = (!empty($options[0])) ? $options[0] : 10;
- $criteria->setOrder('DESC');
- $criteria->setSort('user_regdate');
- $criteria->setLimit($limit);
- $member_handler =& xoops_gethandler('member');
- $newmembers =& $member_handler->getUsers($criteria);
- $count = count($newmembers);
- for ($i = 0; $i < $count; $i++) {
- if ( $options[1] == 1 ) {
- $block['users'][$i]['avatar'] = $newmembers[$i]->getVar('user_avatar') != 'blank.gif' ? XOOPS_UPLOAD_URL.'/'.$newmembers[$i]->getVar('user_avatar') : '';
- } else {
- $block['users'][$i]['avatar'] = '';
- }
- $block['users'][$i]['id'] = $newmembers[$i]->getVar('uid');
- $block['users'][$i]['name'] = $newmembers[$i]->getVar('uname');
- $block['users'][$i]['joindate'] = $newmembers[$i]->getVar('user_regdate');
- }
- return $block;
-}
-
-function b_user_newusers_edit($options)
-{
- $inputtag = '<input type="text" name="options[]" value="'.$options[0].'" />';
- $form = sprintf(_MB_USER_DISPLAY,$inputtag);
- $form .= '<br />'._MB_USER_DISPLAYA.' <input type="radio" id="options[]" name="options[]" value="1"';
- if ( $options[1] == 1 ) {
- $form .= ' checked="checked"';
- }
- $form .= ' /> '._YES.'<input type="radio" id="options[]" name="options[]" value="0"';
- if ( $options[1] == 0 ) {
- $form .= ' checked="checked"';
- }
- $form .= ' /> '._NO;
- return $form;
-}
-?>
define('_MI_USER_ADMENU_USER_SEARCH', "User Search");
define('_MI_USER_BLOCK_LOGIN_DESC', "Shows login form");
define('_MI_USER_BLOCK_LOGIN_NAME', "Login");
-define('_MI_USER_BLOCK_NEWUSERS_DESC', "Shows most recent users");
-define('_MI_USER_BLOCK_NEWUSERS_NAME', "New Members");
define('_MI_USER_BLOCK_TOPUSERS_DESC', "Top posters");
define('_MI_USER_BLOCK_TOPUSERS_NAME', "Top Posters");
define('_MI_USER_CONF_ACTV_ADMIN', "Activation by administrators");
define('_MI_USER_ADMENU_USER_SEARCH', "ユーザー検索");
define('_MI_USER_BLOCK_LOGIN_DESC', "ログインフォームを表示します");
define('_MI_USER_BLOCK_LOGIN_NAME', "ログイン");
-define('_MI_USER_BLOCK_NEWUSERS_DESC', "新しい登録ユーザの一覧を表示します");
-define('_MI_USER_BLOCK_NEWUSERS_NAME', "新しい登録ユーザ");
define('_MI_USER_BLOCK_TOPUSERS_DESC', "投稿数のランキングを表示します");
define('_MI_USER_BLOCK_TOPUSERS_NAME', "投稿数ランキング");
define('_MI_USER_CONF_ACTV_ADMIN', "管理者が確認してアカウントを有効にする");
$modversion['blocks'][1]['visible_any'] = true;
$modversion['blocks'][1]['show_all_module'] = true;
-$modversion['blocks'][3]['file'] = "user_newusers.php";
-$modversion['blocks'][3]['name'] = _MI_USER_BLOCK_NEWUSERS_NAME;
-$modversion['blocks'][3]['description'] = _MI_USER_BLOCK_NEWUSERS_DESC;
-$modversion['blocks'][3]['show_func'] = "b_user_newusers_show";
-$modversion['blocks'][3]['template'] = 'user_block_newusers.html';
-$modversion['blocks'][3]['edit_func'] = "b_user_newusers_edit";
-$modversion['blocks'][3]['options'] = "10|1";
-$modversion['blocks'][3]['show_all_module'] = true;
-
$modversion['blocks'][4]['file'] = "user_topusers.php";
$modversion['blocks'][4]['name'] = _MI_USER_BLOCK_TOPUSERS_NAME;
$modversion['blocks'][4]['description'] = _MI_USER_BLOCK_TOPUSERS_DESC;