PDA

View Full Version : If I wanted to style ALT text


TimberFloorAu
03-26-2010, 07:37 AM
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:

<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:
<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 1269615586 at 1269615586 ---------------

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:

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