Dołącz do zespołu ekspertów! Backend lub Frontend Developer?

Sprawdź najnowsze oferty pracy naszego partnera - 8lines.io!

Plugin Top Stats - jak dodać zmienne

Konfiguracja  Założony przez  hajtowy4321.

wersja skryptu MyBB: 1.8.6
adres forum: http://testhajt.ugu.pl/
na czym polega problem (screen, opis, komunikaty, nazwa i wersja wtyczki):

Witam,

Na wstępie napiszę, że jest to moje pierwsze spotkanie z mybb.

Wgrałem plugin
http://community.mybb.com/mods.php?action=view&pid=269
Nie mam bladego pojęcia jak dodać zmiennie
{$topStats['LastThreads']}
{$topStats['LastActiveThreads']}
{$topStats['MostViews']}
{$topStats['Posters']}
{$topStats['Reputation']}
{$topStats['Referrals']}
{$topStats['TimeOnline']}
{$topStats['NewestUsers']}
{$topStats['Moderators']}

Bardzo proszę o wytłumaczenie co i jak.

w pliku index mam

<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 id="forums">
{
$header}
 
               <div class="thead" id="th303">
 
                       <span class="expcolimage expcol_close"><img src="images/Splat_dark/collapse.png"></span>
<
span style="display:none;" class="expcolimage expcol_open"><img src="images/Splat_dark/collapse_collapsed.png"></span>
<
div><strong>Serwery</strong></div>
 
                       </div><div id="expcol_box303">
<
table border="0" cellpadding="0" cellspacing="0" width="100%" align="center"
 
               <tbody><tr
 
                       
                
</tr
 
               <tr
 
               <td class="row1"><span class="gen"
 
 
               <table class="table_forum" border="0" cellpadding="0" cellspacing="0" width="100%" align="center"
 
               <tbody><tr
 
               <td class="trow2" style="padding: 5px;" align="center"><b>Gra</b></td
 
               <td class="trow2" style="padding: 5px;" align="center"><b>Nazwa</b></td
 
               <td class="trow2" style="padding: 5px;" align="center"><b>Monitoring</b></td>
 
               <td class="trow2" style="padding: 5px;" align="center"><b>Sloty</b></td>
 
               <td class="trow2" style="padding: 5px;" align="center"><b>Adres IP</b></td
 
               <td class="trow2" style="padding: 5px;" align="center"><b>Połącz</b></td
 
               </tr
<
tr>
 
                       <td class="trow2" align="center"><img src="images/Splat_dark/cstrike.gif" title="Counter-Strike 1.6" alt="cs"></td>
 
                       <td class="trow2" align="center"><span class="ipsBadge ipsBadge_green">CS-GLOCK [ONLY DD2/INF/NUKE][VIP]</span></td>
 
                       <td class="trow2" align="center"><a href="http://www.gametracker.com/server_info/188.68.238.41:27015/" rel="nofollow" target="_blank"><img src="http://cache.www.gametracker.com/server_info/188.68.238.41:27015/b_350_20_191919_191919_BCBCBC_191919.png" alt="" border="0" height="20" width="350"></a></td
 
                       <td class="trow2" align="center">32</td
 
                       <td class="trow2" align="center">188.68.238.41:27015</td
 
                       <td class="trow2" align="center"><span class="ipsButton_secondary"><a href="steam://connect/188.68.238.41:27015"><img src="images/Splat_dark/cstrike.gif" alt="cs" style="margin: 0px 3px -4px -3px;">Połącz</a></span></td
 
               </tr>
