R rdn Well-known member Sep 12, 2013 #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!
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 in memoriam 1991-2020 Sep 12, 2013 #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. Upvote 0 Downvote
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.
R rdn Well-known member Sep 12, 2013 #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. Upvote 0 Downvote
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.
R rdn Well-known member Sep 12, 2013 #5 Having this error: Line 1: Invalid condition expression I created a new template from your code, then encountered that. Upvote 0 Downvote
Having this error: Line 1: Invalid condition expression I created a new template from your code, then encountered that.
Jeremy in memoriam 1991-2020 Sep 12, 2013 #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) Upvote 0 Downvote
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)