Blind Dragon
09-16-2009, 07:44 PM
So I want to give stickied threads a different icon than normal threads and closed threads. Not so hard...
My problem is, I need it to be conditional on if the thread is a sticky, then use the sticky icon, if the thread is not a sticky, then use normal thread icons.
Here's where I am at - the sticky icon shows, but it shows along with the normal icon showing closed thread or new post ect instead of replacing it:
This is the threadbit template (is there somewhere else they have conditionals for when to use one threadicon or another ?)
<tr>
<td class="alt1" id="td_threadstatusicon_$thread[realthreadid]">
$thread[openclose_editable]
<if condition="$show['sticky']">
<img src="$stylevar[imgdir_statusicon]/stickyicon.gif" alt="$vbphrase[sticky_thread]" /></if>
<else /><img src="$stylevar[imgdir_statusicon]/thread$thread[statusicon].gif" id="thread_statusicon_$thread[realthreadid]" alt="<if condition="$show['threadcount']"><phrase 1="$thread[dot_count]" 2="$thread[dot_lastpost]">$vbphrase[have_x_posts_in_thread_last_y]</phrase></if>" border="" />
</td>
I figured the if/else statement would mean if condition 1 is not met then use condition 2
or if the thread is not a sticky then use [statusicon].gif
If you need to see and example of what I am talking about:
http://www.tech-101.com/windows/
My problem is, I need it to be conditional on if the thread is a sticky, then use the sticky icon, if the thread is not a sticky, then use normal thread icons.
Here's where I am at - the sticky icon shows, but it shows along with the normal icon showing closed thread or new post ect instead of replacing it:
This is the threadbit template (is there somewhere else they have conditionals for when to use one threadicon or another ?)
<tr>
<td class="alt1" id="td_threadstatusicon_$thread[realthreadid]">
$thread[openclose_editable]
<if condition="$show['sticky']">
<img src="$stylevar[imgdir_statusicon]/stickyicon.gif" alt="$vbphrase[sticky_thread]" /></if>
<else /><img src="$stylevar[imgdir_statusicon]/thread$thread[statusicon].gif" id="thread_statusicon_$thread[realthreadid]" alt="<if condition="$show['threadcount']"><phrase 1="$thread[dot_count]" 2="$thread[dot_lastpost]">$vbphrase[have_x_posts_in_thread_last_y]</phrase></if>" border="" />
</td>
I figured the if/else statement would mean if condition 1 is not met then use condition 2
or if the thread is not a sticky then use [statusicon].gif
If you need to see and example of what I am talking about:
http://www.tech-101.com/windows/