• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 How to insert a single line content between thread search result?

RoldanLT

Well-known member
#1
For:
  • New Post
  • Keyword Search
  • Watched Threads List
I tried: hook:thread_list_item_icon_key
But it's show's in all thread.
I want to show it once, Thanks!
 

Jeremy

Well-known member
#2
What are you trying to accomplish? If you are using templates (pre-compiled) you could do:

Code:
<xen:if is="!$shown">
  <xen:set var="$shown" value="true" />
  <!-- show your content -->
</xen:if>
That should only show once.
 

RoldanLT

Well-known member
#3
Just like using this template: ad_thread_list_below_stickies
Content will be shown below stickies.

But with hook:thread_list_item_icon_key, I want to show it below the 1st thread/result.
 

Jeremy

Well-known member
#6
Code:
<xen:set var="$shown" value="false" />
<xen:if is="{$shown} == true">
  <xen:set var="$shown" value="true" />
  <!-- show your content -->
</xen:if>
(untested, but a variation of that should work)