Post by Peter on Oct 31, 2004 12:28:59 GMT
Code created by fla5hba5h[/color]
board footers
This code changes the colors of the person's username (only on the posting pages like here)
Configuration:
Colors:
okay, see these lines:
var defaultgendercolor="green"
var malegendercolor="blue"
var femalegendercolor="pink"
Well, just change those colors. The variable names should be pretty easy to understand. Default gender is if they haven't defined their gender.
example:
var defaultgendercolor="gray"
var malegendercolor="black"
var femalegendercolor="white"
They can also be hex codes.
Gender Images:
Also, for this to work, the gender images, if they are custom, have to be named "male.gif" and "female.gif"
If they aren't, and you really, really don't feel like changing their names and your Customize Board Images, find this line:
if (gender.match("male.gif")) {defaultgendercolor=malegendercolor}
if (gender.match("female.gif")) {defaultgendercolor=femalegendercolor}
and change it to this:
if (gender.match("male gender image")) {defaultgendercolor=malegendercolor}
if (gender.match("female gender image")) {defaultgendercolor=femalegendercolor}
if you don't have your custom gender images, don't even worry about it.
<script>
// Gender Username Colors
// by fla5hba5h
// http://fla5hba5h.topcities.com
if (location.href.indexOf("action=display") != -1)
{
var tds = document.getElementsByTagName('td');
for (a=0;a<tds.length;a++)
{
if (tds[a].width=="20%"&&tds[a].innerHTML.match("Posts: "))
{
var defaultgendercolor="green"
var malegendercolor="blue"
var femalegendercolor="pink"
if (tds[a].innerHTML.match("Gender")) {
var gender=tds[a].innerHTML.split("Gender: ")[1].split("<"+"BR>")[0]
if (gender.match("male.gif")) {defaultgendercolor=malegendercolor}
if (gender.match("female.gif")) {defaultgendercolor=femalegendercolor}
}
var changeusercolor=tds[a].innerHTML.split("username=")[1].split(/"/i)[0]
tds[a].innerHTML=tds[a].innerHTML.replace(changeusercolor,changeusercolor+" style='color:"+defaultgendercolor+"'")
}}}
</script>
board footers
This code changes the colors of the person's username (only on the posting pages like here)
Configuration:
Colors:
okay, see these lines:
var defaultgendercolor="green"
var malegendercolor="blue"
var femalegendercolor="pink"
Well, just change those colors. The variable names should be pretty easy to understand. Default gender is if they haven't defined their gender.
example:
var defaultgendercolor="gray"
var malegendercolor="black"
var femalegendercolor="white"
They can also be hex codes.
Gender Images:
Also, for this to work, the gender images, if they are custom, have to be named "male.gif" and "female.gif"
If they aren't, and you really, really don't feel like changing their names and your Customize Board Images, find this line:
if (gender.match("male.gif")) {defaultgendercolor=malegendercolor}
if (gender.match("female.gif")) {defaultgendercolor=femalegendercolor}
and change it to this:
if (gender.match("male gender image")) {defaultgendercolor=malegendercolor}
if (gender.match("female gender image")) {defaultgendercolor=femalegendercolor}
if you don't have your custom gender images, don't even worry about it.