Neler yeni

Foruma hoş geldin 👋, Ziyaretçi

Forum içeriğine ve tüm hizmetlerimize erişim sağlamak için foruma kayıt olmalı ya da giriş yapmalısınız. Foruma üye olmak tamamen ücretsizdir.

  • Forumdan daha fazla yararlanmak için, profilinizi telefon numaranız 📱 ile doğrulayın ve daha ayrıcalıklı olun 😉
    Daha fazla bilgi!
Kaynak ikonu

XF 2.1 Eklenti Ziyaretçilere İçerik Görünümünü Kısıtla

Bu eklenti, add-ons XenForo 2.1.X ile uyumlu ve stabil olarak çalışmaktadır.
google index verse çok güzel bir sistem de. ben %100 orjinal makale giriyorum hep siteme. bunu kullanırsam anlamı kalmaz :)
 
2.2.0 'da post_macros ilgili kod bu şekilde

Kod:
<article class="message-body js-selectToQuote">
            <xf:ad position="post_above_content" arg-post="{$post}" />
            <xf:if is="$snippet">
                {{ bb_code_snippet($post.message, 'post', $post, $snippet) }}
            <xf:else />
                {{ bb_code($post.message, 'post', $post) }}
            </xf:if>
            <div class="js-selectToQuoteEnd">&nbsp;</div>
            <xf:ad position="post_below_content" arg-post="{$post}" />
        </article>

Buna göre sizin kodu nasıl güncellemem gerekiyor
 
2.2.0 'da post_macros ilgili kod bu şekilde

Kod:
<article class="message-body js-selectToQuote">
            <xf:ad position="post_above_content" arg-post="{$post}" />
            <xf:if is="$snippet">
                {{ bb_code_snippet($post.message, 'post', $post, $snippet) }}
            <xf:else />
                {{ bb_code($post.message, 'post', $post) }}
            </xf:if>
            <div class="js-selectToQuoteEnd">&nbsp;</div>
            <xf:ad position="post_below_content" arg-post="{$post}" />
        </article>

Buna göre sizin kodu nasıl güncellemem gerekiyor

Bu kısım aşağıdakiyle değiştirilecek.

PHP:
<article class="message-body js-selectToQuote">
<xf:ad position="post_above_content" arg-post="{$post}" />
<xf:if is="!$xf.visitor.user_id">
<xf:set var="$snippetPost" value="{{ snippet($post.message, 300) }}" />
{{  bb_code($snippetPost, 'post', $post)  }}
<xf:if is="$snippetPost != $post.message">
<div class="blockMessage blockMessage--important blockMessage--iconic">
İçeriğin tamamını görüntülemek için lütfen giriş yapınız.
</div>
</xf:if>
<xf:else/>
{{ bb_code($post.message, 'post', $post) }}
</xf:if>
<div class="js-selectToQuoteEnd">&nbsp;</div>
<xf:ad position="post_below_content" arg-post="{$post}" />
</article>
 
amaç paylaşmaksa kısıtlama mantıksız .. hide link eklentisindeki basan hatalar olmasa bi onu kullanıcamda saçma sapan günlük hatası var herkesde sanırsam
 
Bu kısım aşağıdakiyle değiştirilecek.

PHP:
<article class="message-body js-selectToQuote">
<xf:ad position="post_above_content" arg-post="{$post}" />
<xf:if is="!$xf.visitor.user_id">
<xf:set var="$snippetPost" value="{{ snippet($post.message, 300) }}" />
{{  bb_code($snippetPost, 'post', $post)  }}
<xf:if is="$snippetPost != $post.message">
<div class="blockMessage blockMessage--important blockMessage--iconic">
İçeriğin tamamını görüntülemek için lütfen giriş yapınız.
</div>
</xf:if>
<xf:else/>
{{ bb_code($post.message, 'post', $post) }}
</xf:if>
<div class="js-selectToQuoteEnd">&nbsp;</div>
<xf:ad position="post_below_content" arg-post="{$post}" />
</article>
Çok sağolasın. İD olarak değiştirmiştik burda şekli ile aldım
 

Foruma hoş geldin 👋, Ziyaretçi

Forum içeriğine ve tüm hizmetlerimize erişim sağlamak için foruma kayıt olmalı ya da giriş yapmalısınız. Foruma üye olmak tamamen ücretsizdir.