wersja skryptu MyBB:
adres forum:gramtu.xaa.pl
na czym polega problem (screen, opis, komunikaty):
Chcę mieć na forum mybb takie statystyki jak na ss:
A mógłbyś mi lub mógłby mi ktoś to wytłumaczyć po polsku?
Bo nie wiem gdzie w co wejść i gdzie co edytować.
I jak zrobić aby tło zamiast zielonego było czarne.
Łopatologicznie:
**Zrób sobie kopie szablonów, które będziesz edytował bo nie wiem jak to sięu Ciebie zachowa**
1. Wchodzisz w ACP -> Style i Szablony -> Szablony -> Twój_Szablon -> Strona Główna i:
a)Zamieniasz
cały index_boardstats na ten:
Kod:
{$forumstats}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.gif" id="boardstats_img" class="expander" alt="[-]" title="[-]" /></div>
<div><strong>{$lang->boardstats}</strong></div>
</td>
</tr>
</thead>
<tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">
{$whosonline}
{$birthdays}
<tr>
<td class="tfoot" style="text-align: right">
<span class="smalltext">
{$logoutlink}
<a href="misc.php?action=markread{$post_code_string}">{$lang->markread}</a> |
<a href="showteam.php">{$lang->forumteam}</a> |
<a href="stats.php">{$lang->forumstats}</a>
</span>
</td>
</tr>
</tbody>
</table>
<br />
b) Zamieniasz
cały index_stats na ten:
Kod:
<div style="text-align: center;">
<span class="statround">{$stats['numposts']}</span> Postów
<span class="statround">{$stats['numthreads']}</span> Tematów
<span class="statround">{$stats['numusers']}</span> Użytkowników
<span class="statround">$newestmember</span> Najnowszy użytkownik
<span title="{$recorddate}, {$recordtime}"><span class="statround">{$mostonline['numusers']}</span> Najwięcej online</span>
</div>
<br />
2. Wchodzisz w ACP -> Style i Szablony -> Twój_Styl -> global.css -> tryb zaawansowany i na koniec wklejasz:
Kod:
.statround {
background: #98c22a;
color: #ffffff;
padding: 4px 10px;
margin-left: 20px;
border-radius: 4px;
}
.statround a:link,
.statround a:visited {
color: #ffffff;
}
.statround a:hover,
.statround a:active {
color: #444444;
}
Stylizujesz to sobie w global.css, poczytaj o CSS bo nikt nie będzie Cię prowadził za rączkę
Ok wyszło mi ale teraz taki bug się zrobił ,że aktywni użytkownicy są od połowy forum tak to wygląda :C
Da się to przesunąć ?
Właśnie dlatego chciałem żebyś zrobił kopie szablonów. Masz może tą kopię? Chodzi mi o szablon index_boardstats
Tak mam kopie.
A wiesz jak ten bug naprawić ?
To jest ta co miałem przed edycją;
Kod:
<table colspan="2" border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead" colspan="2">
<div id="theadglow">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.gif" id="boardstats_img" class="expander" alt="[-]" title="[-]" /></div>
<div><strong>{$lang->boardstats}</strong></div>
</div>
</td>
</tr>
</thead>
<tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">
{$whosonline}
{$birthdays}
{$forumstats}
<tr>
<td class="tfoot" colspan="2" style="text-align: right">
<span class="smalltext">
{$logoutlink}
<a href="misc.php?action=markread{$post_code_string}">{$lang->markread}</a> |
<a href="showteam.php">{$lang->forumteam}</a> |
<a href="stats.php">{$lang->forumstats}</a>
</span>
</td>
</tr>
</tbody>
</table>
<br />
Zrobiłem to samo i mam ten sam bug wkleiłem co napisałeś, dobrze to zrobiłem.
index_boardstats
Kod:
{$forumstats}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.gif" id="boardstats_img" class="expander" alt="[-]" title="[-]" /></div>
<div><strong>{$lang->boardstats}</strong></div>
</td>
</tr>
</thead>
<tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">
{$whosonline}
{$birthdays}
<tr>
<td class="rfoot" colspan="2" style="text-align: right">
<span class="smalltext">
{$logoutlink}
<a href="misc.php?action=markread{$post_code_string}">{$lang->markread}</a> |
<a href="showteam.php">{$lang->forumteam}</a> |
<a href="stats.php">{$lang->forumstats}</a>
</span>
</td>
</tr>
</tbody>
</table>
<br />