Xf2 Modifikasyon - Alıntılarda Avatar gözüksün! | Quotes with Avatars | Xenforo Türkçe Destek, XenForo Eklenti ve Tema Topluluğu

Xf2 Modifikasyon Alıntılarda Avatar gözüksün! | Quotes with Avatars

XFdestek

Kurucu Üye
XFD Üyesi
Katılım
25 May 2014
Mesajlar
832
Tepkime puanı
359
Puanları
63
Konum
Türkiye
Alıntılarda Kullanıcıların İsmi ile beraber Avatarı gözükmesini sağlar...

İlk Adım:
Open template called bb_code_tag_quote
(Stiller > Görünüm > Düzenleme Yapacağınız Tema > Şablonlar ve ARAMA kısmına "bb_code_tag_quote"


İkinci Adım: "Mutlaka kodların yedeğini alınız!!!"
Replace all of its contents with this(Tüm kodları aşağıdakilerle değiştirin!)

Kod:
<xen:require css="bb_code.css" />
<xen:comment><!-- content is escaped via parser --></xen:comment>
<div class="bbCodeBlock bbCodeQuote{xen:if $ignored, ' ignored'}{xen:if $nameHtml, ' hasAvatar'}"{xen:if $nameHtml, ' data-author="{$nameHtml}"'}>
    <aside>
        <xen:if is="{$nameHtml}">
            <div class="attribution type">{xen:phrase x_said, 'name={xen:raw $nameHtml}'}:
                <xen:if is="{$source}">
                    <a href="{xen:link 'goto/{$source.type}', '', 'id={$source.id}'}#{$source.type}-{$source.id}" class="AttributionLink">&uarr;</a>
                </xen:if>
            <span class="arrow"></span>
            </div>
        </xen:if>
        <blockquote>
        <xen:if is="{$attributes.member}">
            <xen:set var="$avaUser.user_id">{$attributes.member}</xen:set>
            <xen:set var="$avaUser.username">{$nameHtml}</xen:set>
            <xen:set var="$avaUser.avatar_date">1</xen:set>
            <xen:avatar user="$avaUser" size="s" class="QuoteAvatar" />
        </xen:if>
        {xen:raw $content}
        </blockquote>
    </aside>
Üçüncü Adım:
EXTRA.css açın ve aşağıdaki kodları ekleyin ;

Kod:
body .messageText .bbCodeQuote.hasAvatar .attribution
{
    position: relative;
}
body .messageText .bbCodeQuote.hasAvatar .arrow
{
    border-radius: 0;
    height: 10px;
    width: 20px;
    position: absolute;
    left: 23px;
    bottom: -10px;
    overflow: hidden;
}
body .messageText .bbCodeQuote.hasAvatar .arrow:after
{
    content: " ";
    background: @bbCodeQuote.border-color;
    border: 1px solid @bbCodeQuote.border-color;
    height: 8px;
    width: 8px;
    top: -5px;
    left: 6px;
    position: absolute;
    box-shadow: 1px 1px rgba(255,255,255,0.25);
    transform: rotate(45deg);
    -o-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}
 

17mart

XFD Onursal
XFD Onursal
XFD Üyesi
Katılım
13 Nis 2015
Mesajlar
173
Tepkime puanı
68
Puanları
28
Yaş
49
Teşekkür Güzel paylaşım
 
Lütfen Javascript'i etkinleştirin!Javascript'i etkinleştirin!