vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   thread statusicons alt text? (https://vborg.vbsupport.ru/showthread.php?t=224201)

medicalforums 09-29-2009 03:04 PM

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?

Lynne 09-29-2009 03:12 PM

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" />

medicalforums 09-29-2009 03:55 PM

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>

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:
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="" />

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.

HTML Code:

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


All times are GMT. The time now is 06:43 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01035 seconds
  • Memory Usage 1,723KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete