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

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

Nie wyświetlają sie awatary

Błąd   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): nie wyświetla się domyślny awatar.

[Obrazek: 9pxs031t8usc_t.jpg]

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.

<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&amp;tid={$tid}&amp;pid={$pid}#pid{$pid}">{$lang->threaded}</a> | <a href="showthread.php?mode=linear&amp;tid={$tid}&amp;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&amp;tid={$tid}&amp;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.
<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">&nbsp; {$thread['threadprefix']}{$thread['subject']}</div>



        <div class="inline_rating right">
            <strong style="float: left; padding-right: 10px;color:#777;font-weight:normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$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']}&amp;rating=1&amp;my_post_key={$mybb->post_code}">1</a></li>
                <li><a class="two_stars" title="{$lang->two_stars}" href="./ratethread.php?tid={$thread['tid']}&amp;rating=2&amp;my_post_key={$mybb->post_code}">2</a></li>
                <li><a class="three_stars" title="{$lang->three_stars}" href="./ratethread.php?tid={$thread['tid']}&amp;rating=3&amp;my_post_key={$mybb->post_code}">3</a></li>
                <li><a class="four_stars" title="{$lang->four_stars}" href="./ratethread.php?tid={$thread['tid']}&amp;rating=4&amp;my_post_key={$mybb->post_code}">4</a></li>
                <li><a class="five_stars" title="{$lang->five_stars}" href="./ratethread.php?tid={$thread['tid']}&amp;rating=5&amp;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:
<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">&nbsp; {$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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$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']}&amp;rating=1&amp;my_post_key={$mybb->post_code}">1</a></li>
                <li><a class="two_stars" title="{$lang->two_stars}" href="./ratethread.php?tid={$thread['tid']}&amp;rating=2&amp;my_post_key={$mybb->post_code}">2</a></li>
                <li><a class="three_stars" title="{$lang->three_stars}" href="./ratethread.php?tid={$thread['tid']}&amp;rating=3&amp;my_post_key={$mybb->post_code}">3</a></li>
                <li><a class="four_stars" title="{$lang->four_stars}" href="./ratethread.php?tid={$thread['tid']}&amp;rating=4&amp;my_post_key={$mybb->post_code}">4</a></li>
                <li><a class="five_stars" title="{$lang->five_stars}" href="./ratethread.php?tid={$thread['tid']}&amp;rating=5&amp;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 :
<div class="ipbfs_titlebox">

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<script type="text/javascript" src="jscripts/rating.js?ver=1400"></script>

&nbsp;&nbsp;&nbsp;&nbsp;<table width="70%" align="center">

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<td>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<tr>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span><a href='{$flp_avatar['profile']}'
title='Rozpoczęte przez {$flp_avatar['username']}'><img
src='{$flp_avatar['avatar']}' {$flp_avatar['dimensions']} alt=''
/></a></span>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tr>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<td>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<tr>





<div class="ipsType_pagetitle">&nbsp; {$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>







&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<div class="inline_rating right">

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong style="float: left; padding-right:
10px;color:#777;font-weight:normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$lang->thread_rating}</strong>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<ul class="star_rating{$not_rated}" id="rating_thread_{$thread['tid']}">

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<li style="width: {$thread['width']}%"
class="current_rating"
id="current_rating_{$thread['tid']}">{$ratingvotesav}</li>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<li><a class="one_star"
title="{$lang->one_star}"
href="./ratethread.php?tid={$thread['tid']}&amp;rating=1&amp;my_post_key={$mybb->post_code}">1</a></li>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<li><a class="two_stars"
title="{$lang->two_stars}"
href="./ratethread.php?tid={$thread['tid']}&amp;rating=2&amp;my_post_key={$mybb->post_code}">2</a></li>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<li><a class="three_stars"
title="{$lang->three_stars}"
href="./ratethread.php?tid={$thread['tid']}&amp;rating=3&amp;my_post_key={$mybb->post_code}">3</a></li>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<li><a class="four_stars"
title="{$lang->four_stars}"
href="./ratethread.php?tid={$thread['tid']}&amp;rating=4&amp;my_post_key={$mybb->post_code}">4</a></li>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<li><a class="five_stars"
title="{$lang->five_stars}"
href="./ratethread.php?tid={$thread['tid']}&amp;rating=5&amp;my_post_key={$mybb->post_code}">5</a></li>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</ul>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tr>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>

&nbsp;&nbsp;&nbsp;&nbsp;</table>

</div>

<br>
Zapamiętaj jedno. NIGDY NIE KOPIUJ NA MOZILLI OD RAZU DO SZABLONU!! ONA ROBI TAKIE &nbsp;!!. 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 &nbsp;!!. Usuń je wszystkie!

Można skopiować z Mozilli, wkleić do Notepad++ i z stąd do szablonu.
Jeśli Ci pomogłem naciśnij guzik POMÓGŁ lub dodaj PUNKT REPUTACJI



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

3 gości