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

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

Tabelka opis posta, edycja

Założony przez  SHADY.

wersja skryptu MyBB: 1.6.8
adres forum: http://www.MuGame.pl
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu):

Witam, proszę o pomoc. Mianowicie chcę aby tabelka opisu posta wyglądała tak jak na stronie: cs-prosiaczek.pl
mianowicie:
[Obrazek: 61086815601830954866.png]

do global.css dodałem:
.prostokatywpostach {
    background: #f0f0f0;
    color: #000;
    padding: 6px;
    margin: auto auto;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border: 1px solid #d2d2d2;
    text-align: left;
    font-size: 11px;
    margin-bottom: 3px;
    width: 175px;
}
.status1 {
    background: #e8f4e8;
    padding: 6px;
    -moz-border-radius-topleft: 9px;
    -moz-border-radius-topright: 9px;
    -webkit-border-top-left-radius: 9px;
    -webkit-border-top-right-radius: 9px;
    border-top-left-radius: 9px;
    border-top-right-radius: 9px;
    -moz-border-radius-bottomleft: 9px;
    -moz-border-radius-bottomright: 9px;
    -webkit-border-bottom-left-radius: 9px;
    -webkit-border-bottom-right-radius: 9px;
    border-bottom-left-radius: 9px;
    border-bottom-right-radius: 9px;
    border: 1px solid #bbf0be;
}

.status2 {
    background: #f8e9e7;
    padding: 6px;
    -moz-border-radius-topleft: 9px;
    -moz-border-radius-topright: 9px;
    -webkit-border-top-left-radius: 9px;
    -webkit-border-top-right-radius: 9px;
    border-top-left-radius: 9px;
    border-top-right-radius: 9px;
    -moz-border-radius-bottomleft: 9px;
    -moz-border-radius-bottomright: 9px;
    -webkit-border-bottom-left-radius: 9px;
    -webkit-border-bottom-right-radius: 9px;
    border-bottom-left-radius: 9px;
    border-bottom-right-radius: 9px;
    border: 1px solid #f8d4cd;
}

oraz mój postbit_classic wygląda tak:

{$ignore_bit}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
    <tr>
        <td class="trow3" width="15%" valign="top" style="white-space: nowrap; text-align: center;">
<div class="profilpost">

<div id="prostokatywpostach">
<div id="prostokatywpostach">
<strong><span class="largetext"><big>{$post['profilelink']}</big
></span></strong>{$post['onlinestatus']}<br />
</div></div>


<br>


<div id="prostokatywpostach">
<div id="prostokatywpostach">
            {$post['usertitle']}<br />
            {$post['userstars']}

</div></div>
    



    
<div id="prostokatywpostach">
<div id="prostokatywpostach">
<br>
            {$post['groupimage']}
            {$post['useravatar']}<br />
</div></div>


<div id="prostokatywpostach">
<div id="prostokatywpostach">
            {$post['user_details']}
</div></div>




<br>


</div>
    </td>
    <td class="trow3" valign="top">
        <table width="100%">
            <tr><td>{$post['posturl']}<span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span>
            <br />
            <div id="pid_{$post['pid']}" class="post_body">{$post['steamprofile']}
                {$post['message']}
            </div>
            {$post['attachments']}
            {$post['signature']}
            <div style="text-align: right; vertical-align: bottom;" id="post_meta_{$post['pid']}">
                <div id="edited_by_{$post['pid']}">{$post['editedmsg']}</div>
                {$post['iplogged']}
            </div>
        </td></tr>
    </table>
</td>
</tr>
<tr>
    <td class="{$altbg}" style="white-space: nowrap; text-align: center; vertical-align: middle;"><span class="smalltext">{$post['postdate']} {$post['posttime']}</span></td>
    <td class="{$altbg}" style="vertical-align: middle;">
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr valign="bottom">
                <td align="left" ><span class="smalltext">{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}</span></td>
                <td align="right">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}</td>
            </tr>
        </table>
    </td>
</tr>{$post['postrep_inline']}
</table>{$post['postrep_outline']}{$post['adsaf']}

I jednak nie działa. Jakieś wskazówki?
Pewnie dlatego, że to klasa, nie element. Powinieneś wywołać:
<div class="prostokatywpostach">

zamiast:
<div id="prostokatywpostach">
po zmienieniu na:
{$ignore_bit}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
    <tr>
        <td class="trow3" width="15%" valign="top" style="white-space: nowrap; text-align: center;">
<div class="profilpost">

<div class="prostokatywpostach">
<div class="prostokatywpostach">
<strong><span class="largetext"><big>{$post['profilelink']}</big
></span></strong>{$post['onlinestatus']}<br />
</div></div>


<br>


<div class="prostokatywpostach">
<div class="prostokatywpostach">
            {$post['usertitle']}<br />
            {$post['userstars']}

</div></div>
    



    
<div class="prostokatywpostach">
<div class="prostokatywpostach">
<br>
            {$post['groupimage']}
            {$post['useravatar']}<br />
</div></div>


<div class="prostokatywpostach">
<div class="prostokatywpostach">
            {$post['user_details']}
</div></div>




<br>


</div>
    </td>
    <td class="trow3" valign="top">
        <table width="100%">
            <tr><td>{$post['posturl']}<span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span>
            <br />
            <div id="pid_{$post['pid']}" class="post_body">{$post['steamprofile']}
                {$post['message']}
            </div>
            {$post['attachments']}
            {$post['signature']}
            <div style="text-align: right; vertical-align: bottom;" id="post_meta_{$post['pid']}">
                <div id="edited_by_{$post['pid']}">{$post['editedmsg']}</div>
                {$post['iplogged']}
            </div>
        </td></tr>
    </table>
</td>
</tr>
<tr>
    <td class="{$altbg}" style="white-space: nowrap; text-align: center; vertical-align: middle;"><span class="smalltext">{$post['postdate']} {$post['posttime']}</span></td>
    <td class="{$altbg}" style="vertical-align: middle;">
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr valign="bottom">
                <td align="left" ><span class="smalltext">{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}</span></td>
                <td align="right">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}</td>
            </tr>
        </table>
    </td>
</tr>{$post['postrep_inline']}
</table>{$post['postrep_outline']}{$post['adsaf']}

opis wygląda tak samo, nic się nie zmieniło.



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

2 gości