![]() |
New BB tag to do rainbow text...
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. :D 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. |
Looks good;)
Satan |
Please add your hack in a .txt file rather then showing it like this. Thank you.
|
Hehe cool little hack :)
Drkfusionwillinstallthis |
Cool hack :) ... However, I have some problem with some unicode characters. They will show as #xxxx, not as the real unicode charaters. Would you please point out what should I do ?
|
[high]* bitbender *clicks install* - clean as a whistle on my 2.2.6 :)[/high]
|
Quote:
|
Zzed, I figured out how to take the black background out but how do I make the rainbow text the same size that is set for the message? It is bigger than the regular message text.
Great hack, by the way. :) |
Quote:
Here is how you fix the font size. ;) Change this line in dorainbow() PHP Code:
PHP Code:
|
That was quick. Thank you. :)
Here is what I changed to make the background transparent. PHP Code:
|
is there a way to add this using the bb code adding option in the acp or do i have to edit my functions :(
|
Boofo, You can actually leave out the bgcolor stuff and just use <td> by itself. ;)
corsacrazy, unfortunately to the best of my knowledge this is the only way to do it. :( |
Quote:
|
Quote:
|
very nice m8
|
|
Quote:
I can probably fix it. But it is not something that I can do any time soon. :( |
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?? |
heh, pretty cool. I'll install it just for fun. :P
|
Quote:
|
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 |
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 ^_^) |
Quote:
Tu! |
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. |
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)
|
To use glow like I did, simply modify the code from the hack in the first post:
Find (in functions.php): Code:
// ###################### Startdorainbow ####################### Code:
// ###################### Startdorainbow ####################### |
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!! |
Quote:
This code is pretty clever stuff, I can't figure it out! |
What a weirdo!
Full range of colors is active here!! [rainbow]supercalifragilisticumspialidociousisthewordiuseto testthisrainbowthing[/rainbow] |
Oh!
It didn't work!! DarkFusion, what did u use!? Manually entered that sentence colorfull? |
Yes, he did (try quoting his post!)
|
I did quote his, still stunned he spent that much time!!
However there must be a way to add blue and green to the rainbow of this hack, isn't it?? |
There's always a way, but the maths would be more complicated.
|
Guys, please also check out this post for the BB code friendly version ;)
https://vborg.vbsupport.ru/showthrea...386#post340386 |
supercalifragilisticumspialidociousisthewordiusetotestthisrainbowthing
Also jsut a reminder to people you will use J.Eovies mod, keep in mind that the glow style can be viewed by users using IE 5.5+ I am not sure about other browsers. Bythewayitsasecret :speechless: |
So how many $$$ to reveal your trick Dfusion? ;)
|
Quote:
|
By me a HiveMail Liscense :P and I will reveal to you LOL
|
U're too xpensive! ;)
|
Quote:
|
All times are GMT. The time now is 07:54 AM. |
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:
|