DEMO: DOWNLOAD: 1) Pokud budete chtít zvolit jiný počet témat a uživatelů otevřete si includes/top_five.php a změňte všechny hodnoty 5 na jiné číslo
2) Pokud nebudete chtít mít MOD dole na fóru, ale například nahoře, kde je hned na očích otevřete styles/xxx/template/index_body.html
Najděte:
Kód: Vybrat vše
<!-- INCLUDE top_five_body.html -->
Kód: Vybrat vše
<!-- INCLUDE forumlist_body.html -->
Najděte:
Kód: Vybrat vše
foreach ($user_posts as $row)
{
$username_string = get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']);
Kód: Vybrat vše
$place = 0;
foreach ($user_posts as $row)
{
$place++;
$username_string = '<span style="color:red;"> ' . $place . '</span> ' . get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']);
Najděte:
Kód: Vybrat vše
p.poster_id = u.user_id
Kód: Vybrat vše
t.topic_last_poster_id = u.user_id
Kód: Vybrat vše
<!-- IF S_USER_LOGGED_IN -->
<br clear="all" />
<table id="bx" width="100%" height="28" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="{T_THEME_PATH}/images/cellpic4_l.png" width="17" height="28" alt="" /></td>
<td background="{T_THEME_PATH}/images/cellpic4_m.png" width="100%" height="28"><h4 class="cattitle">Top 5 Statistics</h4></td>
<td><img src="{T_THEME_PATH}/images/cellpic4_r.png" width="16" height="28" alt="" /></td>
</tr>
</table>
<table class="tablebg" width="100%" cellspacing="1">
<tr>
<td class="cat" width="40%"><h4>{L_NEWEST_TOPICS}</h4></td>
<td class="cat" width="20%"><h4>{L_TOP_FIVE_ACTIVE}</h4></td>
<td class="cat" width="40%"><h4>{L_TOP_FIVE_NEWEST}</h4></td>
</tr>
<tr>
<td class="row1, transON"><!-- BEGIN hot_topic_row --><span class="genmed"><a href="{hot_topic_row.U_TOPIC}">{hot_topic_row.TOPIC_TITLE}</a> {hot_topic_row.USERNAME_FULL}</span><br /><!-- END hot_topic_row --></td>
<td class="row1, transON"><!-- BEGIN top_five_active --><span class="genmed">{top_five_active.USERNAME_FULL} {L_POSTS}: <a href="{top_five_active.S_SEARCH_ACTION}">{top_five_active.POSTS}</a></span><br /><!-- END top_five_active --></td>
<td class="row1, transON"><!-- BEGIN top_five_newest --><span class="genmed">{top_five_newest.USERNAME_FULL} {L_JOINED}: {top_five_newest.REG_DATE}</span><br /><!-- END top_five_newest --></td>
</tr>
</table><br />
<!-- ENDIF -->
Kód: Vybrat vše
'REG_DATE' => $user->format_date($row['user_regdate']),
Kód: Vybrat vše
'REG_DATE' => date("M d", $row['user_regdate']),
Kód: Vybrat vše
'USERNAME_FULL' => $user->lang['BY'] . ':' . get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']),
Kód: Vybrat vše
'USERNAME_FULL' => $user->lang['BY'] . ': ' . get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']) . ' ' . $user->lang['POSTED'] . ' ' . $user->format_date($row['post_time']),
Kód: Vybrat vše
table.table1 td {
color: #575C6C;
}
9) Pokud budete chtít mít jednu událost na jedné řádce (téma,nick a datum za sebou) otevřete /styles/xxx/template/top_five_body.html
A přepište tímto:
Kód: Vybrat vše
<br clear="all" />
<div class="forabg">
<div class="inner"><span class="corners-top"><span></span></span>
<table class="table1" cellspacing="1" id="top_five">
<thead>
<tr>
<th style="width: 50%;">{L_NEWEST_TOPICS}</th>
<th style="width: 20%;">{L_TOP_FIVE_ACTIVE}</th>
<th style="width: 30%;">{L_TOP_FIVE_NEWEST}</th>
</tr>
</thead>
<tbody>
<tr class="bg2">
<td><!-- BEGIN hot_topic_row --><a href="{hot_topic_row.U_TOPIC}">{hot_topic_row.TOPIC_TITLE}</a>{hot_topic_row.USERNAME_FULL}<br /><!-- END hot_topic_row --></td>
<td><!-- BEGIN top_five_active -->{top_five_active.USERNAME_FULL} {L_POSTS}: <a href="{top_five_active.S_SEARCH_ACTION}">{top_five_active.POSTS}</a><br /><!-- END top_five_active --></td>
<td><!-- BEGIN top_five_newest -->{top_five_newest.USERNAME_FULL} {L_JOINED}: {top_five_newest.REG_DATE}<br /><!-- END top_five_newest --></td>
</tr>
</tbody>
</table>
<span class="corners-bottom"><span></span></span></div>
</div>
Kód: Vybrat vše
<?php
/**
*
* ban_list [English]
*
* @package language
* @version $Id: ban_list.php,v 1.0.0 2008/08/29 06:50:00 rmcgirr83 Exp $
* @copyright (c) 2008 Richard McGirr
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang))
{
$lang = array();
}
// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
$lang = array_merge($lang, array(
'NEWEST_TOPICS' => 'Nejnovější příspěvky',
'TOP_FIVE_ACTIVE' => 'Nejaktivnější uživatelé',
'TOP_FIVE_NEWEST' => 'Nejnovější členové',
'IN' => ' ',
'BY' => 'od,
));
?>
Tak a teď bych poprosil o pomoc já protože už jsem asi blbej ale nejde mi zarovnat pouze čas u posledních příspěvků doprava, pořád mi to MOD rozhazuje, nevíte někdo jak na to?