![]() |
Rainbow (Multicolour) Username for Usergroups
1 Attachment(s)
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 --> 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! |
Nice first installed!!
|
Many Thanks! If it is working for you.. would you mind posting your board's URL so that other's can see also?
|
Thats very unique and cool, thanks
you can use this also for forum categories |
Hm... it would be cooler if it has a gradient animation effect :)
I like it but it looks too bright on my white background so can hardly see... :( |
Quote:
Quote:
|
^ Thanks, that'll be so awesome :)
|
Looks pretty kewl :)
|
Quote:
|
nice mod dude! how can i change the colors to my liking?
|
are people enjoying this mod? Do the users have a choice if they want to use color or not?
|
Replace this code for rainbow.js. ^^ It'll be cool...
Code:
/** Code:
<span class="rainbow"> Code:
<!-- rainbow text initialize --> https://vborg.vbsupport.ru/external/2009/02/22.jpg I have same as ideas by my sister, she asked me take her nickname has rainbow color... ^^ |
Quote:
Quote:
As for whether people are enjoying this or not, it has been just second day that I posted the hack and now it has got 12 installations. Is that bad?? :) |
Quote:
Thanks for this and this is equally good. However, if you talk about performance, which is really a concern for boards, it is about executing 1 function against 4, and in total 27 lines of code against 35. Which one do you think would be faster? :D |
In my code, I FIND by Classname (with the key=rainbow), it'll run ONCE time.
Code:
var b = getElementsByClassName(classname); Code:
var aspans = document.getElementsByTagName('span'); |
installed, very nice. Let's see what the users think
|
uninstalled...it widened the screen for some users, they were not happy.
|
Quote:
|
both codes are very fine. will do them over the week end.
|
i installed it but its showing my name as undefined??? y is that? what am i doing wrong?
|
Quote:
Does not work ... I did your edits. You forgot to include Code:
function getElementsByClassName(classname, node) { The rainbow color does not appear until everything on the page has been loaded.. |
Quote:
vbb using YUI, this function has been included. http://yui.yahooapis.com/2.6.0/build...event.js?v=381 |
Quote:
|
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 |
Quote:
Thanks for letting me know. |
I have the undefined problem too.
|
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 |
sumbody on my site got undefindet (in colors) aswell, and sumbody not! so i think it depense on their java version!
|
Quote:
It is quite possible and very soon I will be uploading the enhancement. |
thanks
|
Quote:
|
Ok I got the above to work, but now I'm having a problem with some of my members names does not catch it... Any idea what can be causing this?
|
Quote:
|
1 Attachment(s)
my problemm
|
Users using IE are saying it doesn't work for them. It comes up undefined....
Please sort this. |
i have a problem with this hack
i installed everything like in the description ... but aber i change the tag in the usergroup -> instead of the username is there "undefinedundefinedundefinedundefinedundefined " what is going wrong or where is the probleme ?! in IE i have the big problem - in firefox it works fine - what i have done wrong ?! :(((( |
Quote:
|
Quote:
|
has the coder no idea to fix the problem ?!
|
This is not compatible with usergroup legend hack.. I am working on making it a full blown mod so that it would change all the required templates.
|
All times are GMT. The time now is 06:14 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|