Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Smart Hints Details »»
Smart Hints
Version: 1.1, by El_Muerte El_Muerte is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 11-08-2005 Last Update: 11-09-2005 Installs: 3
Uses Plugins
Additional Files  
No support by the author.

Smart Hints is a javascript that will convert all HTML title attributes to javascript powered hints.
This grants you more power in the looks of the hint and also newline support for all browsers.

All most of you may be aware of is that vBulletin has a thread preview feature that adds some text of the thread to the title attribute. Only MSIE will properly show the newlines, this looks quite ugly and unreadable for other browsers.
This plugin will make it a bit more nicer. Without javascript nothing much happens, also no HTML is touched, it's all done via JavaScript. The plugin only adds two invisible lines to the end of the document.

This javascript file can easily be used in other websites. Hence I release this script under the terms of the GNU Lesser General Public License.

A live demo is available here: http://forum.magicball.net/forumdisplay.php?f=6

Installation\customization intrustions are in the README file in the zip archive.

Note: you can also install this mod for older vBulletin versions (pre 3.5), for that you will need to customize some templates to include the 2 HTML lines. The code to add would be:
HTML Code:
<script type="text/javascript" src="http://el-muerte.student.utwente.nl/lba/forum/clientscript/smartHints.js"></script>
<div id="hintwindow" class="tborder" style="display: none; position: absolute;"><div id="hintwindowtext" class="alt1">&nbsp;</div></div>
Changes in v1.1
Changed the HTML code, removed all unimportant style data (e.g. color and stuff) and now uses default style classes. Previous method actually didn't allow proper customization. It now uses the tborder and alt1 classes, this makes the hint blend in with the forum directly. However I do suggest to add the following lines to the Additional CSS Definitions just to make it even nicer:
Code:
#hintwindow { padding: 1px; font-size: 80%; }
#hintwindowtext { padding: 1px; }
Known bug: Opera (8.5) doesn't show newlines, the reason for this that the title attribute doesn't contain newlines when requested via javascript (bug in Opera?).

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 11-09-2005, 12:02 PM
Pyrix Pyrix is offline
 
Join Date: Jul 2004
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Safari really doesn't like your new tooltips by the looks of things... I just get black boxes on mouseover!
Reply With Quote
  #3  
Old 11-09-2005, 12:06 PM
El_Muerte's Avatar
El_Muerte El_Muerte is offline
 
Join Date: Nov 2001
Posts: 237
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm.. that sucks. Don't have safari or an other KHTML based browser. Maybe it doesn't understand the standard colors used. Try customizing the hint window colors (as described in the readme).

Also Opera sures might suffer from some stupid Opera feature that will obstruct the hint with a tooltip containing the url of the link. And for some stupid reason Opera doesn't want to display the BR tags properly.
Reply With Quote
  #4  
Old 11-09-2005, 12:31 PM
nexialys
Guest
 
Posts: n/a
Default

would be good from you to provide the origin of your javascript, so we can have some support from the originate coder...
Reply With Quote
  #5  
Old 11-09-2005, 01:04 PM
TheProfessor TheProfessor is offline
 
Join Date: Jan 2003
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't wann be lame, but this extension for vB 3.5 does it much better:

https://vborg.vbsupport.ru/showthread.php?t=99520
Reply With Quote
  #6  
Old 11-09-2005, 02:20 PM
El_Muerte's Avatar
El_Muerte El_Muerte is offline
 
Join Date: Nov 2001
Posts: 237
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nexialys
would be good from you to provide the origin of your javascript, so we can have some support from the originate coder...
The origin is me, I wrote this from scratch this morning.

Quote:
Originally Posted by TheProfessor
I don't wann be lame, but this extension for vB 3.5 does it much better:

https://vborg.vbsupport.ru/showthread.php?t=99520
Well, maybe in some way. But my plugin does it for every "title" attribute on the page. On an other site we're using vbPortal that also uses title attributes for somethings (like an rss feed block), that will automatically profit from this plugin. Also no template changes are required.
Reply With Quote
  #7  
Old 11-09-2005, 02:54 PM
yinyang's Avatar
yinyang yinyang is offline
 
Join Date: May 2004
Location: Los Angeles
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheProfessor
I don't wann be lame, but this extension for vB 3.5 does it much better:

https://vborg.vbsupport.ru/showthread.php?t=99520
personally, i don't like the term "better" since it compares two equal things that perform differently. this hack is different and suits el muerte in what he needed accomplished. i think it is great that he would take the time to share his knowledge and work with us in his free time.
Reply With Quote
  #8  
Old 11-09-2005, 06:37 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks!
Reply With Quote
  #9  
Old 11-10-2005, 08:51 PM
El_Muerte's Avatar
El_Muerte El_Muerte is offline
 
Join Date: Nov 2001
Posts: 237
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A small update, I trashes the previous default style data for colors. It now uses a few predefined vBulletin style classes. I hope this also fixed the safari black box issue.
Reply With Quote
  #10  
Old 11-10-2005, 08:56 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It should cut out the title tags if javascript is enabled.
Cause otherwise they overlap.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:44 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04594 seconds
  • Memory Usage 2,299KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete