Webboard

Pełna wersja: Online i offline po instalacji pluginu
Aktualnie przeglądasz uproszczoną wersję forum. Kliknij tutaj, by zobaczyć wersję z pełnym formatowaniem.
wersja skryptu MyBB: 1.8.7
adres forum: http://sfrp.pl/forum/index.php
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu):  No to tak, zrobiłem nową klasę: 
Kod:
.awatarr { max-width: 150px; position: relative; }
.online_status { position: absolute; left: 75px; }

}

.awatarr { max-width: 150px; position: relative; }
.offline_status { position: absolute; left: 75px; }
}

.pwawatar { max-width: 150px; position: relative; }
.online_status { position: absolute; left: 254px; }

}

.pwawatar { max-width: 150px; position: relative; }
.offline_status { position: absolute; left: 254px; }

i w szablonach ją zastosowałem, jednak cały czas pobiera z: 'pwawatar" zamiast z "awatarr". Czym to może być spowodowane? A ostatnio całkowicie znikły ONLINE i OFFLINE


Dodatkowo podaję szablony:

postbit:
Kod:
{$ignore_bit}
{$post['usertitle']}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<div class="post classic {$unapproved_shade}" style="{$post_visibility}" id="post_{$post['pid']}">
<div class="post_author scaleimages">
<div class="awatarr"><div align="center">{$post['onlinestatus']}
{$post['useravatar']}</div></div>
    <div class="author_information">
            <strong><span class="largetext">{$post['profilelink']}</span></strong><br />
            <span class="smalltext">
                <br />
                {$post['userstars']}
                {$post['groupimage']}
            </span>
    </div>
    <div class="author_statistics">
        {$post['user_details']}
    </div>
</div>
<div class="post_content">
    <div class="post_head">
        {$post['posturl']}
        {$post['icon']}
        <span class="post_date">{$post['postdate']} <span class="post_edit" id="edited_by_{$post['pid']}">{$post['editedmsg']}</span></span>
    {$post['subject_extra']}
    </div>
    <div class="post_body scaleimages" id="pid_{$post['pid']}">
        {$post['download_system']}{$post['message']}
        
        
    </div>
    {$post['attachments']}
    {$post['signature']}
    <div class="post_meta" id="post_meta_{$post['pid']}">
        {$post['iplogged']}
    </div>
