The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
thread statusicons alt text?
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? |
#2
|
||||
|
||||
You would ad a title="whatever you want it to say" to the image tag:
HTML Code:
<img src="image.jpg" alt="whatever" title="whatever you want it to say" />
|
#3
|
|||
|
|||
Yea, but where is the image?
I looked in threadbit template and here's the code 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> |
#4
|
||||
|
||||
Not an alt tag, a *title* tag. You'd add it to that image there:
Code:
<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="" /> |
#5
|
|||
|
|||
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) |
#6
|
||||
|
||||
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.
HTML Code:
<if condition="$thread[statusicon] == '_dot_hot'">Hot Thread<else /> etc..... </if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|