Webboard

Pełna wersja: Widok posta
Aktualnie przeglądasz uproszczoną wersję forum. Kliknij tutaj, by zobaczyć wersję z pełnym formatowaniem.
wersja skryptu MyBB: 1.6
adres forum: overlife.pl
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu): Witam zrobiłem swój styl praktycznie od zera ale mam pewien błąd ponieważ jak ktoś napisze posta to jest dobrze a jak np 3 posty niżej już ten co napisał ma węższy post tzn:
Tak jest:
[attachment=3508]
A powinno być:
[attachment=3509]
Podrzuć tutaj szablon postbit
Kod:
{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="margin-bottom: 5px; {$post_visibility}" id="post_{$post['pid']}">
    <tbody>
        <tr>
            <td class="tcat rounded_top">
                <div class="float_left smalltext">
                    {$post['postdate']}, {$post['posttime']} <span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span>
                </div>
                {$post['posturl']}
            </td>
        </tr>

        <tr>
            <td class="trow1 {$unapproved_shade}">
                <table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
                    <tr>
                        <td class="post_avatar" width="1" style="{$post['avatar_padding']}">
                            {$post['useravatar']}
                        </td>
                        <td class="post_author">
                            <strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
                            <span class="smalltext">
                                {$post['usertitle']}<br />
                                {$post['userstars']}
                                {$post['groupimage']}
                            </span>
                        </td>
                        <td class="smalltext post_author_info" width="165">
                            {$post['user_details']}{$post['newpoints_postbit']}
                        </td>
                    </tr>
                </table>
            </td>
        </tr>

        <tr>
            <td class="trow2 {$unapproved_shade}">
                <span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span>

                <div class="post_body" id="pid_{$post['pid']}">
                    {$post['message']}<script type="text/javascript" src="http://adhref.pl/news,3eebaf3dbfc511bbfa11bb9ce4f4767dec0b2504.js" charset="utf-8"></script>
                </div>
                {$post['attachments']}
                {$post['signature']}

                <div class="post_meta" id="post_meta_{$post['pid']}">
                {$post['iplogged']}
                </div>
            </td>
        </tr>

        <tr>
            <td class="trow1 post_buttons {$unapproved_shade}">
                <div class="author_buttons float_left">
                    {$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_rep']}            </div>
                <div class="post_management_buttons float_right">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['thanks']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
                </div>
            </td>
{$post['thxdsp']}    </table>
        </tr>

Tak jak wiedziałem poproszą o coś i dałem i natym koniec :)
Na Twoim forum niezarejestrowani widzą układ klasyczny postów - tam błąd nie występuje.
Spróbuj 3 linijkę:
Kod:
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="margin-bottom: 5px; {$post_visibility}" id="post_{$post['pid']}">
Zamienić na:
Kod:
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="margin-bottom: 5px; {$post_visibility}" id="post_{$post['pid']}" width="100%">