<
tr>
 
                       <td class="trow2" align="center"><img src="images/Splat_dark/cstrike.gif" title="Counter-Strike 1.6" alt="cs"></td>
 
                       <td class="trow2" align="center"><span class="ipsBadge ipsBadge_green">Cs-Glock [CODMOD][601 LVL][VIP]</span></td>
 
                       <td class="trow2" align="center"><a href="http://www.gametracker.com/server_info/188.68.238.41:24888/" rel="nofollow" target="_blank"><img src="http://cache.www.gametracker.com/server_info/188.68.238.41:24888/b_350_20_191919_191919_BCBCBC_191919.png" alt="" border="0" height="20" width="350"></a></td
 
                       <td class="trow2" align="center">32</td
 
                       <td class="trow2" align="center">188.68.238.41:24888</td
 
                       <td class="trow2" align="center"><span class="ipsButton_secondary"><a href="steam://connect/188.68.238.41:24888"><img src="images/Splat_dark/cstrike.gif" alt="cs" style="margin: 0px 3px -4px -3px;">Połącz</a></span></td
 
               </tr>
 
 
               </tbody></table
 
 
               </span></td
 
               </tr
 
               </tbody></table> </div>
 
       
        
<br>
 
       
        
<class="buttons" style="float: right;"><class="fa fa-angle-right"></i></a>
 
       <class="clickedbuttons" style="float: right;"><class="fa fa-angle-left"></i></a>
 
<
div class="sidebar" style="float: right;width: 19%;">
 
       
        
<div class="thead" id="th34">
 
               <span class="expcolimage expcol_close"><class="mod_links">×</a></span>
 
               <span style="display:none;" class="expcolimage expcol_open"><class="mod_links">...</a></span>
 
       <div><span class="fbits"><strong>Go Social</strong></span></div>
</
div>
<
div id="expcol_box34">
<
table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder">
<
tbody style="{$collapsed['boardstats_e']}id="boardstats_e">
 
       <tr>
<
td class="trow1"><span class="smalltext">tutaj link iframe do likeboxa</span></td>
</
tr>
 
<
tr>
 
       <td class="tfoot" style="text-align: right">
 
               <span class="smalltext">
 
                       GPP
                
</span>
 
       </td>
</
tr>
</
tbody>
</
table>
</
div>
 
       
</div>
<
div class="forums" style="float: left;width: 80%;">
{
$hello}
{
$forums}
</
div>
 
       <br class="clear">
{
$boardstats}
 
<
br class="clear" />
{
$footer}
</
body>
</
html
No i je musisz wkleić w miejscu gdzie chcesz, aby sie wyświetlało.
Prośby na PW dotyczące wsparcia z problemami będą ignorowane. Pomoc poza forum - odpłatna; kontakt: snakemybboard@gmail.com.
(08.10.2015, 12:10)Snake_ napisał(a): No i je musisz wkleić w miejscu gdzie chcesz, aby sie wyświetlało.


No najlepiej pod tą tabelką "Go Social:, która jest w tym panelu boczny. Czyli po prawej stronie.

jak mam to wkleić ? Czyli gdzie dokładnie dodać ?
<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 id="forums">
{$header}
                <div class="thead" id="th303">
                        <span class="expcolimage expcol_close"><img src="images/Splat_dark/collapse.png"></span>
<span style="display:none;" class="expcolimage expcol_open"><img src="images/Splat_dark/collapse_collapsed.png"></span>
<div><strong>Serwery</strong></div>
                        </div><div id="expcol_box303">
<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center">
                <tbody><tr>
                        
                </tr>
                <tr>
                <td class="row1"><span class="gen">

                <table class="table_forum" border="0" cellpadding="0" cellspacing="0" width="100%" align="center">
                <tbody><tr>
                <td class="trow2" style="padding: 5px;" align="center"><b>Gra</b></td>
                <td class="trow2" style="padding: 5px;" align="center"><b>Nazwa</b></td>
                <td class="trow2" style="padding: 5px;" align="center"><b>Monitoring</b></td>
                <td class="trow2" style="padding: 5px;" align="center"><b>Sloty</b></td>
                <td class="trow2" style="padding: 5px;" align="center"><b>Adres IP</b></td>
                <td class="trow2" style="padding: 5px;" align="center"><b>Połącz</b></td>
                </tr>
