Открыть: viewtopic.php
Найти:
Найти:
- Код: Выделить всё
'joined' => '',
- Код: Выделить всё
// BANNED USERS
'lastvisit' => '',
'type' => '',
// END BANNED USERS
- Код: Выделить всё
'joined' => $user->format_date($row['user_regdate']),
- Код: Выделить всё
// BANNED USERS
'lastvisit' => $row['user_lastvisit'],
'type' => $row['user_type'],
// END BANNED USERS
- Код: Выделить всё
unset($id_cache);
- Код: Выделить всё
// BANNED USERS
if ($config['inactive_users_enable'] && $auth->acl_get('u_view_customavatars'))
{
include($phpbb_root_path . 'includes/functions_inactive_users.' . $phpEx);
$banned_user_list = get_banned_user_list();
$excluded_user_ids = array();
$excluded_user_ids = ($config['inactive_users_exc_ids']) ? explode(",", $config['inactive_users_exc_ids']) : array();
}
// END BANNED USERS
- Код: Выделить всё
// Dump vars into template
- Код: Выделить всё
// BANNED USERS
if ($config['inactive_users_enable'] && $auth->acl_get('u_view_customavatars') && !in_array($poster_id, $excluded_user_ids))
{
$inactive_data = banned_user_templates($poster_id, $banned_user_list, $user_cache[$poster_id]['lastvisit'], $user_cache[$poster_id]['avatar'],$user_cache[$poster_id]['posts'], $user_cache[$poster_id]['type']);
if (sizeof($inactive_data))
{
$postrow = array_merge($postrow, $inactive_data);
}
}
// END BANNED USERS
Открыть: memberlist.php
Найти:
Найти:
- Код: Выделить всё
if (!empty($profile_fields['row']))
- Код: Выделить всё
// BANNED USERS
if ($config['inactive_users_enable'] && $auth->acl_get('u_view_customavatars'))
{
include($phpbb_root_path . 'includes/functions_inactive_users.' . $phpEx);
$inactive_data = obtain_user_ban_info($user_id, $member['user_lastvisit'], $member['user_posts'], $member['user_type'], $poster_avatar);
if ($inactive_data)
{
$template->assign_vars($inactive_data);
}
}
// END BANNED USERS
Открыть: includes/acp/acp_board.php
Найти:
Найти:
- Код: Выделить всё
'warnings_expire_days' => array('lang' => 'WARNINGS_EXPIRE', 'validate' => 'int', 'type' => 'text:3:4', 'explain' => true, 'append' => ' ' . $user->lang['DAYS']),
- Код: Выделить всё
// BANNED USERS
'legend3' => 'INACTIVE_USERS_TITLES',
'inactive_users_enable' => array('lang' => 'INACTIVE_USERS_ENABLE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
'inactive_users_excl_view_ban' => array('lang' => 'INACTIVE_USERS_EXCL_VIEW_BAN', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
'inactive_users_excl_view_time' => array('lang' => 'INACTIVE_USERS_EXCL_VIEW_TIME', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
'inactive_users_excl_prof_ban' => array('lang' => 'INACTIVE_USERS_EXCL_PROF_BAN', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
'inactive_users_excl_prof_time' => array('lang' => 'INACTIVE_USERS_EXCL_PROF_TIME', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
'inactive_users_avatar_view_enable' => array('lang' => 'INACTIVE_USERS_AVATAR_VIEW_ENABLE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
'inactive_users_avatar_prof_enable' => array('lang' => 'INACTIVE_USERS_AVATAR_PROF_ENABLE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
'inactive_users_no_avatar' => array('lang' => 'INACTIVE_USERS_NO_AVATAR', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
'inactive_users_period' => array('lang' => 'INACTIVE_USERS_PERIOD', 'validate' => 'string', 'type' => 'text:5:6', 'explain' => true),
'inactive_users_exc_ids' => array('lang' => 'INACTIVE_USERS_EXC_IDS', 'validate' => 'string', 'type' => 'text:25:255', 'explain' => true),
// END BANNED USERS
#177
#177
#177
#177
#177
#177
#177
Мод я переделал, разделил переменные, вывел в шаблон, ну и так кое что по мелочи, свой вариант выкладывать нет желания, платно индивидуально пожалуйста, а так качайте тот что в паблике, делайте сами, если мод заинтересовал.
#177
Русский перевод.
Настроить права в админке Пользовательские роли. | Права групп.