The Arcive of vBulletin Modifications Site. |
|
[bmw] Rainbow (Gradient) Username for Usergroups Details »»
|
|||||||||||||||||||||||||||||||||
|
[bmw] Rainbow (Gradient) Username for Usergroups
Developer Last Online: Dec 2013
This simple hack enables to display usernames for any usergroup in rainbow effect.
Please note that since it is based on pure HTML and JavaScript and in no way uses any BBcode of VB function/hooks, this is compatible with all versions of vBulletin. You can use it as HTML with: <span class="rainbow"> your content </span> Installation: Time Required: 3 minutes 1. Upload clientscript directory (included rainbow.js) on your server in ASCII mode 2. Open headinclude template and add the following code at any reasonable place: Code: Code:
<script type="text/javascript" src="$vboptions[bburl]/clientscript/rainbow.js"></script> Code: Code:
<!-- rainbow text initialize -->
<script type="text/javascript">
<!--
nickmausac('rainbow');
// End -->
</script>
<!-- rainbow text end -->
4.1 -Put start tag as:You're Done! Enjoy!! Thanks: - jim bumgardner (http://krazydad.com/makecolors.php) - n.sinha.p (Instruction of your mods, my English's bad )Download Now
Screenshots
Show Your Support
|
|||||||||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
does this one work in IE?
|
|
#3
|
|||
|
|||
|
works under IE but all usernames have exactly the same colors in order, no variations.
|
|
#4
|
|||
|
|||
|
Please check it, with your IE
=> http://mytam.info/forum/member.php?u=50973 If u got problem, plz PM or post your link, I'll check & fix 2u. |
|
#5
|
|||
|
|||
|
Close tag </span> (step. 4.2) ? in Usergroup
|
|
#6
|
|||
|
|||
|
Quote:
|
|
#7
|
|||
|
|||
|
yes sir. The names are all in different colors, not the problem. It's just that they all follow the same color span, they start with light green and go from there, same pattern for all.
|
|
#8
|
|||
|
|||
|
they look exactly like your screen shot. I remember the first Rainbow script would vary the colors in the names each time you refreshed,
|
|
#9
|
|||
|
|||
|
If you want to variations in your color, you can do follow instruction below:
Edit file rainbow.js: find Line 44: Code:
function nickmausac(classname){
var txtValue = "";
var b = getElementsByClassName(classname);
for ( var i = 0; i < b.length; i++ ) {
txtValue = colorText(b[i].innerHTML,1);
b[i].innerHTML = txtValue;
}
}
Change :Result: Code:
function nickmausac(classname){
var txtValue = "";
var b = getElementsByClassName(classname);
for ( var i = 0; i < b.length; i++ ) {
txtValue = colorText(b[i].innerHTML,i);
b[i].innerHTML = txtValue;
}
}
|
|
#10
|
|||
|
|||
|
thank you
|
![]() |
|
|