XF 2.2 Criterion in Solved part

htsumer

Active member
I am using the code below for limited content to guests.
post_macros
Code:
<!----300 karakter başı--->
 <article class="message-body js-selectToQuote">
 <xf:ad position="post_above_content" arg-post="{$post}" />
 <xf:if is="{{$xf.visitor.isMemberOf([1])}}">
 <xf:set var="$snippetPost" value="{{ snippet($post.message, 100) }}" />
 {{ bb_code($snippetPost, 'post', $post) }}
 <xf:if is="$snippetPost != $post.message">
 <div class="blockMessage blockMessage--important blockMessage--iconic">
 &#304;&ccedil;eri&#287;in tamam&#305;n&#305; g&ouml;r&uuml;nt&uuml;lemek i&ccedil;in <a href="https://www.maasmutemetleri.net/forum/sayfa/altin_uyelik_premium/">&Ouml;zel &Uuml;ye</a> olman&#305;z gerekmektedir.
 </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>
<!----300 karakter sonu--->

it looks this way, but

1613509299335.png


but the solved topic appears to be content

1613509417993.png


When this is marked as resolved, the content is completely visible.
My question will be this. How can I structure the resolved issue in the same way.
 
Last edited:

htsumer

Active member
solved

Code:
<article class="message-body">

<div class="message-expandWrapper js-expandWatch">

<div class="message-expandContent message-expandContent--small js-expandContent">

<xf:if is="{{$xf.visitor.isMemberOf([1])}}">

{{ bb_code_snippet($post.message, 'post', $post, 75) }}

<div class="blockMessage blockMessage--important blockMessage--iconic">

İçeriğin tamamını görüntülemek için <a href="https://www.maasmutemetleri.net/forum/sayfa/altin_uyelik_premium/">Özel Üye</a> olmanız gerekmektedir.

</div>

<xf:else/>

{{ bb_code_snippet($post.message, 'post', $post, 750) }}

</xf:if>

</div>

<div class="message-expandLink"></div>

</div>

</article>
 
Top