Back to vBulletin 4.x Add-ons

Glow BB Code - Glowing Text
Mod Version: 1.00, by BirdOPrey5

vB Version: 4.0.x Rating: (10 votes - 4.90 average) Installs: 55
Released: 30 Jul 2010 Last Update: Never Downloads: 0
Not Supported Re-usable Code Translations  

WARNING: There is a "Cosmetic Exploit" in this BBCode.
Someone who knows what they are doing can use it to add arbitrary CSS attributes to the text such as custom font sizes and background colors. It in no way affects site security but can be annoying if your users use it improperly. Use at your own risk.

This is a simple bbcode that if searched for you can find in various forms but in my search it appears never to have been written out as a bbcode mod for 4.x, so here it is... No 'programming' was needed for this, Aside from the button I don't consider it 'mine' anymore than the <font> tag is mine because I may use it from time to time. I am simply releasing this for those who may be searching for bb codes and not the general forum.

Shadow (the css behind this) is not supported by Internet Explorer 7 or 8, it will hopefully be part of 9 though. This works fine in Chrome, Firefox, Safari, and Opera.
Update: A work-around has been added for IE compatibility!

Demo: http://www.juot.net/forums/showthread.php?p=826544&styleid=1#post826544

Add a new BBCode

Title: Glow
BB Code Tag Name: glow
Replacement:
Code:
<!--[if IE]>
<div style="filter:progid:DXImageTransform.Microsoft.Glow(color={option}, strength=1);width:100%">{param}</div>
<![endif]-->
<![if !ie]>
<span style="text-shadow: {option} 0px 0px 5px;">{param}</span>
<![endif]>
Example: [glow="red"]test glow[/glow]
Description: This code makes text "Glow" (Actually a shadow attribute)
Use Option: Yes
Button Image: (optional)
Remove Tag If Empty: Yes
All Disable Options: No

You may get a warning that says:
The following BB Code replacement may not be properly formed. All HTML attributes should be enclosed within double quotes.
You can safely hit "Continue" this appears to be a bug in the VB4 series.

You can use standard color names in the option such as red, blue, green, yellow, etc...
You can also use hex color codes preceded by the # sign for exact colors, such as #0000FF
http://www.december.com/html/spec/colorhex.html

Please mark as installed if you use this.
View My Profile for more BB Code Enhancements- they work on all versions.

Screenshot- Note: for some reason in the screen capture the green glow is barely visible. The effect is much nicer in the live demo above.
&d=1278546342

Download

No files for download.


vblts.ru supports vBulletin®, 2022-2024