vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Adding A jQuery Tooltip To vBulletin (https://vborg.vbsupport.ru/showthread.php?t=310984)

Dj Smuggla 05-02-2014 03:47 PM

Adding A jQuery Tooltip To vBulletin
 
Im trying to add a jquery tooltip to my forum, but having some probs. Can someone help me out...

Im using this one: 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:
Code:

<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:
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?
Code:

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

Seven Skins 05-02-2014 09:04 PM

You can do this:

HTML Code:

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


All times are GMT. The time now is 09:23 PM.

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.00963 seconds
  • Memory Usage 1,714KB
  • 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
  • (3)bbcode_code_printable
  • (1)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