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

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

Ustawienie grafik online/offline w widoku postów

Założony przez  HaySenPL.

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)

<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

<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

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

Pomocy

Pomożecie ?
Matslom napisał 20.08.2013, 10:42:
Poprawiłem tytuł [Obrazek: modnotice_howto.png]
do css
.status {background-repeat: no-repeat;background-position: left top}
.useroffline {background-image: url("obrazek offline")}
.useronline {background-image: url("obrazek online")}

zamień
<td class="showthread_postauthorinfo">
na
<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:

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

do postbit_online
useronline

do postbit_offline
useroffline
Nierozumiem jak mam to zrobić.

Pokaż sam oto postbit
<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
<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
useronline

postbit_offline
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.



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

1 gości