Webboard

Pełna wersja: Ustawienie grafik online/offline w widoku postów
Aktualnie przeglądasz uproszczoną wersję forum. Kliknij tutaj, by zobaczyć wersję z pełnym formatowaniem.
wersja skryptu MyBB: 1.6.x
adres forum: http://forum.wlep.net/
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu): Jak ustawić napisz OnLine aby przylagł równo i aby Junior Member nie było pod nim tylko równo z nim.

[Obrazek: 23113757793459180141.png]

Oto postbit_classic (postib wygląda tak samo)

Kod:
<table border="0" class="showthread_postmain">
<tr>
<td class="tcatleft"><center> <span class="showthread_authorname">{$post['profilelink']}</span></center>
</td><td class="tcatright">
                <div class="left">{$post['postdate']}, {$post['posttime']}
                <span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span>
                </div>{$post['posturl']}</td></tr>
<tr><td class="showthread_postauthorinfo">
<div>
            <div>{$post['onlinestatus']}<center><b><span class="smalltext"> {$post['usertitle']}</span></b></center><br />
                <center><span class="showthread_useravatar">{$post['useravatar']}</span></center>
            </div>
            <div>
                <span class="smalltext">
                    <br />

                    <center>{$post['groupimage']}</center>
                </span>
            </div>
            <div><div style="padding-top: 5px;">
            {$post['user_details']}{$post['ougc_awards']}{$post['awards']}</div>
            </div>
            </div> </td>
<td valign="top" class="showthread_postcontent">

<div class="showthread_postcontentwrapper">
        <span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span><br />
        <div class="showthread_postbody_message" id="pid_{$post['pid']}">
                    {$post['message']}
                </div>
                {$post['attachments']}
                {$post['signature']}
            <div class="post_meta" id="post_meta_{$post['pid']}">
                {$post['iplogged']}
                </div>
        </div>

</td>
</tr>
<tr><td colspan="2" class="showthread_post_options"><span class="left">
                    {$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}
            </span>
            
            <span class="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']}
            </span></td></tr>
</table>

A to postbit_online

Kod:
<div class="online_button"><!-- start: postbit_online -->

<a href="online.php" title="Online"><img src="images/online.png" border="0" alt="Online"></a>

<!-- end: postbit_online --></div>

A to klasa online_button

Kod:
margin-left: -125px;
margin-top: -45px;

Pomocy

Pomożecie ?
do css
Kod:
.status {background-repeat: no-repeat;background-position: left top}
.useroffline {background-image: url("obrazek offline")}
.useronline {background-image: url("obrazek online")}

zamień
Kod:
<td class="showthread_postauthorinfo">
na
Kod:
<td class="showthread_postauthorinfo status useronline">
A jak zrobić to samo do Offline ? Trzeba zmieniać ręcznie ?

I gdzie do CCS ?
Skoro masz postbit_online to jest i postbit_offline (nad tamtym :) ) do global.css możesz.

Edit:

Kod:
<td class="showthread_postauthorinfo status {$post['onlinestatus']}">

do postbit_online
Kod:
useronline

do postbit_offline
Kod:
useroffline
Nierozumiem jak mam to zrobić.

Pokaż sam oto postbit
Kod:
<table border="0" class="showthread_postmain">
<tr>
<td class="tcatleft"><center> <span class="showthread_authorname">{$post['profilelink']}</span></center>
</td><td class="tcatright">
                <div class="left">{$post['postdate']}, {$post['posttime']}
                <span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span>
                </div>{$post['posturl']}</td></tr>
<tr><td class="showthread_postauthorinfo status {$post['onlinestatus']}">
<div>
            <div><center><b><span class="smalltext"> {$post['usertitle']}</span></b></center><br />
                <center><span class="showthread_useravatar">{$post['useravatar']}</span></center>
            </div>
            <div>
                <span class="smalltext">
                    <br />

                    <center>{$post['groupimage']}</center>
                </span>
            </div>
            <div><div style="padding-top: 5px;">
            {$post['user_details']}{$post['ougc_awards']}{$post['awards']}</div>
            </div>
            </div> </td>
<td valign="top" class="showthread_postcontent">

<div class="showthread_postcontentwrapper">
        <span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span><br />
        <div class="showthread_postbody_message" id="pid_{$post['pid']}">
                    {$post['message']}
                </div>
                {$post['attachments']}
                {$post['signature']}
            <div class="post_meta" id="post_meta_{$post['pid']}">
                {$post['iplogged']}
                </div>
        </div>

</td>
</tr>
<tr><td colspan="2" class="showthread_post_options"><span class="left">
                    {$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}
            </span>
            
            <span class="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']}
            </span></td></tr>
</table>

A to postbit_online
Kod:
<div class="useronline">

<a href="online.php" title="Online"><img src="images/online.png" border="0" alt="Online"></a>
</div>
w postbit masz dobrze, postbit_online
Kod:
useronline

postbit_offline
Kod:
useroffline

Rozumiesz?
tylko tyle ? O.o
tak tylko tyle
Nie to nie działa ja chyba wracam do kropek. Ewentualnie dam ci passy testowe i mi to zrobisz ?
To podeślij
A ma ktoś jeszcze inny sposób ?
usuń z global.css ten stary kod i Ci zadziała
jaki stary kod ?
Ten co miałeś w global.css na samym dole.