wersja skryptu MyBB: 1.6.X
adres forum: http://forum.wlep.net/
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu): nie wyświetla się domyślny awatar.
Jak zrobić domyślny i tam zamienić na
"Rozpoczęty przez ..."
Mam plugin Last/First Post Avatar
https://github.com/TommM/flpavatar
PS:sorrry za logo wojny jeszcze robie.
ACP -> Konfiguracja -> Ustawienia Ogólne -> Zjedź na sam dół ->
Cytat:Show Thread
Generate first post information on Show Thread
Zaznacz i zapisz.
Następnie pokaż Twój showthread (ACP -> Style i Szablony -> Szablony -> Twój_Szablon -> Widok wąku -> showthread).
Mam zaznaczone.
Kod:
<html>
<head>
<title>{$thread['subject']}</title>
{$headerinclude}
<script type="text/javascript">
<!--
var quickdelete_confirm = "{$lang->quickdelete_confirm}";
// -->
</script>
<script type="text/javascript" src="jscripts/thread.js?ver=1603"></script>
</head>
<body>
{$header}
{$pollbox}
<div class="left">
{$multipage}
</div>
{$ratethread}
<div class="right">
{$newreply}
<br /><br>
</div>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both; border-bottom-width: 0;">
<tr>
<td class="thead belkatlo" colspan="2">
<div style="float: left;">
<span class="smalltext"><strong><a href="showthread.php?mode=threaded&tid={$tid}&pid={$pid}#pid{$pid}">{$lang->threaded}</a> | <a href="showthread.php?mode=linear&tid={$tid}&pid={$pid}#pid{$pid}">{$lang->linear}</a></strong></span>
</div>
<div>
</div>
</td>
</tr>
{$classic_header}
</table>
<div class="gora_posty"></div>
<div id="posts">
{$posts}
</div>
<div class="left">
{$multipage}
</div>
<div class="dol_posty"></div>
<div style="padding-top: 4px;" class="right">
<br />
{$newreply}
</div>
<br style="clear: both;" />
{$quickreply}
{$threadexbox}
{$similarthreads}
<br />
<div class="left">
<ul class="thread_tools">
<li class="printable"><a href="printthread.php?tid={$tid}">{$lang->view_printable}</a></li>
<li class="sendthread"><a href="sendthread.php?tid={$tid}">{$lang->send_thread}</a></li>
<li class="subscription_{$add_remove_subscription}"><a href="usercp2.php?action={$add_remove_subscription}subscription&tid={$tid}&my_post_key={$mybb->post_code}">{$add_remove_subscription_text}</a></li>
</ul>
</div>
<div class="right" style="text-align: right;">
{$moderationoptions}
{$forumjump}
</div>
<br style="clear: both;" />
{$usersbrowsing}
{$footer}
</body>
</html>
Sorrki pokaż showthread_ratethread.
Kod:
<div class="ipbfs_titlebox">
<script type="text/javascript" src="jscripts/rating.js?ver=1400"></script>
<table width="70%" align="center">
<td>
<tr>
<img src="images/deflection/default_large.png" class="ipsUserPhoto ipsUserPhoto_medium left"/>
</tr>
</td>
<td>
<tr>
<div class="ipsType_pagetitle"> {$thread['threadprefix']}{$thread['subject']}</div>
<div class="inline_rating right">
<strong style="float: left; padding-right: 10px;color:#777;font-weight:normal;"> {$lang->thread_rating}</strong>
<ul class="star_rating{$not_rated}" id="rating_thread_{$thread['tid']}">
<li style="width: {$thread['width']}%" class="current_rating" id="current_rating_{$thread['tid']}">{$ratingvotesav}</li>
<li><a class="one_star" title="{$lang->one_star}" href="./ratethread.php?tid={$thread['tid']}&rating=1&my_post_key={$mybb->post_code}">1</a></li>
<li><a class="two_stars" title="{$lang->two_stars}" href="./ratethread.php?tid={$thread['tid']}&rating=2&my_post_key={$mybb->post_code}">2</a></li>
<li><a class="three_stars" title="{$lang->three_stars}" href="./ratethread.php?tid={$thread['tid']}&rating=3&my_post_key={$mybb->post_code}">3</a></li>
<li><a class="four_stars" title="{$lang->four_stars}" href="./ratethread.php?tid={$thread['tid']}&rating=4&my_post_key={$mybb->post_code}">4</a></li>
<li><a class="five_stars" title="{$lang->five_stars}" href="./ratethread.php?tid={$thread['tid']}&rating=5&my_post_key={$mybb->post_code}">5</a></li>
</ul>
</div>
</tr>
</td>
</table>
</div>
<br>
I chciałbym jeszcze tą ocenę zamienić na "Rozpoczęty przez ... "
Zamień na to:
Kod:
<div class="ipbfs_titlebox">
<script type="text/javascript" src="jscripts/rating.js?ver=1400"></script>
<table width="70%" align="center">
<td>
<tr>
<span><a href='{$flp_avatar['profile']}' title='Rozpoczęte przez {$flp_avatar['username']}'><img src='{$flp_avatar['avatar']}' {$flp_avatar['dimensions']} alt='' /></a></span>
</tr>
</td>
<td>
<tr>
<div class="ipsType_pagetitle"> {$thread['threadprefix']}{$thread['subject']}</div>
<span>Rozpoczęte przez <a href='{$flp_avatar['profile']}' title='View {$flp_avatar['username']}'s Profile'>{$flp_avatar['username']}</a></span>
<div class="inline_rating right">
<strong style="float: left; padding-right: 10px;color:#777;font-weight:normal;"> {$lang->thread_rating}</strong>
<ul class="star_rating{$not_rated}" id="rating_thread_{$thread['tid']}">
<li style="width: {$thread['width']}%" class="current_rating" id="current_rating_{$thread['tid']}">{$ratingvotesav}</li>
<li><a class="one_star" title="{$lang->one_star}" href="./ratethread.php?tid={$thread['tid']}&rating=1&my_post_key={$mybb->post_code}">1</a></li>
<li><a class="two_stars" title="{$lang->two_stars}" href="./ratethread.php?tid={$thread['tid']}&rating=2&my_post_key={$mybb->post_code}">2</a></li>
<li><a class="three_stars" title="{$lang->three_stars}" href="./ratethread.php?tid={$thread['tid']}&rating=3&my_post_key={$mybb->post_code}">3</a></li>
<li><a class="four_stars" title="{$lang->four_stars}" href="./ratethread.php?tid={$thread['tid']}&rating=4&my_post_key={$mybb->post_code}">4</a></li>
<li><a class="five_stars" title="{$lang->five_stars}" href="./ratethread.php?tid={$thread['tid']}&rating=5&my_post_key={$mybb->post_code}">5</a></li>
</ul>
</div>
</tr>
</td>
</table>
</div>
<br>
Niestety nic nie działa a szablon wygląda tak :
Kod:
<div class="ipbfs_titlebox">
<script type="text/javascript" src="jscripts/rating.js?ver=1400"></script>
<table width="70%" align="center">
<td>
<tr>
<span><a href='{$flp_avatar['profile']}'
title='Rozpoczęte przez {$flp_avatar['username']}'><img
src='{$flp_avatar['avatar']}' {$flp_avatar['dimensions']} alt=''
/></a></span>
</tr>
</td>
<td>
<tr>
<div class="ipsType_pagetitle"> {$thread['threadprefix']}{$thread['subject']}</div>
<span>Rozpoczęte przez <a href='{$flp_avatar['profile']}'
title='View {$flp_avatar['username']}'s
Profile'>{$flp_avatar['username']}</a></span>
<div class="inline_rating right">
<strong style="float: left; padding-right:
10px;color:#777;font-weight:normal;"> {$lang->thread_rating}</strong>
<ul class="star_rating{$not_rated}" id="rating_thread_{$thread['tid']}">
<li style="width: {$thread['width']}%"
class="current_rating"
id="current_rating_{$thread['tid']}">{$ratingvotesav}</li>
<li><a class="one_star"
title="{$lang->one_star}"
href="./ratethread.php?tid={$thread['tid']}&rating=1&my_post_key={$mybb->post_code}">1</a></li>
<li><a class="two_stars"
title="{$lang->two_stars}"
href="./ratethread.php?tid={$thread['tid']}&rating=2&my_post_key={$mybb->post_code}">2</a></li>
<li><a class="three_stars"
title="{$lang->three_stars}"
href="./ratethread.php?tid={$thread['tid']}&rating=3&my_post_key={$mybb->post_code}">3</a></li>
<li><a class="four_stars"
title="{$lang->four_stars}"
href="./ratethread.php?tid={$thread['tid']}&rating=4&my_post_key={$mybb->post_code}">4</a></li>
<li><a class="five_stars"
title="{$lang->five_stars}"
href="./ratethread.php?tid={$thread['tid']}&rating=5&my_post_key={$mybb->post_code}">5</a></li>
</ul>
</div>
</tr>
</td>
</table>
</div>
<br>
Zapamiętaj jedno. NIGDY NIE KOPIUJ NA MOZILLI OD RAZU DO SZABLONU!! ONA ROBI TAKIE !!. Usuń je wszystkie!
Wyłącz Codepress w ustawieniach panelu admina.
Niestety nic
Zrobiłem to jeszcze inaczej
Otóż skopiowałem ratethread do showthread.
Zamiast używania {$ratethread}
(25.07.2013, 18:09)GiboneKPL napisał(a): [ -> ]Zapamiętaj jedno. NIGDY NIE KOPIUJ NA MOZILLI OD RAZU DO SZABLONU!! ONA ROBI TAKIE !!. Usuń je wszystkie!
Można skopiować z Mozilli, wkleić do Notepad++ i z stąd do szablonu.