The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
username color change
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 |
#2
|
|||
|
|||
Your using the code from my rainbow username plugin: https://vborg.vbsupport.ru/showthread.php?t=296239
Just add the two colours and voila! |
Благодарность от: | ||
MarkFL |
#3
|
|||
|
|||
Quote:
Thanks |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|