PDA

View Full Version : Adding A jQuery Tooltip To vBulletin


Dj Smuggla
05-02-2014, 03:47 PM
Im trying to add a jquery tooltip to my forum, but having some probs. Can someone help me out...

Im using this one: Tooltipster (http://iamceege.github.io/tooltipster/) & i want to use it to display the thread preview when you hover over the thread title, on the forumdisplay page.

This is the part of the threadbit template i need to edit:
<td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">

I need to add the class "tooltip" but if i change the alt1 class to tooltip, it works but i loose the alt1 styling to the thread title block... It's the default skin so it's gone from white to purple.

Like this:
https://vborg.vbsupport.ru/external/2014/05/38.jpg
Thats using this code:
<td class="tooltip" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">


So how can i add the tooltip class & keep the alt1 class there to this code?
<td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">

Seven Skins
05-02-2014, 09:04 PM
You can do this:

<td class="alt1 tooltip" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">

Dj Smuggla
05-03-2014, 02:38 PM
OMG so simple, why didn't i think of that lol :)

Thanks a lot m8...