SMF Support > SMF 2.0.x Support
Members Multi-Name Color??
hcfwesker:
Try replacing the code in your global footer with this and see.
--- Code: ---<script type="text/javascript">
/*
Multi-Colored Display Names for SMF by wildgoosespeeder
v2.2
Based from the JavaScript codes of
Two Colored Display Names by Code Dragon and Boccy109
from ProBoards
*/
var z = 0;
var e = "";
var a = document.getElementsByTagName('a');
var span = document.getElementsByTagName('span');
var memberscolors = [];
// [user id, display name, color 1, color 2, etc...]
memberscolors[z++] = ["1","ArkCreatiiion","FF0000","FF0000","000000","00FF00","00FF00","00FF00","00FF00","00FF00","00FF00","00FF00"];
memberscolors[z++] = ["2","ArkInvaliid","FF0000","FF0000","000000","00FF00","00FF00","00FF00","00FF00","00FF00","00FF00","00FF00"];
for(loop = 0; loop < memberscolors.length; loop++)
{
e = "";
for(c = 0; c < memberscolors[loop][1].length; c++)
{
e += "<b><font color='#" + memberscolors[loop][(c % (memberscolors[loop].length - 2)) + 2] + "'>" + memberscolors[loop][1].charAt(c) + "</b></font>";
}
for(href = 0; href < a.length; href++)
{
if(a[href].href.match(new RegExp("action=profile;u=" + memberscolors[loop][0] + "$")) && a[href].innerHTML == memberscolors[loop][1])
{
a[href].innerHTML = e;
}
}
for(stylecheck = 0; stylecheck < span.length; stylecheck++)
{
if(span[stylecheck].innerHTML == memberscolors[loop][1])
{
span[stylecheck].innerHTML = e;
}
}
}
</script>
--- End code ---
♦PulsiveForums♦:
Thanks ^.^ worked like a charm! ,you wouldn't happen to know how to get it to work in the shoutbox would you?
im using the "SMFPacks Shoutbox 1.0.4"
Also i wan't to change the name colors without corrupting anything...
Like:
ArkCreatiiion
A = Gray
r = yellow
k = gray
Cr = yellow
ea = gray
t = yellow
iii = gray
on = yellow
&
Like:
ArkInValid
A = aqua
rk = gray
In = aqua
va = gray
l = aqua
i = gray
d = aqua
hcfwesker:
Nah, its just for use on the forum where display names are. you'd have to ask in the shoutbox support topic.
to change colors, just use an html color chart like this : http://websafecolorcodes.com/color-charts/color-chart-hexagon-chart/
and just place a color in the order you want the colors to be for each letter in the name, replacing the other html colors in the code.
memberscolors[z++] = ["1","ArkCreatiiion","FF0000","FF0000","000000","00FF00","00FF00","00FF00","00FF00","00FF00","00FF00","00FF00"];
XHIBIT911:
Why are you stealing the content of my website and adding it to yours like some common thief ?
You're even piggybacking my images.
Here's your test site: http://thenextprodigy.comxa.com/index.php
And I wonder where you got your images from: http://pshomesource.com
XHIBIT911:
WOW you even stole my damn disclaimer word for word:
"PLAYSTATION", "PS3", "Home" and "PlayStation3" are registered trademarks of SCEA and SCEE. The "Home" icon is a trademark of SCEA. All titles, content, publisher names, trademarks, artwork, and associated imagery are trademarks and/or copyright material of their respective owners. All rights reserved. No infringement is intended. TheNextProdigy is a fan site and not an official PlayStation Home website. TheNextProdigy.com
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version