The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
~ Usernames Appearance ~
Hi All,
I was wondering if there was any way in which i could make the username with each letter differant colors..? I had a look at it and couldnt think of a way of doing this, if any of you guys know of a way or can produce a way i would greatly appreciate it. Thanks. |
#2
|
||||
|
||||
Only way I can think of is javascript that looks for certain markup and adds its own.
|
#3
|
|||
|
|||
Quote:
Thanks for replying m8.... how exactly would that work tho ? im pretty new when it comes to working with javascript |
#4
|
||||
|
||||
Myself, I've never written anything like that, but what you need to do is put something like <span class="rainbow"></span> as the markup for the usergroup, then have javascript that runs at the end that does a document.getElementsByTagName("span") to get all the spans, then itterate through them. For each one with className="rainbow", you'd retrieve the innerHTML, break it into letters, add the color markup, and write it back.
Again, I'm a novice when it comes to JS, especially the string stuff you'd need to use; if what I've given you isn't enough, you'll need to find other help. |
#5
|
|||
|
|||
i know what your talking about chris and yea i was wondering the same thing
so far i havent found a way but im still looking, i see it a lot on the ipb board but havent seen it yet on a vb board EDIT: found out how and got it working on my board! |
#6
|
||||
|
||||
Well, no.. this could be done in PHP, too.
PHP Code:
PHP Code:
ie. Code:
omgcolors($bbusername); |
#7
|
|||
|
|||
Or you could use HTML. Depends. Do you want it on everyones username? Or just yours?
Oh and using html like that is not recommended... But its an idea. Some Random Text
|
#8
|
||||
|
||||
On somewhat of a same note, is it possible to have usernames all show in a specific font? I have an odd font that a lot of people most likely do not have on their computer so I was wondering if it is possible if they do not have it loaded.
|
#9
|
|||
|
|||
It may possible to Embed a font. But I couldn't tell you how to do that.
|
#10
|
|||
|
|||
No i would make it for a specific usergroup and hopefully be able to make others for differant usergroups
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|