</div>
<div class="post_controls">
    <div class="postbit_buttons author_buttons float_left">
        {$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}
    </div>
    <div class="postbit_buttons post_management_buttons float_right">
        {$post['button_edit']}{$post['button_quickdelete']}{$post['button_quickrestore']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_purgespammer']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
    </div>
</div>
</div>{$post['adsaf']}


postbit classic


Kod:
{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<div class="post classic {$unapproved_shade}" style="{$post_visibility}" id="post_{$post['pid']}">
<div class="post_author scaleimages"><div class="awatarr"><div align="center">{$post['onlinestatus']}{$post['useravatar']}</div></div>
<div class="author_information">
<strong><span class="largetext">{$post['profilelink']}</span></strong><br />
<span class="smalltext">


{$post['usertitle']}<br />
{$post['groupimage']}
{$post['user_details']}

</span>
</div>

</div>
<div class="post_content">
<div class="post_head">
{$post['posturl']}
{$post['icon']}
<span class="post_date">{$post['postdate']} <span class="post_edit" id="edited_by_{$post['pid']}">{$post['editedmsg']}</span></span>
{$post['subject_extra']}
</div>
<div class="post_body scaleimages" id="pid_{$post['pid']}">
{$post['download_system']}{$post['message']}
</div>
{$post['attachments']}
{$post['signature']}
<div class="post_meta" id="post_meta_{$post['pid']}">
{$post['iplogged']}
</div>
</div>
<div class="post_controls">
<div class=" author_buttons float_left">
{$post['button_pm']}
</div>
<div class=" post_management_buttons float_right">
{$post['button_rep']}{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quickrestore']}{$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>
</div>{$post['adsaf']}

Oraz PW - Private


Kod:
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->private_messaging}</title>
{$headerinclude}
</head>
<body>
{$header}
<form action="private.php" method="post" name="pmForm">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<table width="100%" border="0" align="center">
<tr>
{$usercpnav}
<td valign="top">
<fieldset>
  {$pmspacebar}<span class="smalltext"><a href="private.php">{$lang->inbox}</a>{$composelink} | <a  href="private.php?action=folders">{$lang->manage_folders}</a>{$emptyexportlink}</span>
</fieldset>
<br />
{$limitwarning}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="6">
<div class="float_right">
<input type="text" name="keywords" value="{$lang->enter_keywords}" onfocus="if(this.value == '{$lang->enter_keywords}') { this.value = ''; }" onblur="if(this.value=='') { this.value='{$lang->enter_keywords}'; }" class="textbox" size="25" />
<input type="submit" class="button" name="quick_search" value="{$lang->search_pms}" />
(<a href="private.php?action=advanced_search">{$lang->advanced_search}</a>)</div>
<strong>{$foldername}</strong></td>
</tr>
<div class="pwawatar"><div align="center">{$post['onlinestatus']}
{$post['useravatar']}</div></div>
<tr>
<td class="tcat" align="center" colspan="3"><span class="smalltext"><strong><a href="private.php?fid={$folder}&amp;sortby=subject&amp;order=asc">{$lang->message_title}</a> {$orderarrow['subject']}</strong></span></td>
<td class="tcat" align="center" width="30%" style="white-space: nowrap"><span class="smalltext"><strong><a href="private.php?fid={$folder}&amp;sortby=username&amp;order=asc">{$sender}</a> {$orderarrow['username']}</strong></span></td>
<td class="tcat" align="right"  width="20%" style="white-space: nowrap"><span class="smalltext"><strong><a href="private.php?fid={$folder}&amp;sortby=dateline&amp;order=desc">{$lang->date_sent}</a> {$orderarrow['dateline']}</strong></span></td>
<td class="tcat" align="center" width="1%" style="white-space: nowrap"><span class="smalltext"><input name="allbox" title="{$lang->check_all}" type="checkbox" class="checkbox checkall" value="{$lang->check_all}" /></span></td>
</tr>
{$messagelist}
<tr>
<td class="tfoot" align="right" colspan="6">
<input type="submit" class="button" name="moveto" value="{$lang->move_to}" /> {$folderoplist} {$lang->or}
<input type="submit" class="button" name="delete" value="{$lang->delete}" /> {$lang->selected_messages}
</td>
</tr>
</table>
<br />
<div class="float_left">{$multipage}</div>
<div class="float_right">
<span class="smalltext">
<strong>{$lang->jump_folder} {$folderjump}
<input type="submit" class="button" name="hop" value="{$lang->go}" />
</strong>
</span>
</div>
</td>
</tr>
</table>
<input type="hidden" name="action" value="do_stuff" />
</form>
{$footer}
</body>
</html>


Konto testowe: 

L: polskiemybb
H: haslo123

Tutaj mój poprzedni wątek, może się przydać: https://webboard.pl/thread-67974.html
To znaczy postbit_avatar odpowiada za avatar w wiadomości, nie ma on żadnej ikonki on/off.
Kod:
<align="center"><a href="{$post['profilelink_plain']}"><img src="{$post['avatar']}" alt="" width=150px" height="150px" /></a></align>

Tak mam w postbit awatar
No więc masz poprawny postbit_avatar; gratuluję. Co chcesz osiągnąć? Online,Offline na zdjęciu(avatarze)?
Dokładnie tak, bo wcześniej było. (mój wcześniejszy temat). Ale teraz znikło
(18.07.2016, 12:32)SzYm3k napisał(a): [ -> ]https://webboard.pl/thread-67939.html

No i?
No i mam taki kod, bo w innym u mnie widać normalnie a u innych np. w lewo. Więc tamten temat w czym miałby mi pomóc?
(18.07.2016, 12:32)Fyeem napisał(a): [ -> ]To Ci może pomóc: RE: Status online / offline w postach
Wystarczy zmienić px na %
Wszystko ładnie pięknie bo się pojawiło, tyle że jak zmieniam wartość:
Kod:
margin-left: 30%;
margin-top: 30%;
}

To nie chce to wejść na awatar! Awatar przesuwa się na dół
Obrazek online/offline powinien zawierać coś jak:
Kod:
{
    position: absolute;
    top: 0px;
    right: 0px;
}

Zmień margin-top: 30%; na margin-top: 0%;
Dobra jakoś dałem sobie sam radę :P Dzięki