vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   If I wanted to style ALT text (https://vborg.vbsupport.ru/showthread.php?t=239123)

TimberFloorAu 03-26-2010 07:37 AM

If I wanted to style ALT text
 
1 Attachment(s)
Which template or whatever its called, spews out the ALT text for a thread?

We wish to add a tooltip jquery class to the alt text, so want to wrap the alt text with a class.

Can anyone help please, have asked once on here and once on vb.com. Not a single reply.

See image below

Eric 03-26-2010 08:35 AM

In vB3....

vB uses the title attribute on the <td>

for eg:
HTML Code:

        <td class="alt1" id="td_threadtitle_316" title="Hello,

I'm very happy finding this great script. As I use Polish and want to translate site to Polish (but language doesn't actually matter) - I'd..."
>

                <a rel="vB::AJAX"></a>
                <div>
                        <a href="showthread.php?t=316" id="thread_title_316">translating DNP</a>
                </div>
                <div class="smallfont">
                                <span style="cursor:pointer" onclick="window.open('member.php?u=401', '_self')">asceta</span>
                </div>
        </td>

The actual template is threadbit

And in that template, you're looking for:
HTML Code:

<td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
title="$thread[preview]" does the actual "alt" text.

TimberFloorAu 03-26-2010 09:03 AM

Cheers Eric.

Will give it a whirl :up:

--------------- Added [DATE]1269615586[/DATE] at [TIME]1269615586[/TIME] ---------------

Bugger just realised I posted this in VB3 discussions.

I am on vb4 lol

The code I think is replacement update in vb4 from vb3 is:

Code:

<a class="title<vb:if condition="$show['gotonewpost']"> threadtitle_unread</vb:if>" href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo}, 'threadid', 'threadtitle'}" id="thread_title_{vb:raw thread.realthreadid}">{vb:raw thread.threadtitle}</a>


All times are GMT. The time now is 10:03 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.00995 seconds
  • Memory Usage 1,717KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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