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

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

Jak zmienić wygląd posta?

Założony przez  Quantum_.

wersja skryptu MyBB: 1.6.12
adres forum: http://goldserver.sa-mp.pl/forum
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu): Otóż jak w temacie chce zmienić wygląd posta na normalny bo taki mnie bardzo irytuje -> http://prntscr.com/3d9eiz i chciałbym żeby każdy napisany post tak wyglądał ;/ -> http://prntscr.com/3d9er5
Jak to zrobić :)?
Wina stylu. W szablonie postbit (i postbit_classic) masz użycie kodu PHP. <if $postcounter> odpowiada za pierwszy post. Usuń to oraz dalszą część za </if> (*najpierw zrób kopię).
Prośby na PW dotyczące wsparcia z problemami będą ignorowane. Pomoc poza forum - odpłatna; kontakt: snakemybboard@gmail.com.
To będę musiał to całość skasować ;/
Postbit_classic
<if $postcounter == 1 then>
{$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="postbit4" width="15%" valign="top" style="white-space: nowrap; text-align: center;"><a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
            <span class="smalltext">{$post['profilelink']}</span>  {$post['onlinestatus']}<br />
        </td>
        <td class="postbit4">
            <span class="oclock"><i class="fa fa-clock-o"></i> {$post['postdate']} {$post['posttime']}<span class="float_right"> {$post['posturl']}</span></span>  
        </td>
    </tr>
    <tr>
        <td class="trow23" width="15%" valign="top" style="white-space: nowrap; text-align: center;"></a>
                <div class="postbit2">
        <span class="smalltext">
            {$post['usertitle']}<br />
            {$post['userstars']}
            {$post['groupimage']}
            {$post['useravatar']}<br />
                         </div>                      
            {$post['user_details']}
        </span>
    </td>
    <td class="trow123" valign="top">
        <table width="100%">
            <tr><td><span class="smalltext"></span>
            <br />
            <div id="pid_{$post['pid']}" class="post_body">
                        {$post['message']}
<div class="float_right">                    
                                 <div id="edited_by_{$post['pid']}">{$post['editedmsg']}</div></div>
            </div>
            {$post['attachments']}
            {$post['signature']}
                        </div>
        </td></tr>
    </table>
</td>
</tr>
        
<table class="trow80" width="96%" border="0" cellpadding="0" cellspacing="0">
            <tr valign="bottom">    
            <td align="left" class="trow4" style="white-space: nowrap;>{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}</td>                
                    <td align="right" class="trow4">{$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>
</table>
<else>
{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<table border="0" cellspacing="0" cellpadding="0" width="100%" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
    <tr>
        <td>
            <div class="caja1">
                <div class="caja2">
                    <div class="caja3" align="center">
                            {$post['useravatar']}<br />
                        <span class="smalltext">
                            {$post['groupimage']}
                            {$post['userstars']}
                            {$post['usertitle']}<br />
                                                        <br />
                        </span>
                    </div>
                </div>
            </div>
            <div class="caja4">
                <div class="caja5">
                                <ul> <a href="{$post['profilelink_plain']}" id="miembro_{$post['pid']}">{$post['username_formatted']} {$post['onlinestatus']}</a></ul> <ul>{$post['user_details']}</ul> <ul class="oclock2">{$post['postdate']} {$post['posttime']}</ul>{$post['posturl']}                                
                                <span style="float: right;" class="smalltext">{$post['subject_extra']}</span></div>
                <div class="caja6">
                    <img src="images/JormungandBlack/flecha.png" class="blog" />
                    <div style="width: 100%">
                        <div id="pid_{$post['pid']}" style="padding: 5px 0 5px 0;">
                            {$post['message']}
                                <div class="editat">
                <span style="float: right; margin-top: -11px;">{$post['inlinecheck']}</span>                    
                                 <div id="edited_by_{$post['pid']}">{$post['editedmsg']}</div></div>
                        </div>
                        {$post['attachments']}
                        {$post['signature']}
                    </div>
                </div>
                <div class="caja7">
                    <div class="float_right smalltext">{$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']}</div>
                    <div class="smalltext">{$post['button_rep']}</div>
                </div>
            </div>
        </td>
    </tr>{$post['postrep_inline']}
</table>{$post['postrep_outline']}
</if>
Fakt, miało być po <else>. Mój błąd.
{$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="postbit4" width="15%" valign="top" style="white-space: nowrap; text-align: center;"><a name="pid{$post['pid']}id="pid{$post['pid']}"></a>
            <
span class="smalltext">{$post['profilelink']}</span>  {$post['onlinestatus']}<br />
        </
td>
        <
td class="postbit4">
            <
span class="oclock"><class="fa fa-clock-o"></i> {$post['postdate']} {$post['posttime']}<span class="float_right"> {$post['posturl']}</span></span>   
        </
td>
    </
tr>
    <
tr>
        <
td class="trow23" width="15%" valign="top" style="white-space: nowrap; text-align: center;"></a>
                <
div class="postbit2">
        <
span class="smalltext">
            {
$post['usertitle']}<br />
            {
$post['userstars']}
            {
$post['groupimage']}
            {
$post['useravatar']}<br />
                         </
div>                      
            {
$post['user_details']}
        </
span>
    </
td>
    <
td class="trow123" valign="top">
        <
table width="100%">
            <
tr><td><span class="smalltext"></span>
            <
br />
            <
div id="pid_{$post['pid']}class="post_body">
                        {
$post['message']}
<
div class="float_right">                    
                                 <
div id="edited_by_{$post['pid']}">{$post['editedmsg']}</div></div>
            </
div>
            {
$post['attachments']}
            {
$post['signature']}
                        </
div>
        </
td></tr>
    </
table>
</
td>
</
tr>
        
<
table class="trow80" width="96%" border="0" cellpadding="0" cellspacing="0">
            <
tr valign="bottom">    
            <
td align="left" class="trow4" style="white-space: nowrap;>{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}</td>                
                    <td align="
right" class="trow4">{$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']} 
Prośby na PW dotyczące wsparcia z problemami będą ignorowane. Pomoc poza forum - odpłatna; kontakt: snakemybboard@gmail.com.



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

2 gości