XF 2.1 Conditonal graphic in Forum Display or Thread Display

Oldengine

Active member
Let's go back a century in programming to vB tables and bring me up to date...

Templates: FORUMDISPLAY and SHOWTHREAD

<if condition="in_array($forumid, array(1,2,5,6,7,18,20,21,22,23,24,25,27,28,32,34,36,37,38,39,42,43,45,51,54,56,57,59,60,64,79,80,87,90,91,98,99,103,105,106,107,112,114,115,120,122,123,132,133,134,135,138,139,140,141,142,143,144,152,154,155,156,158,159,164,165,170,173,175,176,179,187,189,190,198,199,201,203,204,205,206,207,210,216))">
<img src="images/forum_pics/$forumid.gif" alt="$foruminfo[title]" border="0" />
<else />
<img src="https://www.smokstak.com/image/bug.gif" alt="$foruminfo[title]" width="100" height="100" />
</if>

To keep my forums familiar to my many users, I would like to display a forum graphic in the heading of a particular forum or thread. Yes, I have a lot of forums!

Can anyone push me in the right direction to bring this logic over to my new XenForo forums?
 

Attachments

  • boardicon.webp
    boardicon.webp
    92.2 KB · Views: 24
  • 115.gif
    115.gif
    959 bytes · Views: 24
vB3 Template: FORUMDISPLAY

<if condition="in_array($forumid, array(1,2,5,6,7,18,20,21,22,23,24,25,27,28,32,34,36,37,38,39,42,43,45,51,54,56,57,59,60,64,79,80,87,90,91,98,99,103,105,106,107,112,114,115,120,122,123,132,133,134,135,138,139,140,141,142,143,144,152,154,155,156,158,159,164,165,170,173,175,176,179,187,189,190,198,199,201,203,204,205,206,207,210,216))">
<img src="images/forum_pics/$forumid.gif" alt="$foruminfo[title]" border="0" />
<else />
<img src="https://www.smokstak.com/image/bug.gif" alt="$foruminfo[title]" width="100" height="100" />
</if>

To keep my forums familiar to my many users, I would like to display a forum graphic in the heading of a particular forum.
Can anyone push me in the right direction to bring this logic over to my new XenForo forums?
Simplyfing this modification, forget it on cell phones, too small.
FORUMHOME would get the job done, not required on SHOWTHREAD.

45. How can I show content in a specific forum?

Forum #115 picks up forum pic 115.gif and shows it as in the image below. Size 100x100 but can be smaller.

Code? Which Template?

<xf:if is="$forum.node_id == x">
Show content 115.gif
</xf:if>

Can this mod code be purchased with instructions? Right now, it's Greek to me.
I completely miss the mods in the www.vBulletin.org forum.

FORUMHOME.jpg
 
Back
Top Bottom