<tr>
                        <td class="trow2" align="center"><img src="images/Splat_dark/cstrike.gif" title="Counter-Strike 1.6" alt="cs"></td>
                        <td class="trow2" align="center"><span class="ipsBadge ipsBadge_green">CS-GLOCK [ONLY DD2/INF/NUKE][VIP]</span></td>
                        <td class="trow2" align="center"><a href="http://www.gametracker.com/server_info/188.68.238.41:27015/" rel="nofollow" target="_blank"><img src="http://cache.www.gametracker.com/server_info/188.68.238.41:27015/b_350_20_191919_191919_BCBCBC_191919.png" alt="" border="0" height="20" width="350"></a></td>
                        <td class="trow2" align="center">32</td>
                        <td class="trow2" align="center">188.68.238.41:27015</td>
                        <td class="trow2" align="center"><span class="ipsButton_secondary"><a href="steam://connect/188.68.238.41:27015"><img src="images/Splat_dark/cstrike.gif" alt="cs" style="margin: 0px 3px -4px -3px;">Połącz</a></span></td>
                </tr>
<tr>
                        <td class="trow2" align="center"><img src="images/Splat_dark/cstrike.gif" title="Counter-Strike 1.6" alt="cs"></td>
                        <td class="trow2" align="center"><span class="ipsBadge ipsBadge_green">Cs-Glock [CODMOD][601 LVL][VIP]</span></td>
                        <td class="trow2" align="center"><a href="http://www.gametracker.com/server_info/188.68.238.41:24888/" rel="nofollow" target="_blank"><img src="http://cache.www.gametracker.com/server_info/188.68.238.41:24888/b_350_20_191919_191919_BCBCBC_191919.png" alt="" border="0" height="20" width="350"></a></td>
                        <td class="trow2" align="center">32</td>
                        <td class="trow2" align="center">188.68.238.41:24888</td>
                        <td class="trow2" align="center"><span class="ipsButton_secondary"><a href="steam://connect/188.68.238.41:24888"><img src="images/Splat_dark/cstrike.gif" alt="cs" style="margin: 0px 3px -4px -3px;">Połącz</a></span></td>
                </tr>

                </tbody></table>

                </span></td>
                </tr>
                </tbody></table> </div>
        
        <br>
        
        <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="sidebar" style="float: right;width: 19%;">
        
        <div class="thead" id="th34">
                <span class="expcolimage expcol_close"><a class="mod_links">×</a></span>
                <span style="display:none;" class="expcolimage expcol_open"><a class="mod_links">...</a></span>
        <div><span class="fbits"><strong>Go Social</strong></span></div>
</div>
<div id="expcol_box34">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">
        <tr>
<td class="trow1"><span class="smalltext">tutaj link iframe do likeboxa</span></td>
</tr>

<tr>
        <td class="tfoot" style="text-align: right">
                <span class="smalltext">
                        GPP
                </span>
        </td>
</tr>
</tbody>
</table>
</div>
{$topStats['LastThreads']}
{$topStats['LastActiveThreads']}
{$topStats['MostViews']}
{$topStats['Posters']}
{$topStats['Reputation']}
{$topStats['Referrals']}
{$topStats['TimeOnline']}
{$topStats['NewestUsers']}
{$topStats['Moderators']}
</div>
<div class="forums" style="float: left;width: 80%;">
{$hello}
{$forums}
</div>
        <br class="clear">
{$boardstats}

<br class="clear" />
{$footer}
</body>
</html>
Świetnie !

Bardzo dziękuję za pomoc !

Jakbyś mógł jeszcze napisać, co takiego dodałeś ?

Czy jest to tylko :

</div>
{$topStats['LastThreads']}
{$topStats['LastActiveThreads']}
{$topStats['MostViews']}
{$topStats['Posters']}
{$topStats['Reputation']}
{$topStats['Referrals']}
{$topStats['TimeOnline']}
{$topStats['NewestUsers']}
{$topStats['Moderators']}
</div>
Porównaj kod, dodał tylko

{$topStats['LastThreads']}
{$topStats['LastActiveThreads']}
{$topStats['MostViews']}
{$topStats['Posters']}
{$topStats['Reputation']}
{$topStats['Referrals']}
{$topStats['TimeOnline']}
{$topStats['NewestUsers']}
{$topStats['Moderators']}



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

1 gości