vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Show Thread Enhancements - Better Tooltip - Text Enhancement [BBCode] (https://vborg.vbsupport.ru/showthread.php?t=252429)

Cloud_Strife 10-21-2010 10:00 PM

Better Tooltip - Text Enhancement [BBCode]
 
1 Attachment(s)
This BBCode allows you to put some extra text in a popup window.

Installation:

Step 1:
Code:

Upload "tTip" folder to your forums root.


Step 2:
In vBulletin Control Panel: Custom BB Codes -> Add New BB Code

Title: Better Tooltip
BB Code Tag Name: tTip
Replacement:
Code:

<a class="tTip" title="{option}">{param}</a>
Example: [tTip=Hello!]Good Morning![/tTip]
Description: This BBCode allows you to put some extra text in a popup window.
Use {option}: Yes
Button Image (Optional): tTip/theme/images/ttip.png

Step 3: Open header template.

Find:
Code:

<div class="above_body"> <!-- closing tag is in template navbar -->
<div id="header" class="floatcontainer doc_header">



Add before:

Code:

<link href="tTip/theme/style.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="tTip/js/jquery-1.3.1.min.js"></script>
<script type="text/javascript" src="tTip/js/jquery.betterTooltip.js"></script>
    <script type="text/javascript">
        $(document).ready(function(){
            $('.tTip').betterTooltip({speed: 150, delay: 300});
        });
    </script>

Screenshots: Attached.

sulasno 10-22-2010 01:40 PM

tagged and thanks

Greight 10-22-2010 02:03 PM

When I add the code to header, the whole forum font gets "bold". Please fix it.

Cloud_Strife 10-22-2010 02:48 PM

Quote:

Originally Posted by Greight (Post 2112761)
When I add the code to header, the whole forum font gets "bold". Please fix it.

Any screenshot to help you?

netspy 12-30-2010 09:07 AM

Does not work! You style.css has many effects to the default style and kills the layout, e.g.:

HTML Code:

#content {
        width: 270px;
        padding: 15px 25px;
        ?

Why do you change basic styles like the body element or the wrapper and content IDs?

netspy 12-30-2010 09:44 AM

Now I have removed all unnecessary style declarations and reduced to this code:

Code:

.tTip {cursor: pointer; color: #666; font-weight: bold;}
.tip {color: #333;}       
/*-----------------------------------------------------------------------------------------------*/
/*                                        TOOLTIP STYLES                                        */
/*-----------------------------------------------------------------------------------------------*/

.tip {
        width: 212px;
        padding-top: 37px;
        overflow: hidden;
        display: none;
        position: absolute;
        z-index: 500;
        background: transparent url(images/tipTop.png) no-repeat top;}
       
.tipMid {background: transparent url(images/tipMid.png) repeat-y; padding: 0 25px 20px 25px;}
.tipBtm {background: transparent url(images/tipBtm.png) no-repeat bottom; height: 32px;}

Now it works.

GamerPerfection 12-30-2010 11:03 AM

Tagged.... Can you place images and hyperlinks in the popup too?

GamerPerfection 12-30-2010 04:01 PM

Ok I tested it, and firstly I had to do what netspy did to fix the layout issue.

Secondly, I tested hyperlinks and images with the thing and it doesn't work with those. I didn't realise that you can't move the cursor over the bubble when it appears as because when you move the cursor away the bubble disappears.

It would be great if you could move the cursor over the bubble and have the ability to have hyperlinks and images in the bubble so that i could click on something in the bubble.

Dr.osamA 01-05-2011 02:33 AM

thank you man

installed ander test

brb

OldSchoolDSL 01-05-2011 06:37 PM

Does not work on 4.1 PL2

Only ended up showing code in my head, above my logo.


All times are GMT. The time now is 12:34 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.01114 seconds
  • Memory Usage 1,739KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete