100%
|
Post by Aaron on Mar 4, 2005 15:50:13 GMT -8
Hi-Tech Mini-Profile v.2.0This 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
Last Edit: Mar 8, 2005 17:32:01 GMT -8 by Aaron
|
|
|
Post by ".DeToX." on Mar 4, 2005 18:35:05 GMT -8
Awesome code Naruto.
|
|
Nido
New Member
Posts: 29
|
Post by Nido on Mar 5, 2005 0:43:30 GMT -8
Very nice code
|
|
|
Post by SonicX on Mar 5, 2005 10:40:35 GMT -8
Great code Naruto, great code.
|
|
|
Post by Kenshin on Mar 5, 2005 11:39:38 GMT -8
Great code their, Naruto, but it looks like it stretches the avys pixels =/
Last Edit: Mar 5, 2005 12:25:01 GMT -8 by Kenshin
|
|
|
Post by Kakashi on Mar 5, 2005 12:03:29 GMT -8
uh oh you spelled Naruto's name wrong your in trouble now................ ;D
Anyways great code Naruto -notice how I spell it the right way Conan?
|
|
|
Post by Kenshin on Mar 5, 2005 12:25:24 GMT -8
Meh..it doesn't matter how I spell it
|
|
|
Post by CD on Mar 7, 2005 13:48:37 GMT -8
Looks good Naruto, except, you tell us to put it in all headers, but it only works in board footers.
|
|
100%
|
Post by Aaron on Mar 8, 2005 17:34:04 GMT -8
It doesn't stretch the pixels of the avatar.. I just used an avatar and used stretched it out so you could see it. Looks good Naruto, except, you tell us to put it in all headers, but it only works in board footers. Thanks. Fixed.
|
|
|
Post by Ramirez on Mar 9, 2005 8:19:25 GMT -8
Very nice Naruto! I prefer the older versions layout but this is very nice too! Well done.
|
|