The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
![]()
Heya guys, hoping someone can help me with this. Basically we want to add two toned donator to forum as shown below.
![]() I'm using the following code to achieve this Code:
if( strpos( $user['musername'], 'tone: true;' ) !== false ) { $i = $b = 0; $username = ''; $colours = array('009B48','FF7900'); while( $i < strlen( $user['username'] ) ) { if( $b > ( count( $colours ) - 1 ) ) $b = 0; $username .= '<span style="color: #' . $colours[ $b ] . '">' . $user['username'][$i] . '</span>'; ++$b; ++$i; } $user['musername'] = '<strong>' . $username . '</strong>'; } How could I seperate these colors eg Green first blending into the orange as shown below ![]() Any help is greatly appreciated |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|