Zmienne stosowane w szablonach statystyk

Szukam  Założony przez  Rollerr.

wersja skryptu MyBB: 1.6.12
adres forum: www.omg-shot.pl
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu): Poszukuje zmiennych:
-wszystkie tematy
-wszystkie posty
-wszystkich użytkowników
-najnowszy użytkownik


Oraz jak je zastosować.
Snake_ napisał 23.03.2014, 20:38:
poprawiam tytuł. [Obrazek: modnotice_howto.png]
wtf?
Chyba raczej pluginow
gdzie ma być to wyświetlane?

Chodzi może o statystyki?

{$lang->stats_posts_threads}
{$lang->stats_numusers}
{$lang->stats_newestuser}
{$lang->stats_mostonline}
Tak, chciałbym to zastosować w tym kodzie

<div id="main_wrapper">
<div id="boxes">
<div id="info" class="window login_menu">
<div class="loginbox_content">
<div class="loginbox_head powiekszacz">
&nbsp; &nbsp; Informacje
<span><a href="#" class="close pmpopup" title="Zamknij okno.">X</a></span>
</div>
<form autocomplete="off" method="post" id="signin" action="member.php">
<input name="action" type="hidden" value="do_login">
<input name="url" type="hidden" value="{$mybb->settings['bburl']}">
<input name="quick_login" type="hidden" value="1">
<table cellspacing="0" cellpadding="0">
<td>
<tr>
<td colspan="2" class="tcat"><strong>Statystyki Forum</strong></td>
</tr>
<tr>
<td class="userprofile_trow"><strong>Wszystkich tematów</strong></td>
<td class="userprofile_trow"> <span class="statround">1</span></td>
</tr>
<tr>
<td class="userprofile_trow"><strong>Wszystkich postów</strong></td>
<td class="userprofile_trow"> <span class="statround">2</span> </td>
</tr>
<tr>
<td class="userprofile_trow"><strong>Wszystkich użytkowników </strong></td>
<td class="userprofile_trow"> <span class="statround">4</span> </td>
</tr>
<tr>
<td class="userprofile_trow"><strong>Najnowszy użytkownik</strong></td>
<td class="userprofile_trow"> <span class="statround">123123</span> </td>
</tr>
<tr>
<td colspan="2" class="tcat"><strong>Przydatne linki</strong></td>
</tr>

<tr>
<td class="userprofile_trow"><strong>
<a href="search.php?action=getnew">Wyświetl nową zawartość</a></strong>
<td class="userprofile_trow"></td>
</td>
</tr>
<tr>
<td class="userprofile_trow"><strong>
<a href="stats.php">Statystyki</a></strong>
</td>
</tr>
<tr>
<td class="userprofile_trow"><strong>
<a href="showteam.php">Ekipa Forum</a></strong>
</td>
</tr>    
<tr>
<td class="userprofile_trow"><strong>
<a href="online.php">Aktywni użytkownicy</a></strong>
</td>
</tr>
<tr>
<td class="userprofile_trow"><strong>
<a href="memberlist.php">Zarejestrowani użytkownicy</a></strong>
</td>
</tr>
<td colspan="2" class="tcat"><strong>Dodatkowe informacje</strong></td>
</tr>
<tr>
<td class="userprofile_trow"><strong></strong></td>
<td class="userprofile_trow"></td>
</tr>
</table>
</td>
</form></div></div></div>
<div id="mask"></div></div>
<a name="top" id="top"></a>
<div id="main_wrapper">
<div id="boxes">
<div id="info" class="window login_menu">
<div class="loginbox_content">
<div class="loginbox_head powiekszacz">
&nbsp; &nbsp; Informacje
<span><a href="#" class="close pmpopup" title="Zamknij okno.">X</a></span>
</div>
<form autocomplete="off" method="post" id="signin" action="member.php">
<input name="action" type="hidden" value="do_login">
<input name="url" type="hidden" value="{$mybb->settings['bburl']}">
<input name="quick_login" type="hidden" value="1">
<table cellspacing="0" cellpadding="0">
<td>
<tr>
<td colspan="2" class="tcat"><strong>Statystyki Forum</strong></td>
</tr>
<tr>
<td class="userprofile_trow"><strong>Wszystkich tematów</strong></td>
<td class="userprofile_trow"> <span class="statround">{$stats['numthreads']}</span></td>
</tr>
<tr>
<td class="userprofile_trow"><strong>Wszystkich postów</strong></td>
<td class="userprofile_trow"> <span class="statround">{$stats['numposts']}</span> </td>
</tr>
<tr>
<td class="userprofile_trow"><strong>Wszystkich użytkowników </strong></td>
<td class="userprofile_trow"> <span class="statround">{$stats['numusers']}</span> </td>
</tr>
<tr>
<td class="userprofile_trow"><strong>Najnowszy użytkownik</strong></td>
<td class="userprofile_trow"> <span class="statround">{$newestmember}</span> </td>
</tr>
<tr>
<td colspan="2" class="tcat"><strong>Przydatne linki</strong></td>
</tr>

<tr>
<td class="userprofile_trow"><strong>
<a href="search.php?action=getnew">Wyświetl nową zawartość</a></strong>
<td class="userprofile_trow"></td>
</td>
</tr>
<tr>
<td class="userprofile_trow"><strong>
<a href="stats.php">Statystyki</a></strong>
</td>
</tr>
<tr>
<td class="userprofile_trow"><strong>
<a href="showteam.php">Ekipa Forum</a></strong>
</td>
</tr>    
<tr>
<td class="userprofile_trow"><strong>
<a href="online.php">Aktywni użytkownicy</a></strong>
</td>
</tr>
<tr>
<td class="userprofile_trow"><strong>
<a href="memberlist.php">Zarejestrowani użytkownicy</a></strong>
</td>
</tr>
<td colspan="2" class="tcat"><strong>Dodatkowe informacje</strong></td>
</tr>
<tr>
<td class="userprofile_trow"><strong></strong></td>
<td class="userprofile_trow"></td>
</tr>
</table>
</td>
</form></div></div></div>
<div id="mask"></div></div>
<a name="top" id="top"></a

Spr
Nie wyświetla liczb.

   
Nie powiedziales ze robisz to w okienku a zmienne sa do szablonu od stopki
Wlasnie po to jest opis problemu

Wysłane z mojego LG-P700 przy użyciu Tapatalka
Mógłbyś podać prawidłowe działanie tego kodu?

Edit: Po kodzie widać, że jest to okienko.
Refresh
Zmienne nie są do stopki tylko do strony głównej. Więc nie będą działać poza index.php, a już na pewno nie w szablonach globalnych. Musisz przenieść kod odpowiadający za statystyki z index.php do global.php, prawdopodobnie także inaczej nazwać zmienne (inaczej może być konflikt).



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

1 gości