Post: vBulletin - Rainbow Usergroup!
05-25-2013, 10:18 PM #1
Harry
Former Staff
(adsbygoogle = window.adsbygoogle || []).push({});
You must login or register to view this content.

Step 1.

Create a usergroup on the Admin Panel, if you don't already have one ready. You can set the Usergroup to have any perms they want. This will not effect the effect in any way.

Step 2.

When you have created the usergroup, use this HTML Markup for the username (FIRST BOX);

    <strong style="color: #FFBC58; rainbow: true;">


Then the second box

    </strong>


Step 3.

Add a new plugin in vBulletin, with the following information;

    Product: vBulletin
Hook Location: fetch_musername
Title: Rainbow
Execution Order: 1
Active: Yes


Step 4.

Use the following code to complete your rainbow usergroups!

    if( strpos( $user['musername'], 'rainbow: true;' ) !== false )
{
$i = $b = 0;

$username = '';


$colours = array('d31539', 'ff7e00', 'ffc20e', '90d125', '187acb', '6f3198', 'ab1d8e'Winky Winky;


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 it looks;

You must login or register to view this content.
(adsbygoogle = window.adsbygoogle || []).push({});

The following 2 users say thank you to Harry for this useful post:

-Luke, ResistTheSun
05-25-2013, 10:38 PM #2
-Luke
Former Staff
Originally posted by .haz View Post
You must login or register to view this content.

Step 1.

Create a usergroup on the Admin Panel, if you don't already have one ready. You can set the Usergroup to have any perms they want. This will not effect the effect in any way.

Step 2.

When you have created the usergroup, use this HTML Markup for the username (FIRST BOX);

    <strong style="color: #FFBC58; rainbow: true;">


Then the second box

    </strong>


Step 3.

Add a new plugin in vBulletin, with the following information;

    Product: vBulletin
Hook Location: fetch_musername
Title: Rainbow
Execution Order: 1
Active: Yes


Step 4.

Use the following code to complete your rainbow usergroups!

    if( strpos( $user['musername'], 'rainbow: true;' ) !== false )
{
$i = $b = 0;

$username = '';


$colours = array('d31539', 'ff7e00', 'ffc20e', '90d125', '187acb', '6f3198', 'ab1d8e'Winky Winky;


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 it looks;

You must login or register to view this content.

Nice guide man, thanks! Smile
05-25-2013, 10:53 PM #3
Harry
Former Staff
Originally posted by Luke View Post
Nice guide man, thanks! Smile


Thank you dude. Much appreciated and I hope that you have fun with this!
06-11-2013, 03:44 PM #4
I remember when I had a test VB site and did this before, looks pretty cool bug lags the site I think.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo