Belka w statystykach uzytkownika

Inne  Założony przez  uploadWar.

Wersja skryptu MyBB: 1.8.6
Adres forum: Cs-Zone.pl
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu): 


Witam, chciałbym dopasować górną belkę w Statystyki użytkownika w panelu bocznym i bardzo prosiłbym was o pomoc, tworząc statystyki korzystałem z tematu :  https://webboard.pl/thread-58283.html
Podobnie mam z ShoutBox.. 

[Obrazek: 74414495695116901766.png]
Shoutbox - temat poruszany masę razy. To przez to, że w szablonie brakuje literki 't' w jednej z klas.

Jeśli chcesz by belka sb wyglądała tak jak inne, to w global.css zamień
#shoutbox.front .head { cursor: pointer; }
na
#shoutbox.front .head { cursor: pointer; background: #1d410d url(../../../images/carbon/maintitle.png) repeat-x 50% 0; color: #fff; text-shadow: rgba(0,0,0,0.4) 0px -1px 0px; padding: 14px; font-size: 12px;  font-weight: bold; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; -webkit-box-shadow: inset rgba(255,255,255,0.15) 0px 0px 0px 1px; -moz-box-shadow: inset rgba(255,255,255,0.15) 0px 0px 0px 1px; box-shadow: inset rgba(255,255,255,0.15) 0px 0px 0px 1px; overflow: hidden; margin-bottom: 4px; }

Panel boczny - w szablonie od tych statystyk, zamień
<td class="tcat"><strong>
Twoje statystyki
</strong></td>

na

<td class="thead"><strong>
Twoje statystyki
</strong></td>
„Lecz biorę całą odpowiedzialność na siebie. Być może się pomyliłem. Ale przecież mylić się jest rzeczą ludzką.”
Cytat:Panel boczny - w szablonie od tych statystyk, zamień
<td class="tcat"><strong>
Twoje statystyki
</strong></td>

na

<td class="thead"><strong>
Twoje statystyki
</strong></td>

Tzn gdzie mam wejść jeśli można jaśniej.
Edytowałem global.css i belka w shoutbox pojawiła się tylko, że zielona
Zamiast ../../../images/carbon/maintitle.png
Daj to ../../../images/carbon/thead_gray.png
#shoutbox.front .head { cursor: pointer; background: #1d410d url(../../../images/carbon/maintitle.png) repeat-x 50% 0; color: #fff; text-shadow: rgba(0,0,0,0.4) 0px -1px 0px; padding: 14px; font-size: 12px;  font-weight: bold; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; -webkit-box-shadow: inset rgba(255,255,255,0.15) 0px 0px 0px 1px; -moz-box-shadow: inset rgba(255,255,255,0.15) 0px 0px 0px 1px; box-shadow: inset rgba(255,255,255,0.15) 0px 0px 0px 1px; overflow: hidden; margin-bottom: 4px; } 

zamień na:

#shoutbox.front .head { cursor: pointer; background: #1d410d url(../../../images/carbon/thead_gray.png) repeat-x 50% 0; color: #fff; text-shadow: rgba(0,0,0,0.4) 0px -1px 0px; padding: 14px; font-size: 12px;  font-weight: bold; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; -webkit-box-shadow: inset rgba(255,255,255,0.15) 0px 0px 0px 1px; -moz-box-shadow: inset rgba(255,255,255,0.15) 0px 0px 0px 1px; box-shadow: inset rgba(255,255,255,0.15) 0px 0px 0px 1px; overflow: hidden; margin-bottom: 4px; } 
Prośby na PW dotyczące wsparcia z problemami będą ignorowane. Pomoc poza forum - odpłatna.
(02.03.2016, 18:33)p0y3b napisał(a): Zamiast ../../../images/carbon/maintitle.png
Daj to ../../../images/carbon/thead_gray.png


No ale gdzie ja mam to edytować
mój plik wygląda tak:
<?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%;
border-left: 1px solid #393939;
border-right: 1px solid #393939;
border-bottom: 1px solid #393939;\">
<tr>
<td class=\"tcat\"><strong>
{$tekst_wyswietlany_w_thead}
</strong></td>
</tr>
<tr>
<td class=\"trow1\">
<div style=\"text-align: center;\">
{$nick_usera}
<br />
{$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>";    
}
?>
Z SB sobie poradziłeś, a co do panelu bocznego, to zamień ten kod co podałeś w ostatnim poście na to:

<?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%;
border-left: 1px solid #393939;
border-right: 1px solid #393939;
border-bottom: 1px solid #393939;\">
<tr>
<td class=\"thead\"><strong>
{$tekst_wyswietlany_w_thead}
</strong></td>
</tr>
<tr>
<td class=\"trow1\">
<div style=\"text-align: center;\">
{$nick_usera}
<br />
{$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>";    
}
?>

a jedyne co w nim zmieniłem to:
<td class=\"tcat\"><strong>
{$tekst_wyswietlany_w_thead}
</strong></td>
na
<td class=\"thead\"><strong>
{$tekst_wyswietlany_w_thead}
</strong></td>
„Lecz biorę całą odpowiedzialność na siebie. Być może się pomyliłem. Ale przecież mylić się jest rzeczą ludzką.”
wszystko działa, dziękuje bardzo :)



Użytkownicy przeglądający ten wątek:

1 gości