Добавка аватарок в секцию "Новые сообщения" авторов последних сообщений.
Доработка Автора мода
http://www.phpbb.com/customise/db/mod/t ... 58#p189858
Добавлено спустя 4 минуты 42 секунды:
Доработка мода с исправлением (вычеркиванием ) из списка активных забаненых и тех, у кого предупреждения...
http://www.phpbb.com/customise/db/mod/t ... 68#p203468
Добавлено спустя 5 минут 30 секунд:
Добавление в блок активности рекордсменов по благодарностям (четвертую секцию)
http://www.phpbb.com/customise/db/mod/t ... 67#p182767
Добавлено спустя 42 минуты 18 секунд:
А теперь вопрос тем кто знает..
есть еще одна добавка еще одной секции. Это секция активистов по времени посещения форума.
Вот инструкция.
includes/top_five.php
найти
добавить перед
Код: Выделить всё
// top five online users
if (!function_exists('get_time_text'))
{
include($phpbb_root_path . 'includes/functions_content.' . $phpEx);
}
if (($user_online = $cache->get('_top_five_online')) === false)
{
$user_online = array();
$sql = 'SELECT user_id, username, user_colour, user_online_timeformat, user_online_time
FROM ' . USERS_TABLE . '
ORDER BY user_online_time DESC';
$result = $db->sql_query_limit($sql, 5);
while ($row = $db->sql_fetchrow($result))
{
$user_online[$row['user_id']] = array(
'user_id' => $row['user_id'],
'username' => $row['username'],
'user_colour' => $row['user_colour'],
'user_online_timeformat' => $row['user_online_timeformat'],
'user_online_time' => $row['user_online_time'],
);
}
$db->sql_freeresult($result);
// cache this data for 5 minutes, this improves performance
$cache->put('_top_five_online', $user_online, 300);
}
foreach ($user_online as $row)
{
$username_string = get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']);
$template->assign_block_vars('top_five_online',array(
'USER_ONLINE_TIME' => get_time_text($row['user_online_time'], $row['user_online_timeformat']),
'USERNAME_FULL' => $username_string)
);
}
language/ru/mods/top_five.php
найти
добавить после
styles/prosilver/template/top_five_body.html
найти
Код: Выделить всё
<th style="width: 50%;">{L_NEWEST_TOPICS}</th>
цифру 50 поменять на 30
найти
Код: Выделить всё
<th style="width: 30%;">{L_TOP_FIVE_NEWEST}</th>
добавить после
Код: Выделить всё
<th style="width: 20%;">{L_TOP_ONLINE}</th>
найти
Код: Выделить всё
<td valign="top"><!-- BEGIN top_five_newest -->{top_five_newest.USERNAME_FULL}<br /> {L_JOINED}: {top_five_newest.REG_DATE}<br /><!-- END top_five_newest --></td>
добавить после
Код: Выделить всё
<td valign="top"><!-- BEGIN top_five_online -->{top_five_online.USERNAME_FULL}<br />{L_TOTAL_TIME_LOGGED_IN}: {top_five_online.USER_ONLINE_TIME}<br /><!-- END top_five_online --></td>
Разобрался...сам накосячил...