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

Witam.

Dodałem sobie TOP5 Reputacji ale po aktywowaniu pluginu górna belka nawigacji zjeżdża mi w dół czy da radę to naprawić z góry dziękuje.

Screen

[Obrazek: di-GTHd.png]

Screen po wino wyglądać tak.

[Obrazek: di-U2Na.png]


KOD TOP5 REPUTACJI

<?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", "top5rep_start");

function top5rep_info() // Informacje
{
    return array(
        "name"            => "Top 5 reputation",
        "description"    => "Top 5 reputacji na stronie glownej forum",
        "website"        => "http://www.Graj24.eu",
        "author"        => "Leihto",
        "authorsite"    => "http://www.Graj24.eu",
        "version"        => "1.0",
        'guid'        => '*',
        'compatibility'    => '14*, 16*'
    );
}

function top5rep_activate() // Aktywacja
{    
        require MYBB_ROOT."/inc/adminfunctions_templates.php";
find_replace_templatesets("index", '#'.preg_quote('{$changfcb}').'#', '{$changfcb}{$sidebar_by_leihto}');
}

function top5rep_deactivate() // Dezaktywacja
{
        include MYBB_ROOT."/inc/adminfunctions_templates.php";
    find_replace_templatesets('index', '#' . preg_quote('{$sidebar_by_leihto}') . '#', '', 0);
}

function top5rep_reputacja()
{
    global $db;

    $query = $db->query("SELECT * FROM ".TABLE_PREFIX."users ORDER BY `reputation` DESC LIMIT 0,5");

    while ($most_reputations = $db->fetch_array($query)) {
        $uid = $most_reputations['uid'];
        $profilelink = get_profile_link($uid);
        $repscount = intval($most_reputations['reputation']);
        $username = format_name($most_reputations['username'], $most_reputations['usergroup'], $most_reputations['displaygroup']);
        $column_reputation .= '<td class="trow1"><span style="float : left;"><a href="'.$profilelink.'">'.$username.'</a></span><div class="user_reputation">'.$repscount.'</td></tr>';
    }
    $table_reputation = '<!-- Top 5 reputation by Leihto - Graj24.eu -->
        <style type="text/css">
            .user_reputation {
                float:  right;
                background: #67d744;
                padding-top : 2px;
                padding-bottom : 2px;
                padding-left : 10px;
                padding-right : 10px;
                border-radius : 5px;
                color : #FFF;
            }
        </style>
        <table border="0" cellspacing="1" cellpadding="4" class="tborder"><tr><td <td class="tboczny"><strong><strong>TOP5 reputacji</strong></td></tr>
        '.$column_reputation.'
         </table><br />';
    return $table_reputation;
}

function top5rep_start()
{
    global $sidebar_by_leihto;
    $reputacja = top5rep_reputacja();
     $sidebar_by_leihto = '<a class="" style="float:right ;"></a>
    <a class="clickedbuttons" style="float: right;"></a>
    <div class="sidebar" style="float: right;width: 100%;">
        
        
        '.$reputacja.'
        
            <tr>                                                                                  
                    
            <br />
                </td>
            </tr>
        </table>
       <br />      
    </div>';
    return $sidebar_by_leihto;
}
?>

Z tego tematu wziąłem kod na top5 reputacji https://webboard.pl/thread-27106.html?hi...Breputacji