No więc znajdz w viewtopic.php
Kod:
$yim = ( $postrow[$i]['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $postrow[$i]['user_yim'] . '&.src=pg">' . $lang['YIM'] . '</a>' : '';
Potem dodaj
Kod:
$regdate = $postrow[$i]['user_regdate'];
$memberdays = max(1, round( ( time() - $regdate ) / 86400 ));
$posts_per_day = $postrow[$i]['user_posts'] / $memberdays;
// Get the users percentage of total posts
if ( $postrow[$i]['user_posts'] != 0 )
{
$total_posts = get_db_stat('postcount');
$percentage = ( $total_posts ) ? min(100, ($postrow[$i]['user_posts'] / $total_posts) * 100) : 0;
}
else
{
$percentage = 0;
}
if (function_exists('get_html_translation_table'))
{
$u_search_author = urlencode(strtr($postrow[$i]['username'], array_flip(get_html_translation_table(HTML_ENTITIES))));
}
else
{
$u_search_author = urlencode(str_replace(array('&', ''', '"', '<', '>'), array('&', "'", '"', '<', '>'), $postrow[$i]['username']));
}
znajdz
Kod:
$yim = '';
dodaj
Kod:
$percentage = '';
$u_search_author = '';
znajdz
Kod:
'YIM' => $yim,
dodaj
Kod:
'POST_DAY_STATS' => sprintf($lang['User_post_day_stats'], $posts_per_day),
'POST_PERCENT_STATS' => sprintf($lang['User_post_pct_stats'], $percentage),
'POSTS' => $postrow[$i]['user_posts'],
znajdz
Kod:
'L_MINI_POST_ALT' => $mini_post_alt,
dodaj
Kod:
'L_TOTAL_POSTS' => $lang['Total_posts'],
'L_SEARCH_USER_POSTS' => sprintf($lang['Search_user_posts'], $postrow[$i]['username']),
'U_SEARCH_USER' => append_sid("search.$phpEx?search_author=" . $u_search_author),
znajdz
Kod:
'U_MINI_POST' => $mini_post_url,
'U_POST_ID' => $postrow[$i]['post_id'])
);
dodaj
Kod:
if($postrow[$i]['user_id'] != '-1') { $template->assign_block_vars('postrow.user_registered', array()); }
i w viewtopic_body.tpl wklep to gdzieś miedzy BEGIN a END postrow
Kod:
<!-- BEGIN user_registered -->
<table>
<tr>
<td valign="top" align="right" nowrap="nowrap"><span class="gen">{postrow.L_TOTAL_POSTS}: </span></td>
<td valign="top"><b><span class="gen">{postrow.POSTS}</span></b><br /><span class="genmed">[{postrow.POST_PERCENT_STATS} / {postrow.POST_DAY_STATS}]</span> <br /><span class="genmed"><a href="{postrow.U_SEARCH_USER}" class="genmed">{postrow.L_SEARCH_USER_POSTS}</a></span></td>
</tr>
</table>
<!-- END user_registered -->
Myśle że bedzie ok