Version: 1.1, by El_Muerte
Developer Last Online: Jan 2023
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.
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:
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:
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.
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.
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.
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.
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.