|
Post by Jay on Jan 21, 2005 11:01:08 GMT -8
Yay, its here. After a full day of coding it. Preview Test Accountwoot51.proboards44.comUsername: test Pass: 1 <script type="text/javascript"> /* © tu advanced http://ngmaster.proboards21.com */
// Editables var iName = "G101 Design" // Board Name var iBColor = "929191"; // Border Hex Colour var iAdminColor = "E09004"; // Admin Hex Colour var iGmodColor = "30A327"; // Gmod Hex Colour var iModColor = "EA501B"; // Mod Hex Colour var iMemColor = "2E86BD"; // Member Hex Colour
// No editing beyond this line if(location.href.match(/(.+\d+.{4}\W?$|.+\d+.{14}([\?]?|[#]?\w*)$|.+\d+.{22}\w{3}(out|in2)|read$)/i)) { var iCell = document.getElementsByTagName("td"); for(t=0;t<iCell.length;t++) { with(iCell[t]) { if(width=="60%") if(innerHTML.match(/(Total Topics|Total Posts)/i)) { colSpan = "2"; iCell[t+1].style.display = "none"; iCell[t+2].innerHTML = "<font class='cattext'>Guests and Users Online</font>"; iCell[t-3].innerHTML = "<font class='cattext'>Forum Statistics and Information</font>"; iCell[t-4].innerHTML = "<font class='text1'>Information Center</font>"; var iCats = 0; for(a=0;a<iCell.length;a++) { with(iCell[a]) { if(className=="catbg") if(!iCell[a].innerHTML.match(/Users Online|Forum Statistics|action=markallboardsread/i)) { iCats++; }}} var iBoards = 0; for(b=0;b<iCell.length;b++) { with(iCell[b]) { if(width=="66%") if(className=="windowbg2") { iBoards++; }}} var iTBoards = 0; for(c=0;c<iCell.length;c++) { with(iCell[c]) { if(width=="24%") if(vAlign=="middle") if(innerHTML.match(/<b>Today<\/b>/i)) { iTBoards++; }}} if(iCell[2].innerHTML.match(/, (\d+):(\d+)(\w+)/i)) { var iTime = RegExp.$1+":"+RegExp.$2+RegExp.$3; } if(iCell[2].innerHTML.match(/, (\d+)(\d+)(\w+)/i)) { var iYear = RegExp.$1+RegExp.$2+RegExp.$3; } if(iCell[t+1].innerHTML.match(/Member:\s(<a(.+?)profile(.+?)><b>(.+?)<\/b><\/a>)/i)) { var iNMem = RegExp.$1; } if(iCell[t].innerHTML.match(/by\s(<a(.+?)profile(.+?)><b>(.+?)<\/b><\/a>)/i)) { var iLMem = RegExp.$1; } if(iCell[t].innerHTML.match(/Topic: <b><a href="(.+?)">(.+?)<\/a>/i)) { var iLTopic = RegExp.$1; var iLNTopic = RegExp.$2; } var iPosts = iCell[t].getElementsByTagName("b")[1].innerHTML; var iTopics = iCell[t].getElementsByTagName("b")[0].innerHTML; var iMMem = iCell[t+1].getElementsByTagName("b")[0].innerHTML; var iDay = iCell[2].innerHTML.split(/<br\>/i)[1].split(/,/i)[0];
innerHTML = "<table align='center' width='100%' cellpadding='2' cellspacing='1'><tr><td align='center' valign='top' width='25%'>Total Topics: <b>" + iTopics + "</b></td><td align='center' valign='top' width='25%'>Total Posts: <b>" + iPosts + "</b></td><td align='center' valign='top' width='25%'>Total Boards: <b> " + iBoards + "</b></td><td align='center' valign='top' width='25%'>Total Categories: <b> " + iCats + "</td></tr><tr><td style='border-top: 1px solid #" + iBColor + "; padding-bottom: 0px;' colspan='4'><font size='1'>The current time is " + iTime + ", on the day of " + iDay + ", " + iYear + ". " + iName + " would like to welcome " + iNMem + " as the newest member out of <a href='?action=mlall'><b>" + iMMem + "</b></a> total members at the forum. A total of <b>" + iTBoards + "</b> boards have been updated today. The last updated post was made by " + iLMem + " in the topic - <a href='" + iLTopic + "'><b>" + iLNTopic + "</b></a>.</font></td></tr></table><center><br/><div id='pmtable'></div><br/><font size='1'>[ <font color='" + iAdminColor + "'><b>Administrator</b></font> ] - [ <font color='" + iGmodColor + "'><i>Global Moderator</i></font> ] - [ <font color='" + iModColor + "'>Moderator</font> ] - [ <font color='" + iMemColor + "'>Member</font> ]</font></center>"; }}} var pmTable = document.getElementById("pmtable"); if(iCell[2].innerHTML.match(/Welcome Guest./i)) { pmTable.innerHTML = "<font size='1'>Please <a href='?action=login'>Login</a> or <a href='?action=register'>Register</a> to use this PM Center.</font>"; } else if(iCell[2].innerHTML.match(/Hey, (.+?), you have/i)) { var Name = RegExp.$1; } if(iCell[2].innerHTML.match(/, (\d+) (are|is) new./i)) { var numPM = RegExp.$1; pmTable.innerHTML = "<font size='1'>Hello " + Name + ", you have <a href='?action=im'><b>" + numPM + "</b></a> new PM(s). - [ <a href='?action=imsend'>Compose New</a> ] [ <a href='?action=im'>Inbox</a> ] [ <a href='?action=im&view=outbox'>Outbox</a> ] [ <a href='?action=imprefs'>Preferences</a> ]</font>"; }} </script> These variables will need editing. var iName = "G101 Design" // Board Name var iBColor = "929191"; // Border Hex Colour var iAdminColor = "E09004"; // Admin Hex Colour var iGmodColor = "30A327"; // Gmod Hex Colour var iModColor = "EA501B"; // Mod Hex Colour var iMemColor = "2E86BD"; // Member Hex ColourMain footer only[ Cross-Browser ]
Last Edit: Jan 21, 2005 23:36:28 GMT -8 by Jay
|
|
|
Post by Nomi on Jan 21, 2005 13:09:28 GMT -8
Nice work Jay looks nice but maybe a line break in each sentence would make it better?
|
|
|
Post by bludawg7 on Jan 28, 2005 18:13:50 GMT -8
The colored user name legend is kinda redundant, because in the user online box, it has all the user name colors. The sentences should start on new lines, and maybe you could offer a code that includes the PM info, and one that doesn't have it.
Very nice info table.
|
|