The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Rainbow (Multicolour) Username for Usergroups Details »» | |||||||||||||||||||||||||||||||
Rainbow (Multicolour) Username for Usergroups
Developer Last Online: May 2012
Info:
This simple hack enables to display usernames for any usergroup in random multicolour (rainbow) effect. Having searched for the same effect for my board unsuccessfully where most of the modifications were for BBCodes, I came up with my own and though of sharing. 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. Installation: Time Required: 2 minutes 1. FTP rainbow.js to clientscript directory on your server in ASCII mode 2. Open headinclude template and add the following code at any reasonable place: Code:
<script type="text/javascript" src="$vboptions[bburl]/clientscript/rainbow.js"></script> Code:
<!-- rainbow text initialize --> <script type="text/javascript"> <!-- rain(); // End --> </script> <!-- rainbow text end --> 5. Put start tag as: Code:
<span class="rainbow"> Code:
</span> Versions: v1.0 - 10 February 2009 - Rainbow text effect for usernames I may think of creating a plugin for this if I get time and people ask for it. But for now it is pretty simple and I would prefer having a hack rather than going for a plugin which would increase the load on your board's performance. A Note: If you are using vbshout.. the effect will not show in the AJAX area. However, it will still display the usernames in the AJAX area and the rainbow effect will be available in shoutbox archive. :up:Added & hidden bonus is that you can use this hack anywhere where you can use HTML code.. in almost any area you can think of! Download Now
Screenshots
Show Your Support
|
Благодарность от: | ||
Pixelduck |
Comments |
#22
|
|||
|
|||
Quote:
Does not work ... I did your edits. You forgot to include Code:
function getElementsByClassName(classname, node) { if(!node) node = document.getElementsByTagName("body")[0]; var a = []; var re = new RegExp('\\b' + classname + '\\b'); var els = node.getElementsByTagName("*"); for(var i=0,j=els.length; i<j; i++) if(re.test(els[i].className)) a.push(els[i]); return a; } The rainbow color does not appear until everything on the page has been loaded.. |
#23
|
|||
|
|||
Quote:
vbb using YUI, this function has been included. http://yui.yahooapis.com/2.6.0/build...event.js?v=381 |
#24
|
|||
|
|||
Is your name showing otherwise? What is the markup for your usergroup? Can you post screenshots?
|
#25
|
|||
|
|||
Ok, installed, but the names for the specific usergroup I'm applying this to shows up as "undefined" for each letter in the usergroup name and the actual member's name. The colors show up fine, so what would cause the letters to show up as "undefined"? Example:
"Administrators" turns into.... "undefinedundefinedundefinedundefinedundefinedunde finedundefinedundefinedundefinedundefinedundefined undefinedundefinedundefined" Very frustrating! Any help? Thanks. EDIT: I think it might be clashing with this addon: https://vborg.vbsupport.ru/showthread.php?t=201385 ~ Sean |
#26
|
|||
|
|||
Quote:
Thanks for letting me know. |
#27
|
||||
|
||||
I have the undefined problem too.
|
#28
|
||||
|
||||
nice , is it possible to have certain colors in this random things as some of the colors would be not really readable in some styles ( dark / white ones ) ?
thanks |
#29
|
|||
|
|||
sumbody on my site got undefindet (in colors) aswell, and sumbody not! so i think it depense on their java version!
|
#30
|
|||
|
|||
Quote:
It is quite possible and very soon I will be uploading the enhancement. |
#31
|
|||
|
|||
thanks
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|