![]() |
Smart Hints
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> 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%; } |
Safari really doesn't like your new tooltips by the looks of things... I just get black boxes on mouseover!
|
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. |
would be good from you to provide the origin of your javascript, so we can have some support from the originate coder...
|
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 |
Quote:
Quote:
|
Quote:
|
Thanks!
|
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.
|
It should cut out the title tags if javascript is enabled.
Cause otherwise they overlap. :( |
The title attributes are made empty via javascript, so they shouldn't overlap. What browser are you using? I've tested it with Mozilla 1.0.7, MSIE 6.0 and Opera 8.5.
|
Quote:
|
All times are GMT. The time now is 08:43 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|