Log in

View Full Version : How do I add the correct icon thread image to a custom module


unforgotten
10-30-2008, 05:39 PM
Hello there,

I have this question, on my styles and templates under adv_portal_latesttopicbits which is a module from vBadvanced CMS I have this piece of code:



<if condition="$mod_options['portal_threads_showicon']">
<td class="alt2">
<if condition="$show['threadicon']">
<img alt="" border="0" src="$stylevar[imgdir_statusicon]/thread$post[statusicon].gif" title="" />
</if>
</td>
</if>



and this works: $stylevar[imgdir_statusicon]/thread$post[statusicon].gif

It shows the thread icon image but when there are new topics it does not change to the new topics icon image "thread_new.gif", can someone help me change the code so that it displays the correct icon image depending on the topic status?

Thanks,
John