How To Get Hot Threads With Flames?

Deepmartini

Well-known member
I've seen this on a few older message boards, when a thread gets hot you see a little moving fire flame icon. Is there a way to do this in Xenforo?
 
I'm adding this to my theme with a template edit to thread_list_item. Place where needed:

HTML:
<xen:if is="{$thread.reply_count} > 100">Hot!</xen:if>
 
Works also with latest xenforo 1.5.x if anybody will use it. :)

example code to add:
HTML:
<xen:if is="{$thread.reply_count} > 50"><img src="../images/fire15.apng"/></xen:if>

eg: XenPorta (Recent Threads Widget)
Edit: EWRwidget_Threads >> thread_list_item

find in the template:
HTML:
                    <xen:else />
                        {xen:helper threadPrefix, $thread}
                    </xen:if>
after add:

HTML:
<xen:if is="{$thread.reply_count} > 50"><img src="../images/fire15.apng"' alt="Hot!" title="Hot discussed thread"/></xen:if>

Change 50 to what ever you mean a thread should be hot or not and edit the image source to your preferences. Thats all. In the attached zip you will find the fire as animated 16x16 apng file.

Looks like:
197475

Same way you can made this for other thread list templates if you want. Better way would be to make a TMS entry, so its sure when you made next update. :)
 

Attachments

Last edited:
Works also with latest xenforo 1.5.x if anybody will use it. :)

example code to add:
HTML:
<xen:if is="{$thread.reply_count} > 50"><img src="../images/fire15.apng"/></xen:if>

eg: XenPorta (Recent Threads Widget)
Edit: EWRwidget_Threads >> thread_list_item

find in the template:
HTML:
                    <xen:else />
                        {xen:helper threadPrefix, $thread}
                    </xen:if>
after add:

HTML:
<xen:if is="{$thread.reply_count} > 50"><img src="../images/fire15.apng"' alt="Hot!" title="Hot discussed thread"/></xen:if>

Change 50 to what ever you mean a thread should be hot or not and edit the image source to your preferences. Thats all. In the attached zip you will find the fire as animated 16x16 apng file.

Looks like:
View attachment 197475

Same way you can made this for other thread list templates if you want. Better way would be to make a TMS entry, so its sure when you made next update. :)

This looks cool. Where can we see it in action?!
 
Top Bottom