Widok postu dla administratora cz.II

Założony przez  Hugo.

wersja skryptu MyBB:1.6.12
adres forum: nie potrzebny
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu):
Witam. Chciałbym zrobić coś podobnego do: https://webboard.pl/thread-60770.html
Ale żeby kolory były w poście (nie pasek obok postu), (tam gdzie się pisze!! XD).
No i jest tam odnośnik do poradnika: https://webboard.pl/thread-59381.html
Skoro uważasz, że adres forum jest niepotrzebny, to działaj sam.
Prośby na PW dotyczące wsparcia z problemami będą ignorowane. Pomoc poza forum - odpłatna; kontakt: snakemybboard@gmail.com.
W tamtym też nie miałem adresu i problemu nie było.
Chodzi mi o tutaj o kolor posta tylko.
Co do tego linku co dałeś. Jeśli mam już użyte:
.post_[ID_GRUPY] {
background: #FFE3E3;
}
w kolorach tego "pasku" po prawej stronie (https://webboard.pl/thread-60770.html), to czy mogę jeszcze zrobić inny kolor posta?
Tak tylko dla innej grupy, czyli powtarzasz krok
.post_[ID_GRUPY] {
background: #FFE3E3;
}
to zrób klasę .posty_[ID_GRUPY] jeżeli post_ masz już zajęte
Hugo napisał(a):W tamtym też nie miałem adresu i problemu nie było.

To się naucz, że adres podany być musi. Jeśli uważasz, że jest zbędny, to radzę rozwiązywać swoje problemy w samotności przy użyciu Google, bo to czy się przyda, czy nie, to my to ocenimy.
Matslom napisał(a):to zrób klasę .posty_[ID_GRUPY] jeżeli post_ masz już zajęte
Reszte mam robić tak jak na tym poradniku? https://webboard.pl/thread-59381.html
Tutaj też post_{$post['usergroup']} posty_ zamiast post_
Tylko, że ja tego nie mam tam:
<div class="post classic {$unapproved_shade}" style="{$post_visibility}" id="post_{$post['pid']}">
Pewnie temu, że to 1.6.. ;x

Mam coś takiego:
posbit:
{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<table border="0" cellspacing="0" cellpadding="4" class="tborder horizontalpb" style="border-radius:0px;" id="post_{$post['pid']}">
    <tbody>
        <tr>
            <td class="tcat">
                <div class="float_left smalltext">
                    <img src="images/candy/icons/clock.png" class="posttimeclock" alt="clock" /><span class="tleft posttime">{$post['postdate']}, {$post['posttime']}</span>
                </div>
                {$post['posturl']}
                </td>
        </tr>

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

        <tr>
            
            <td class="trow2 post_content {$unapproved_shade}">
<span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span>
                
                <div class="post_body" id="pid_{$post['pid']}">
                    {$post['message']}
                </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_find']}{$post['button_rep']}
                </div>
                <div class="post_management_buttons float_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']}
                </div>
            </td>
        </tr>
    </tbody>
</table>

posbit_classic:
{$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="{$altbg} post_{$post['usergroup']}" width="15%" valign="top" style="white-space: nowrap; text-align: center;"> <a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
        <strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
        <span class="smalltext">
            {$post['usertitle']}<br />
            {$post['userstars']}
            {$post['useravatar']}<br />
                        {$post['groupimage']}
            {$post['user_details']}
        </span>
    </td>
    <td class="{$altbg}" 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['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>
</table>
Bo masz to dodać według tego poradnika... (tego poradnika co podałeś wyżej w poście)
A może mi to ktoś dodać do tego? Bo mam już kolor paska, a chce jeszcze kolor tego posta, ale nie umiem dać 2 na raz.. ;x
Hugo napisał(a):A może mi to ktoś dodać do tego? Bo mam już kolor paska, a chce jeszcze kolor tego posta, ale nie umiem dać 2 na raz.. ;x
Nie rozumiem, z czym masz problem?
Prośby na PW dotyczące wsparcia z problemami będą ignorowane. Pomoc poza forum - odpłatna; kontakt: snakemybboard@gmail.com.
Nie wiem jak to wytłumaczyć, ale mam już ustawiony tam "kolor paska" (tam gdzie jest avatar, nick, po lewej stronie posta ten pasek.. to https://webboard.pl/thread-60770.html), a chcę jeszcze zrobić kolor posta. Rozumiesz? ;d



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

1 gości