moj index nic takiego nie ma w nim co pisałeś @up
<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
<script type="text/javascript">
<!--
lang.no_new_posts = "{$lang->no_new_posts}";
lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>
</head>
<body>
{$header}
{$serversboard}
<a class="buttons" style="float: right;"><i class="fa fa-angle-right"></i></a>
<a class="clickedbuttons" style="float: right;"><i class="fa fa-angle-left"></i></a>
<div class="forums" style="float: left;width: 80%;">
{$dvz_shoutbox}
{$dvz_stream}
{$forums}
</div>
<div class="sidebar" style="float: right;width: 19%;">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder border_table" style="clear: both;">
<tr>
<td class="thead" colspan="2">
<center>Szybkie linki</center>
</td>
</tr>
<tr>
<td class="trow2">
<div class= "slink2"><a href= "tutaj link do strony" style= "color: white; !important!;">Wstaw tekst</a></div>
<div class= "slink2"><a href= "tutaj link do strony" style= "color: white; !important!;">Wstaw tekst</a></div>
<div class= "slink2"><a href= "tutaj link do strony" style= "color: white; !important!;">Wstaw tekst</a></div>
<div class= "slink2"><a href= "tutaj link do strony" style= "color: white; !important!;">Wstaw tekst</a></div>
<div class= "slink2"><a href= "tutaj link do strony" style= "color: white; !important!;">Wstaw tekst</a></div>
<div class= "slink2"><a href= "tutaj link do strony" style= "color: white; !important!;">Wstaw tekst</a></div>
</td>
</tr>
</table>
</div>
<div class="sidebar" style="float: right;width: 19%;">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder border_table" style="clear: both;">
<tr>
<td class="thead" colspan="2">
<center> Kontakt z Administracją </center>
</td>
</tr>
<tr>
<td class="trow2">
<img src="http://cs-dreamhack.xaa.pl/uploads/avatars/avatar_1.jpg" alt="" style="border: 1px solid #444;
padding: 1px;float: left;width:50px; height:50px;margin-right: 5px; border-radius: 8px; ">
<span style="float: left;"><a href="http://cs-dreamhack.xaa.pl/member.php?action=profile&uid=1"><span style="text-shadow: 3px 3px 15px #f60808; color: #f60808; font-weight: bold;">★ Myrym ★</span></a></span><br>
<span style=" float:left; "><img src="http://status.gadu-gadu.pl/users/status.asp?id=7118840&styl=1" alt="GG: 7118840" style="margin-top:2px;width:14px;margin-bottom:-2px;" border="0"> GaduGadu:<a href="gg:7118840"> 7118840</a></span><br> <span style=" float:left; "><img src="http://fragzone.pl/images/steam_icon_by_vaksa.png" style="float: left;width: 14px;margin-right: 4px;
margin-top: 2px; style="float: left;width: 14px;margin-right: 4px;
margin-top: 2px; "> Steam: <a href="https://steamcommunity.com/profiles/76561197967544156/"> Who am I o.O</a></span>
<center><p style="color:#282828;;">_____________________________</p></center>
<img src="http://cs-dreamhack.xaa.pl/uploads/avatars/avatar_2.jpg?" alt="" style="border: 1px solid #444;
padding: 1px;float: left;width:50px; height:50px;margin-right: 5px; border-radius: 8px;">
<span style="float: left;"><a href="http://cs-dreamhack.xaa.pl/member.php?action=profile&uid=2"><span style="text-shadow: 3px 3px 15px #f60808; color: #f60808; font-weight: bold;">★ Vegeta ★</span></a></span><br>
<span style=" float:left; "><img src="http://status.gadu-gadu.pl/users/status.asp?id=47084734
&styl=1" alt="GG: 47084734
" style="margin-top:2px;width:14px;margin-bottom:-2px;" border="0"> GaduGadu:<a href="gg:47084734
"> 47084734
</a></span><br> <span style=" float:left; "><img src="http://fragzone.pl/images/steam_icon_by_vaksa.png" style="float: left;width: 14px;margin-right: 4px;
margin-top: 2px; style="float: left;width: 14px;margin-right: 4px;
margin-top: 2px; "> Steam: <a href=" http://steamcommunity.com/id/dolnobrzeskijoint/"> Vegeta</a></span>
</td>
{$forumteamonline}
{$statsuserlog}
{$topStats['LastThreads']}
{$topStats['Posters']}
{$topStats['Reputation']}
{$topStats['TimeOnline']}
</tr>
</table>
</div>
<br class="clear" />
{$boardstats}
<!--
<dl class="forum_legend smalltext">
<dt><span class="forum_status forum_on" title="{$lang->new_posts}"></span></dt>
<dd>{$lang->new_posts}</dd>
<dt><span class="forum_status forum_off" title="{$lang->no_new_posts}"></span></dt>
<dd>{$lang->no_new_posts}</dd>
<dt><span class="forum_status forum_offlock" title="{$lang->forum_locked}"></span></dt>
<dd>{$lang->forum_locked}</dd>
<dt><span class="forum_status forum_offlink" title="{$lang->forum_redirect}"></span></dt>
<dd>{$lang->forum_redirect}</dd>
</dl>
-->
{$footer}
</body>
</html>
//
To tak znalazłem to ale wewnatrz pluginu bo go sam dodawałem i zapisywałem notatnikiem ++ statsuserindex.php zawartosc poprawiona
<?php
if(!defined("IN_MYBB"))
{
die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
}
$plugins->add_hook("index_start", "statsuserindex");
function statsuserindex_info()
{
//info
$website = "https://webboard.pl";
return array(
"name" => "Statystyki użytkownika na stronie głównej",
"description" => "---",
"website" => "{$website}",
"author" => "Snake_",
"authorsite" => "{$website}/uzytkownik-snake_19523",
"version" => "0.1",
);
}
function statsuserindex_activate()
{
}
function statsuserindex_deactivate()
{
}
function statsuserindex()
{
global $mybb, $cache, $statsuserlog, $theme, $groupscache, $lastvisit;
//ogolna funkcja
if($mybb->user['uid']) {
$tekst_wyswietlany_w_thead = "Statystyki użytkownika {$mybb->user['username']}.";
$nick_usera = build_profile_link(format_name($mybb->user['username'], $mybb->user['usergroup'], $mybb->user['displaygroup']), $mybb->user['uid']);
$nick_usera = "<span style=\"font-size: 20px;\">{$nick_usera}</span>";
$avatar_usera = '<img src="' . (empty($mybb->user['avatar']) ? 'images/default_avatar.png' : $mybb->user['avatar']) . '" title="' . $mybb->user['username'] . '" class="avatar_usera"/>';
$reputacja_usera = $mybb->user['reputation'];
$email_usera = "<a href=\"mailto:{$mybb->user['email']}\">{$mybb->user['email']}</a>";
$postow_usera = $mybb->user['postnum'];
}
else {
$tekst_wyswietlany_w_thead = "Twoje statystyki";
$nick_usera = "Gość";
$avatar_usera = '<img src="images/default_avatar.png" class="avatar_usera" />';
$reputacja_usera = 0;
$email_usera = "<i>Nie zidentyfikowano</i>";
$postow_usera = 0;
}
if(!is_array($groupscache))
$groupscache = $cache->read("usergroups");
$grupa_usera = $groupscache[$mybb->user['usergroup']]['title'];
$ostatnio_tu_bylem = $mybb->user['lastvisit'];
$ip = $_SERVER['REMOTE_ADDR'];
$statsuserlog = "
<table border=\"0\" cellspacing=\"{$theme['borderwidth']}\" cellpadding=\"{$theme['tablespace']}\" style=\"width: 100%;\">
<tr>
<td class=\"thead\"><strong>
{$tekst_wyswietlany_w_thead}
</strong></td>
</tr>
<tr>
<td class=\"trow2\">
<div style=\"text-align: center;\">
{$nick_usera}
<br />
<br>
</br>
<div>
{$avatar_usera}
</div>
<br />
<div>
<div class=\"staty_author\"><div class=\"staty_left_a\">Grupa:</div><div class=\"staty_right_a\"> {$grupa_usera}</div></div>
<div class=\"staty_author\"><div class=\"staty_left_a\">Reputacja:</div><div class=\"staty_right_a\"> {$reputacja_usera}</div></div>
<div class=\"staty_author\"><div class=\"staty_left_a\">Liczba postów:</div><div class=\"staty_right_a\"> {$postow_usera}</div></div>
<div class=\"staty_author\"><div class=\"staty_left_a\">E-mail:</div><div class=\"staty_right_a\"> {$email_usera}</div></div>
<div class=\"staty_author\"><div class=\"staty_left_a\">Moje IP:</div><div class=\"staty_right_a\"> {$ip}</div></div>
<div class=\"staty_author\"><div class=\"staty_left_a\">Ostatnia wizyta:</div><div class=\"staty_right_a\"> {$lastvisit}</div></div>
</div>
</td>
</tr>
</table>";
}
?>