Post by Aaron on Mar 4, 2005 23:46:10 GMT
Hi-Tech Mini-Profile v.2.0
This is a new look from v.1.2, but this one was re-coded.
Preview: HERE
[ Cross - browser ]
<script type="text/javascript">
<!--
/*
Hi-Tech Mini-Profile v.2.0
Created by Naruto
hatakeforum.proboards30.com/index.cgi
*/
// Border Color of Mini-Profile
var bordcol = "#000000";
// Status Online / Offline Colors
var Online = "#006600";
var Offline = "#FF0000";
// Female / Male Icons
var FemaleIcon = "http://216.40.206.219/boardimages/female.gif";
var MaleIcon = "http://216.40.206.219/boardimages/male.gif";
var getProf = document.getElementsByTagName("Font");
for(i=0;i<getProf.length;i++) {
if(getProf.size=="-1" && getProf.parentNode.parentNode.innerHTML.match(/Posts: /i)) {
var Profile = getProf.parentNode.parentNode;
if(navigator.appName.match(/Microsoft/i)) {
var Info = Profile.innerHTML.split("<B"+"R>");
}
else {
var Info = Profile.innerHTML.split("<b"+"r>");
}
if(Profile.innerHTML.match(/>member is <b>(.+?)<\/b>/i)) {
var userstatus = RegExp.$1;
}
if(Info[4].match("online")) {
var userstatus ="<font color='"+Online+"'>Online</font>";
}
if(Info[4].match("offline")) {
var userstatus = "<font color='"+Offline+"'>Offline</font>";
}
if(Info[12].match("female")) {
var gender = "<img src='"+FemaleIcon+"' alt='Female' border='0' />";
}
else
if(Info[12].match("male")) {
var gender = "<img src='"+MaleIcon+"' alt='Male' border='0' />";
}
else {
var gender = "-";
}
if(Profile.innerHTML.match(/Posts: (\d+)/i)) {
var posts = RegExp.$1;
Profile.innerHTML = '<table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="'+bordcol+'"><tr><td><table width="100%" cellpadding="3" cellspacing="1" border="0"><tr><td width="4%" class="titlebg">'+gender+'</td><td width="96%" class="titlebg">'+Info[0]+'</a></td></tr><tr><td width="100%" colspan="2" class="windowbg" align="center"><font size="1"><b>'+Info[1]+'</b></font></td></tr><tr><td width="100%" colspan="2" class="windowbg" align="center">'+Info[2]+'</td></tr><tr><td width="100%" colspan="2" class="windowbg2" align="center" height="50">'+Info[5]+'<br /><font size="1"><i>'+Info[7]+'</i></font></td></tr><tr><td width="100%" colspan="2" class="windowbg" align="center"><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td class="windowbg" align="left"><font size="1">Status:</font></td><td class="windowbg" align="right"><font size="1">'+userstatus+'</font></td></tr></table></td></tr><tr><td width="100%" colspan="2" class="windowbg" align="center">'+Info[9]+Info[10]+'</td></tr></table></td></tr></table><br /><table width="100%" cellpadding="3" cellspacing="0" border="0" style="border: 1px '+bordcol+' solid;"><tr><td class="windowbg2"><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="left"><font size="1">Posts:</font></td><td align="right"><font size="1">'+posts+'</font></td></tr></table></td></tr></table>';
}
}}
//-->
</script>
ALL FOOTERS
PLEASE FOLLOW INSTRUCTIONS BEFORE YOU INSTALL:
All custom titles must be something like this:
Custom Title<br /><img src='URL' border='0'><img src='URL' border='0'><img src='URL' border='0'><img src='URL' border='0'><img src='URL' border='0'>
This won't work:
Custom Title<br><img src='URL' border='0'><img src='URL' border='0'><img src='URL' border='0'><img src='URL' border='0'><img src='URL' border='0'>
Edit the variables listed in the code to fit what your forum.
Example:
// Border Color of Mini-Profile
var bordcol = "#000000";
You would edit the #000000 to the color of the border you want. It's not that hard, just read what's after the "//" before each edittable variable.
I hope this code works for you... and I hope you read the installation intructions carefully.
Enjoy!#nosmileys
This is a new look from v.1.2, but this one was re-coded.
Preview: HERE
[ Cross - browser ]
<script type="text/javascript">
<!--
/*
Hi-Tech Mini-Profile v.2.0
Created by Naruto
hatakeforum.proboards30.com/index.cgi
*/
// Border Color of Mini-Profile
var bordcol = "#000000";
// Status Online / Offline Colors
var Online = "#006600";
var Offline = "#FF0000";
// Female / Male Icons
var FemaleIcon = "http://216.40.206.219/boardimages/female.gif";
var MaleIcon = "http://216.40.206.219/boardimages/male.gif";
var getProf = document.getElementsByTagName("Font");
for(i=0;i<getProf.length;i++) {
if(getProf.size=="-1" && getProf.parentNode.parentNode.innerHTML.match(/Posts: /i)) {
var Profile = getProf.parentNode.parentNode;
if(navigator.appName.match(/Microsoft/i)) {
var Info = Profile.innerHTML.split("<B"+"R>");
}
else {
var Info = Profile.innerHTML.split("<b"+"r>");
}
if(Profile.innerHTML.match(/>member is <b>(.+?)<\/b>/i)) {
var userstatus = RegExp.$1;
}
if(Info[4].match("online")) {
var userstatus ="<font color='"+Online+"'>Online</font>";
}
if(Info[4].match("offline")) {
var userstatus = "<font color='"+Offline+"'>Offline</font>";
}
if(Info[12].match("female")) {
var gender = "<img src='"+FemaleIcon+"' alt='Female' border='0' />";
}
else
if(Info[12].match("male")) {
var gender = "<img src='"+MaleIcon+"' alt='Male' border='0' />";
}
else {
var gender = "-";
}
if(Profile.innerHTML.match(/Posts: (\d+)/i)) {
var posts = RegExp.$1;
Profile.innerHTML = '<table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="'+bordcol+'"><tr><td><table width="100%" cellpadding="3" cellspacing="1" border="0"><tr><td width="4%" class="titlebg">'+gender+'</td><td width="96%" class="titlebg">'+Info[0]+'</a></td></tr><tr><td width="100%" colspan="2" class="windowbg" align="center"><font size="1"><b>'+Info[1]+'</b></font></td></tr><tr><td width="100%" colspan="2" class="windowbg" align="center">'+Info[2]+'</td></tr><tr><td width="100%" colspan="2" class="windowbg2" align="center" height="50">'+Info[5]+'<br /><font size="1"><i>'+Info[7]+'</i></font></td></tr><tr><td width="100%" colspan="2" class="windowbg" align="center"><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td class="windowbg" align="left"><font size="1">Status:</font></td><td class="windowbg" align="right"><font size="1">'+userstatus+'</font></td></tr></table></td></tr><tr><td width="100%" colspan="2" class="windowbg" align="center">'+Info[9]+Info[10]+'</td></tr></table></td></tr></table><br /><table width="100%" cellpadding="3" cellspacing="0" border="0" style="border: 1px '+bordcol+' solid;"><tr><td class="windowbg2"><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="left"><font size="1">Posts:</font></td><td align="right"><font size="1">'+posts+'</font></td></tr></table></td></tr></table>';
}
}}
//-->
</script>
ALL FOOTERS
PLEASE FOLLOW INSTRUCTIONS BEFORE YOU INSTALL:
All custom titles must be something like this:
Custom Title<br /><img src='URL' border='0'><img src='URL' border='0'><img src='URL' border='0'><img src='URL' border='0'><img src='URL' border='0'>
This won't work:
Custom Title<br><img src='URL' border='0'><img src='URL' border='0'><img src='URL' border='0'><img src='URL' border='0'><img src='URL' border='0'>
Edit the variables listed in the code to fit what your forum.
Example:
// Border Color of Mini-Profile
var bordcol = "#000000";
You would edit the #000000 to the color of the border you want. It's not that hard, just read what's after the "//" before each edittable variable.
I hope this code works for you... and I hope you read the installation intructions carefully.
Enjoy!#nosmileys