Log in

View Full Version : Show custom threadicon on forumdisplay


TCB
05-25-2006, 09:30 AM
There's a modification for vb3.0 where you can add a custom theadicon (image) for selected forums (topic (https://vborg.vbsupport.ru/showthread.php?t=90436)).

My whishes are a bit different though than the creator offered. So can anyone change the following code:
<if condition="$show['threadicons']">
<td class="alt2">
<if condition="$thread[forumid] == 7"><img src="http://www.mysite.com/images/forumdisplay/$thread[threadid].jpg" width="90" height="90"></if>
<if condition="$show['threadicon']"><img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
<else />&nbsp;</if></td>
</if>
in the threadbit template so that:

* images (named $thread[threadid].jpg) are shown instead of threadicons in forumid's 7,9 and 12 (for example)
* threadicons are shown in all other forumid's

With my alterations it works a bit (except for the conditionals), but threadicons (or an &nbsp) are also shown in the forums 7,9,12

Can anyone help me with these conditionals? Thanks a LOT :D

peterska2
05-25-2006, 01:37 PM
<if condition="$show['threadicons']">
<td class="alt2">
<if condition="$thread[forumid] == 7"><img src="http://www.mysite.com/images/forumdisplay/$thread[threadid].jpg" width="90" height="90">
<else />
<if condition="$show['threadicon']"><img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
<else />&nbsp;</if>
</if>
</td>
</if>

That will replace the thread icons with the custom icons instead of using them in addition to them :)

TCB
05-26-2006, 06:16 PM
fantastic, I will try that...

I also couldn't find how to make a conditional with a range of forums (like using the custon threadicon on forum 7, 12 and 15)

Thanks a lot also :banana: