CvP
10-28-2011, 10:00 PM
Originally posted here (https://www.vbulletin.com/forum/showthread.php/390277-How-to-Make-a-Tooltip-or-Abbreviation-BBCode).
Pretty simple bbcode that uses pure html (no js) :)
AdminCP -> Custom BBCodes -> Add New BBCode
Tag Name: abbr
Replacement: <abbr title="{option}">{param}</abbr>
Example: VBSI
Description: This tag allows you to put a "tooltip" over a text. You can use this for words like UN (United Nations) or WWW (World Wide Web) etc.
Use Option: YES
Settings Screenshot and preview attached.
If the abbr word does not look different than normal text (it should look like the preview image), you can add this code to
admincp > style manager > edit templates > additional.css
abbr {
border-bottom: 1px dotted black;
cursor: help;
}
Note: Tested on vB 4.1.7 but should work for all vB4 and even vB3.
Pretty simple bbcode that uses pure html (no js) :)
AdminCP -> Custom BBCodes -> Add New BBCode
Tag Name: abbr
Replacement: <abbr title="{option}">{param}</abbr>
Example: VBSI
Description: This tag allows you to put a "tooltip" over a text. You can use this for words like UN (United Nations) or WWW (World Wide Web) etc.
Use Option: YES
Settings Screenshot and preview attached.
If the abbr word does not look different than normal text (it should look like the preview image), you can add this code to
admincp > style manager > edit templates > additional.css
abbr {
border-bottom: 1px dotted black;
cursor: help;
}
Note: Tested on vB 4.1.7 but should work for all vB4 and even vB3.