The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
New BB tag to do rainbow text... Details »» | |||||||||||||||||||||||||
This is a fairly simple hack that allows you to create a new BB tag to do
rainbow colors with text. It is only a few lines and the only file affected by it is admin/functions.php. You can see a sample output in this thread: http://www.ls1.com/forums/showthread...hreadid=225576 Note1: This hack has been done and tested on VB 2.2.9 Note2: Using other BB tags within the rainbow tags will convert the underlying HTML code in to rainbow text. Note3: You can find the revised and BB code friendly version in this post Note4: You can find the version that displays the full spectrum of colors in this post. Show Your Support
|
Comments |
#17
|
||||
|
||||
|
#18
|
||||
|
||||
Quote:
I can probably fix it. But it is not something that I can do any time soon. |
#19
|
|||
|
|||
i installed this hack, but i dont see anything.......whats going on??
Peace ps..i mean is there supposed to be an option that u press like php/list etc?? |
#20
|
||||
|
||||
heh, pretty cool. I'll install it just for fun. :P
|
#21
|
||||
|
||||
Quote:
|
#22
|
|||
|
|||
well the code works....when i put in [ rainbow]text here[ /rainbow]
my question is do i have to do this manually each time....????or is there a drop down menu im missing?? Peace |
#23
|
||||
|
||||
oh god....
*winces* What a lovely idea.. make the sourcecode of already huge threads even twice as big! :up: Use five hundred font tags in a page! :up: Double your bandwidth usages if people use your lovely (</sc>) hack! :up::up: ugh... (sorry, just felt like pointing that out ^_^) |
#24
|
|||
|
|||
Quote:
Tu! |
#25
|
||||
|
||||
Ok, here is the BB code friendly version.
Note: If you have installed the original version, you need to back out of it and replace it with this one. |
#26
|
||||
|
||||
I made a couple of changes to this - I didn't much like the black background, so I went for the dark glow option. (See attached screenshot)
|
#27
|
||||
|
||||
To use glow like I did, simply modify the code from the hack in the first post:
Find (in functions.php): Code:
// ###################### Startdorainbow ####################### function dorainbow($code) { $len = strlen($code); $buffer = "<table><tr><td bgcolor=\"#000000\">"; $mul = 255/$len; for($x = 0;$x < $len;$x++) { $color_h1 = 255*sin($x/($len/3)); $color_h2 = $mul * $x; $color = sprintf("#FF%02X%02X", $color_h1, $color_h2); $buffer .= "<font color=\"$color\">"; $buffer .= substr($code,$x,1); $buffer .= "</font>"; } $buffer .= "</td></tr></table>"; return($buffer); } Code:
// ###################### Startdorainbow ####################### function dorainbow($code) { $len = strlen($code); $buffer = "<table style=\"filter:glow(color=black, strength=2)\"><tr><td>"; $mul = 255/$len; for($x = 0;$x < $len;$x++) { $color_h1 = 255*sin($x/($len/3)); $color_h2 = $mul * $x; $color = sprintf("#FF%02X%02X", $color_h1, $color_h2); $buffer .= "<font color=\"$color\" face=\"Verdana\" size=2><b>"; $buffer .= substr($code,$x,1); $buffer .= "</b></font>"; } $buffer .= "</td></tr></table>"; return($buffer); } |
#28
|
|||
|
|||
FAR FAR Much nicer now with the glow effect!
However how do i add the FULL range of colors and not just the red/yellow/pink ones? Blue and green are missing from the spectrum!! |
#29
|
||||
|
||||
Quote:
This code is pretty clever stuff, I can't figure it out! |
#30
|
|||
|
|||
What a weirdo!
Full range of colors is active here!! [rainbow]supercalifragilisticumspialidociousisthewordiuseto testthisrainbowthing[/rainbow] |
#31
|
|||
|
|||
Oh!
It didn't work!! DarkFusion, what did u use!? Manually entered that sentence colorfull? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|