- Uyumlu XF 2 Sürümleri
-
Belirlediğiniz forumlarda ilk mesajda postbiti gizlemek için:
Temanızın
Aşağıdaki gibi değiştirin:
[x,y,z] yerinde forum id numaralarını yazın. [3,8,10,25] gibi...
Ve temanızın
Şablon değişikliğinden önce:
Şablon değişikliğinden sonra:
Temanızın
post_macros
şablonunda bulun:
HTML:
<div class="message-cell message-cell--user">
<xf:set var="$dateHtml"><a href="{{ link('threads/post', $thread, {'post_id': $post.post_id}) }}" class="u-concealed" rel="nofollow"><xf:date time="{$post.post_date}" /></a></xf:set>
<xf:set var="$linkHtml"><a href="{{ link('threads/post', $thread, {'post_id': $post.post_id}) }}" class="u-concealed" rel="nofollow">#{{ number($post.position + 1) }}</a></xf:set>
<xf:macro template="message_macros" name="user_info" arg-user="{$post.User}" arg-fallbackName="{$post.username}" arg-dateHtml="{$dateHtml}" arg-linkHtml="{$linkHtml}" />
</div>
Aşağıdaki gibi değiştirin:
[x,y,z] yerinde forum id numaralarını yazın. [3,8,10,25] gibi...
HTML:
<xf:if is="in_array($post.Thread.node_id, [x,y,z])">
<xf:if is="$post.position % $xf.options.messagesPerPage == 0">
<div class="message-cell message-cell--user ilk-mesaj-postbit-gizle">
<xf:set var="$dateHtml"><a href="{{ link('threads/post', $thread, {'post_id': $post.post_id}) }}" class="u-concealed" rel="nofollow"><xf:date time="{$post.post_date}" /></a></xf:set>
<xf:set var="$linkHtml"><a href="{{ link('threads/post', $thread, {'post_id': $post.post_id}) }}" class="u-concealed" rel="nofollow">#{{ number($post.position + 1) }}</a></xf:set>
<xf:macro template="message_macros" name="user_info" arg-user="{$post.User}" arg-fallbackName="{$post.username}" arg-dateHtml="{$dateHtml}" arg-linkHtml="{$linkHtml}" />
</div>
<xf:else />
<div class="message-cell message-cell--user">
<xf:set var="$dateHtml"><a href="{{ link('threads/post', $thread, {'post_id': $post.post_id}) }}" class="u-concealed" rel="nofollow"><xf:date time="{$post.post_date}" /></a></xf:set>
<xf:set var="$linkHtml"><a href="{{ link('threads/post', $thread, {'post_id': $post.post_id}) }}" class="u-concealed" rel="nofollow">#{{ number($post.position + 1) }}</a></xf:set>
<xf:macro template="message_macros" name="user_info" arg-user="{$post.User}" arg-fallbackName="{$post.username}" arg-dateHtml="{$dateHtml}" arg-linkHtml="{$linkHtml}" />
</div>
</xf:if>
<xf:else />
<div class="message-cell message-cell--user">
<xf:set var="$dateHtml"><a href="{{ link('threads/post', $thread, {'post_id': $post.post_id}) }}" class="u-concealed" rel="nofollow"><xf:date time="{$post.post_date}" /></a></xf:set>
<xf:set var="$linkHtml"><a href="{{ link('threads/post', $thread, {'post_id': $post.post_id}) }}" class="u-concealed" rel="nofollow">#{{ number($post.position + 1) }}</a></xf:set>
<xf:macro template="message_macros" name="user_info" arg-user="{$post.User}" arg-fallbackName="{$post.username}" arg-dateHtml="{$dateHtml}" arg-linkHtml="{$linkHtml}" />
</div>
</xf:if>
Ve temanızın
extra.less
şablonuna ekleyin
CSS:
.ilk-mesaj-postbit-gizle {
display:none;
}
Şablon değişikliğinden önce:
Şablon değişikliğinden sonra: