wersja skryptu MyBB: 1.8.3
adres forum: terrarysta.com.pl
na czym polega problem (screen, opis, komunikaty): brak opcji "Usuń spamera" w szablonie vienna
Witam, tak jak w temacie, nie wiem jak uaktywnić przycisk "usuń spamera" w szablonie vienna. Według screenów na mybb.com przycisk powinien być normalnie, jednak u mnie się nie wyświetla. Z góry dzięki za pomoc
A zmienna jest w szablonie (sprawdź najpierw na default, potem zobacz, czy jest w Twoim).
Na default jest. Wiem że to wina szablonu, ale niewiem w którym miejscu mogło by to być
Sprawdź, czy w szablonie postbit_classic i postbit masz zmienną {$post['button_purgespammer']}. Szablon opisu posta.
Tak mam
postbit_classic
Kod PHP:
{$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="arrow_box">
<div class="author_information">
{$post['onlinestatus']} <strong><span class="protext">{$post['profilelink']}</span></strong>
<br />
{$post['useravatar']}
<span class="smalltext">
{$post['usertitle']}<br />
{$post['userstars']}
</span>
</div>
<div class="author_statistics">
{$post['user_details']}
<div class="postbit_buttons author_buttons float_left" style="padding-top: 8px;">
{$post['iplogged']} {$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}
</div>
</div></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>
<center>{$post['attachments']}
{$post['signature']}</center>
<div class="post_meta" id="post_meta_{$post['pid']}">
</div>
</div>
<div class="post_controls">
<div class="postbit_buttons 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_purgespammer']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
</div>
</div>
</div>
postbit
Kod PHP:
{$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">
{$post['onlinestatus']} <strong><span class="protext">{$post['profilelink']}</span></strong>
<br />
<span class="smalltext">
{$post['usertitle']}<br />
<div class="postbit_buttons author_buttons float_left" style="padding-top: 8px;">
{$post['iplogged']} {$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}
</div>
</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>
</div>
<div class="post_body scaleimages" id="pid_{$post['pid']}">
{$post['message']}
</div>
<center>{$post['attachments']}
{$post['signature']}</center>
<div class="post_meta" id="post_meta_{$post['pid']}">
</div>
</div>
<div class="post_controls">
<div class="postbit_buttons 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_purgespammer']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
</div>
</div><br />
Hmm... Co masz w szablonie postbit_purgespammer?
Skoro na defaulcie działa, to w sumie tu też powinien.
Kod PHP:
<a href="moderation.php?action=purgespammer&uid={$post['uid']}" title="{$lang->postbit_purgespammer}" class="postbit_purgespammer"><i style="font-size: 14px;" class="fa fa-exclamation-circle fa-fw"></i> Usuń spamera </a>