Log in

View Full Version : thread statusicons alt text?


medicalforums
09-29-2009, 03:04 PM
Ok, I removed the icons key code from forumdisplay (I just don't like it).

Instead I want to add an alt text to the thread statusicons so that when user hover they see what each icon means (like hot thread, thread u posted in it, etc)

How do I do that?

Lynne
09-29-2009, 03:12 PM
You would ad a title="whatever you want it to say" to the image tag:

<img src="image.jpg" alt="whatever" title="whatever you want it to say" />

medicalforums
09-29-2009, 03:55 PM
Yea, but where is the image?
I looked in threadbit template and here's the code

<tr>
<td class="alt1" id="td_threadstatusicon_$thread[realthreadid]">
$thread[openclose_editable]
<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>

Where should add the alt tag?

Lynne
09-29-2009, 04:23 PM
Not an alt tag, a *title* tag. You'd add it to that image there:
<img src="$stylevar[imgdir_statusicon]/thread$thread[statusicon].gif" id="thread_statusicon_$thread[realthreadid]" title="whatever you want it to say" 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="" />

medicalforums
09-29-2009, 04:52 PM
but that will show the same title to all the icons?
I want a special title tag to each of them
(hot thread, thread u posted it, hot thread new posts, etc)

Lynne
09-29-2009, 07:19 PM
Then write a plugin to set a variable that you write there or put in a condition to define that title text. You could try just putting "$thread[statusicon]" in there and see if that is what you want or write the condition based on that variable.

<if condition="$thread[statusicon] == '_dot_hot'">Hot Thread<else /> etc..... </if>