XF 2.2 How to prevent auto links from appearing in notices?

Sal Collaziano

Well-known member
Licensed customer
I use a service that automatically creates links under certain keywords. Think Amazon or Infolinks. I have the code in the page_container template. I’m finding the links appearing in “notices”, but I’d like to avoid that. Any advice on how to do that? Ultimately, it would be great to have the links appear only within posted messages.
 
You could wrap it in a conditional to only show on thread_view if you only want it in posted messages.
Or avoid the conditional and just put the js in the thread_view template.
That sounds like what I’m looking for. Would you happen to know the conditional syntax/format?
 
Code:
<xf:if is="$template == 'thread_view'">
Show content...
</xf:if>

 
Code:
<xf:if is="$template == 'thread_view'">
Show content...
</xf:if>

Thank you. I’m going to try this.
 
Back
Top Bottom