Top posters liczba postów w tle na zielono

Błąd   Założony przez  revolveR.

wersja skryptu MyBB: Najnowsza
adres forum: webHost.xaa.pl
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu):

Witam wszystkich, jeśli wejdziecie na moje forum webHost.xaa.pl w panelach bocznych zobaczycie Top 10 Reputacji i Top posters, w top 10 reputacji liczba reputacji użytkownika jest w takim zielonym tle i chciałbym żeby te zielone tło było też w Top posters jak to zrobić ?
To sobie zmień kolor w CSS
.user_reputation {
                float:  right;
                background: #67d744;
                padding-top : 2px;
                padding-bottom : 2px;
                padding-left : 10px;
                padding-right : 10px;
                border-radius : 5px;
                color : #FFF;
            }
Jeśli Ci pomogłem naciśnij guzik POMÓGŁ lub dodaj PUNKT REPUTACJI
źle zrozumiałeś w rputacji mam na zielono ale chce w top posters
No to dodaj tam sobie class .user_reputation
Jeśli Ci pomogłem naciśnij guzik POMÓGŁ lub dodaj PUNKT REPUTACJI
gdzie ;pp chce w panelu bocznym top posters te zielone tło jak mam w reputacji jak to zrobic ?

W jakiej clasie user reputation robiłem to kodem do pluginu i wkładałem do index zero css w global nic nei pisałem
To jest tablica. Tam masz <span style="float:right"> i w tym.
<span style="float:right" class="user_reputation"></span>
Jeśli Ci pomogłem naciśnij guzik POMÓGŁ lub dodaj PUNKT REPUTACJI
sorki nie rozumiem jaka tablica xdd ?
Pokaż ten index
Jeśli Ci pomogłem naciśnij guzik POMÓGŁ lub dodaj PUNKT REPUTACJI
Proszę bardzo !
<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="home">
{$header}
<a class="buttons" style="float: right;"></a>
<a class="clickedbuttons" style="float: right;"></a>
<div class="sidebar" style="float: right;width: 19%;">
<tr>
<td class="trow1">
{$recenttopics}
{$top_posters}
{$sidebar_by_leihto}
</td>
</tr>
</div>
<div class="forums" style="float: left;width: 80%;">
<table width="100%"  border="0">
  <tr>

    <td width="75%" valign="top">{$forums}</td>
      </tr>
</table>
</div>
<br class="clear" />
{$boardstats}
{$footer}
</body>
</html>
Musisz ingerować w kod pluginu top posters i znaleźć fragment który odpowiada za wygląd i dopisać
class="user_reputation"
przed zmienną która odpowiada za wyświetlanie liczby.
Spróbuje choć małe szanse że dam rade.
Aha, no to nie wiem. W {$recenttopics} musisz pogrzebać.
[Obrazek: xaqf.jpg]
Jeśli Ci pomogłem naciśnij guzik POMÓGŁ lub dodaj PUNKT REPUTACJI
to gdzie to jest patrzyłem w szablony globalne bo nie wiem gdzie to może być ale tam nie ma
W pluginie na serwerze FTP.
Jeśli Ci pomogłem naciśnij guzik POMÓGŁ lub dodaj PUNKT REPUTACJI
ej czemu u ciebie na obrazku jest z zielonym tłem ?

Pozwólcie ze ułatwie:
To mój plugin sidebarposters.php
<?php

//Top Posters Sidebar Mod by Borbole

//Trying to access directly the file, are we :D

if(!defined("IN_MYBB"))
{
    die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
}

//Hooking into index_start with our function


$plugins->add_hook("index_start", "top_posters_sidebar");

//Show some info about our mod
function sidebarposters_info()
{
    return array(
        "name"            => "Top Posters Sidebar",
        "description"    => "It shows a list of the top posters in the sidebar.",
        "website"        => "http://www.forumservices.eu/mybb",
        "version"        => "1.0",
        "author"        => "borbole",
        "authorsite"    => "http://www.forumservices.eu/mybb",
        "compatibility"  => "16*",
        'guid'        => '4cd2c09b4d56e4cc2a9953d655b8608b'
    );
}

//Activate it
function sidebarposters_activate()
{
    global $db;

    //Insert the mod settings in the portal settinggroup
    $query = $db->simple_select("settinggroups", "gid", "name='forumhome'");
    $gid = $db->fetch_field($query, "gid");

    $setting = array(
        'name' => 'posters_nr',
        'title' => 'Top Postów Sidebar',
        'description' => 'Enter here the number of top posters that you would like to show in the sidebar. By default it will show 5 posters.',
        'optionscode' => 'text',
        'value' => '5',
        'disporder' => '99',
        'gid' => intval($gid)
    );
    $db->insert_query('settings',$setting);
    
    
    rebuild_settings();
    
    require MYBB_ROOT.'/inc/adminfunctions_templates.php';
    
    find_replace_templatesets("index", '#'.preg_quote('{$forums}').'#', '<table width="100%"  border="0">
  <tr>
    <td width="75%" valign="top">{$forums}</td>
    <td width="25%" valign="top">{$top_posters}</td>
  </tr>
</table>');
}

//Don't want to use it anymore? Let 's deactivate it then and drop the settings and the custom template as well
function sidebarposters_deactivate()
{
    global $db;
    
    $db->query("DELETE FROM ".TABLE_PREFIX."settings WHERE name='posters_nr'");
    
    rebuild_settings();
    
    
    require MYBB_ROOT.'/inc/adminfunctions_templates.php';
    
    find_replace_templatesets("index", '#'.preg_quote('<table width="100%"  border="0">
  <tr>
    <td width="75%" valign="top">{$forums}</td>
    <td width="25%" valign="top">{$top_posters}</td>
  </tr>
</table>').'#', '{$forums}',0);


}

function top_posters_sidebar()
{
    global $db, $mybb, $forums, $theme, $top_posters;
    
        $top_posters .= '
        <table width="50%" cellpadding="5" cellspacing="1" border="0" class="tborder">
        <tr>
             <td class="thead"><strong>Top Posterow</strong></td>
        </tr>';
        
         //Limit how many users to show
        $limit = intval($mybb->settings['posters_nr']);
        
        //Query to get top posters
            $query = $db->query("
            SELECT username, postnum, uid, usergroup, displaygroup
            FROM ".TABLE_PREFIX."users
            ORDER BY postnum DESC
            LIMIT 0,{$limit}
        ;");
        
        while($row = $db->fetch_array($query))
        {
           $top_posters .= '
           <tr>';
            $users = htmlspecialchars_uni($row['username']);
            
            //Trim the usernames if they are over 9 characters
           if (strlen($users) > 9)
           {
              $users = substr($users, 0, 9) . "...";
           }
            //Get the usernames and make them pretty too with the group styling
            $user['username'] = format_name($row['username'], $row['usergroup'], $row['displaygroup']);
            $user['profilelink'] = build_profile_link($user['username'], $row['uid']);
            
            $users =  $user['profilelink'];
            
           //Get the post count
           $posts = "<a href=\"search.php?action=finduser&amp;uid={$row['uid']}\">{$row['postnum']}</a>";
          
          $top_posters .= '
          <td class="trow1">' . $users . '
              <span style="float:right;">' . $posts . '


</span>
          </td>
          
         </tr>';
            
        }
        
        $top_posters .= "</table><br />";
        
}

?>
To jest te zielone tło z reputacji panelu bocznego:
.user_reputation {
                float:  right;
                background: #67d744;
                padding-top : 2px;
                padding-bottom : 2px;
                padding-left : 10px;
                padding-right : 10px;
                border-radius : 5px;
                color : #FFF;



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

1 gości