The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
![]()
You have to split the string up into an array. Here's what I got working:
Code:
function rainbow($str) { $array = str_split($str); $i = $b = 0; $str = ''; $colours = array('d31539', 'ff7e00', 'ffc20e', '90d125', '187acb', '6f3198', 'ab1d8e'); while( $i < count($array) ) { if( $b > ( count( $colours ) - 1 ) ) $b = 0; $str .= '<span style="color: #' . $colours[ $b ] . '">' . $array[$i] . '</span>'; ++$b; ++$i; } return $str; } |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|