The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Rainbow Username
Hi,
Can anyone tell me why this won't work? It's for creating rainbow usernames but for some reason it doesn't work. Code:
if( strpos( $user['musername'], 'rainbow: true;' ) !== false ) { $i = $b = 0; $username = ''; $colours = array('d31539', 'ff7e00', 'ffc20e', '90d125', '187acb', '6f3198', 'ab1d8e'); 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>'; Code:
<strong style="color: #FFBC58; rainbow: true;"> Code:
</strong> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|