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)

Zzed 01-07-2003 10:00 PM

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.

Chris M 01-08-2003 07:19 PM

Looks good;)

Satan

Floris 01-08-2003 07:41 PM

Please add your hack in a .txt file rather then showing it like this. Thank you.

DrkFusion 01-08-2003 08:59 PM

Hehe cool little hack :)

Drkfusionwillinstallthis

vdinh 01-08-2003 09:52 PM

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 ?

bitbender 01-09-2003 03:14 AM

[high]* bitbender *clicks install* - clean as a whistle on my 2.2.6 :)[/high]

Zzed 01-09-2003 04:39 AM

Quote:

Originally posted by vdinh
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 ?
I wonder if you can point me to a thread in your forums so that I can see what you are seeing. :)

Boofo 01-09-2003 06:23 AM

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. :)

Zzed 01-09-2003 06:52 AM

Quote:

Originally posted by Boofo
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. :)

Thank you Boofo. :)

Here is how you fix the font size. ;)

Change this line in dorainbow()

PHP Code:

$buffer .= "<font color=\"$color\">"

To this:

PHP Code:

$buffer .= "<font color=\"$color\" face=\"verdana,arial,helvetica\" size=\"2\">"


Boofo 01-09-2003 07:04 AM

That was quick. Thank you. :)

Here is what I changed to make the background transparent.

PHP Code:

$buffer "<table><tr><td bgcolor=\"\">"

It works, but is it the correct way to do it? :)


All times are GMT. The time now is 03:09 PM.

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.01177 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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