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

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

Widok posta użytkownika

Założony przez  Knight nocy.

wersja skryptu MyBB: 1.8.3
adres forum: botsgaming.com.pl
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu):Po dodaniu buttonów na avatarze online/offline działa wszystko ale mam problem ponieważ kod wygląda tak

.online_button {
margin-left: -84px;
margin-top: -27px;
}

.offline_button {
margin-left: -84px;
margin-top: -27px;
}

Teraz jak wchodze niezalogowany to post wygląda tak:

[Obrazek: 87570272727650979103_thumb.jpg]

A jak się zaloguje to tak:

[Obrazek: 84194205269914183477_thumb.jpg]

Chciałbym mieć widok konta tak jak na 1 ss'ie zółta otoczka i dobrze umiejscowić ten button czerwona otoczka (1 ss) na gościu, ponieważ zalogowani widzą tak jak na 2 ss button dobrze umiejscowiony, ale widok już jest inny

Pozdrawiam
Adrian
https://webboard.pl/thread-59170.html
Po wgraniu klasycznego stylu i dopasowania ikonek offline/online dzieje się takie coś

[Obrazek: 90428322734657628704_thumb.jpg]
Musisz wprowadzić takie same zmiany dla postbit_classic jakie zrobiłeś dla postbit z tymi ikonkami.
Tylko, że ja właśnie nie wiem co zmienić w postbit_classic

{$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">
    {$post['useravatar']}
    <div class="author_information">
            <strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
            <span class="smalltext">
                {$post['usertitle']}<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['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>
Pokaż jeszcze postbit i online/offline status z tej samej paczki szablonów
postbit

{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<div class="post {$unapproved_shade}" style="{$post_visibility}" id="post_{$post['pid']}">
<div class="post_author">
    {$post['useravatar']}
    <div class="author_information">
            <strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
            <span class="smalltext">
                {$post['usertitle']}<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['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>

postbit_offline

postbit_offline

postbit_online

postbit_offline
postbit_classic zamień na
{$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">
    {
$post['useravatar']}
    <
div class="author_information">
            <
strong><span class="largetext">{$post['profilelink']}</span></strong> <span class="{$post['onlinestatus']}"></span><br />
            <
span class="smalltext">
                {
$post['usertitle']}<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['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
Knight nocy napisał(a):postbit_offline

postbit_offline
postbit_online

postbit_offline
Na pewno to tak wygląda? Dziwne te szablony. Na pewno coś przy nich grzebałeś...
Jeżeli to tak wygląda to postbit_online powinien zawierać
postbit_online
Teraz w css
.postbit_online:before {
displayinline-block;
backgroundurl('tutaj/scieżka/do/grafiki/online.png');
}
.
postbit_offline:before {
displayinline-block;
backgroundurl('tutaj/scieżka/do/grafiki/offline.png');

Zastosuj te zmiany i zobaczymy jak to wygląda.



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

1 gości