vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   New BB tag to do rainbow text... (https://vborg.vbsupport.ru/showthread.php?t=47509)

nymyth 01-09-2003 04:49 PM

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

KuraFire 01-09-2003 04:52 PM

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 ^_^)

Areku 01-09-2003 08:10 PM

Quote:

Originally posted by DrkFusion
Hehe cool little hack :)

Drkfusionwillinstallthis

Can you, DarkFusion, or anyone, explain me how to get the rainbow to act like HERE and not like the original hack? the original hack is lack of green and blueish colors of the rainbow...

Tu!

Zzed 01-09-2003 08:17 PM

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.

John 01-09-2003 08:46 PM

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)

John 01-09-2003 08:48 PM

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);
}

And replace with:

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);
}


Areku 01-09-2003 08:51 PM

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!!

John 01-09-2003 08:53 PM

Quote:

Originally posted by Areku
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!!

No idea!

This code is pretty clever stuff, I can't figure it out!

Areku 01-09-2003 08:55 PM

What a weirdo!

Full range of colors is active here!!

[rainbow]supercalifragilisticumspialidociousisthewordiuseto testthisrainbowthing[/rainbow]

Areku 01-09-2003 08:56 PM

Oh!

It didn't work!!

DarkFusion, what did u use!? Manually entered that sentence colorfull?


All times are GMT. The time now is 01:08 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
  • Page Generation 0.01171 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete