Rainbow (Multicolour) Username for Usergroups
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. 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
rainbowUsernames_v1.0.zip (127.4 KB, 1200 downloads) Screenshots |