Post by Kahless on Nov 1, 2007 22:50:04 GMT -5
The Kronos Designs V2 infocenter
Source: Open
Main Footer
<script type="text/javascript">
<!--
/*
Coded and Designed by Kahless
webAddict Open Source rules apply
*/
var gCell = document.getElementsByTagName("td");
var gTable = document.getElementsByTagName("table");
var tUpdated = 0;
var tAdmins = 0
var tGmods = 0
var tMods = 0
var tab = '&nb'+'sp;'+'&nb'+'sp;'+'&nb'+'sp;'+'&nb'+'sp;'+'&nb'+'sp;';
if(location.href.match(/\.com(\/|.+cgi(\?|#.+|\?\w+=home)?)?$/i)) {
for(t=0;t<gCell.length;t++) {
if(gCell[t].className.match(/catbg/i) && gCell[t].innerHTML.match(/Forum Statistics/i)){
var totalpm = (gTable[0].innerHTML.match(/you have <a href=".+">(\d+) messages?<\/a>, (\d+) (are|is) new./i)) ? RegExp.$1: '';
var newpm = (gTable[0].innerHTML.match(/you have <a href=".+">(\d+) messages?<\/a>, (\d+) (are|is) new./i)) ? RegExp.$2: '';
if(pb_username == 'Guest')
{
var pmInfo = 'Welcome Guest, please <a href="/index.cgi?action=login">Login</a> or <a href="/index.cgi?action=register">Register</a>.';
} else {
var pmInfo = 'You have a total of ' + totalpm + ' PMs. A total of ' + newpm + ' are new.<br />Your display name is ' + pb_displayname + ', your user name is '+ pb_username + '.';
}
var topics = (gCell[t+2].innerHTML.match(/Total Topics: (.+?) /i) ? RegExp.$1: 'error').replace(',','');
var posts = (gCell[t+2].innerHTML.match(/Total Posts: (.+?)<br/i) ? RegExp.$1: 'error').replace(',','');
var members = (gCell[t+2].innerHTML.match(/Total Members: <a href="(.+?)>(.+?)<\/a><br/i)) ? RegExp.$2: '';
var newmem = (gCell[t+2].innerHTML.match(/Newest Member: (.+?)<\/a>/i)) ? RegExp.$1: '';
var lpost = gCell[t+2].innerHTML.match(/last updated topic: (<.+?>.+?<\/a>) by (.+?) \((.+?)\)/i) ? RegExp.$1: '';
var lpby = gCell[t+2].innerHTML.match(/last updated topic: (<.+?>.+?<\/a>) by (.+?) \((.+?)\)/i) ? RegExp.$2: '';
var lptime = gCell[t+2].innerHTML.match(/last updated topic: (<.+?>.+?<\/a>) by (.+?) \((.+?)\)/i) ? RegExp.$3: '';
var ttopics = parseInt(topics);
var tposts = parseInt(posts);
var tmembers = parseInt(members);
var postsmem = Math.round(parseInt(tposts)/parseInt(tmembers));
var topicsmem = Math.round(parseInt(ttopics)/parseInt(tmembers));
}
if(gCell[t].innerHTML.match(/Most users online was (\d+), (.+?)<br/i))
{
var moston = RegExp.$1;
var mosttime = RegExp.$2;
}
if(gCell[t].className.match(/catbg/i) && gCell[t].innerHTML.match(/Users Online/i))
{
var memon = gCell[t+2].innerHTML.split(/<br\s?\/?>/i)[1];
var mem = (gCell[t+2].innerHTML.match(/(\d+) Member/i)) ? RegExp.$1: '';
var guest = (gCell[t+2].innerHTML.match(/(\d+) Guest/i)) ? RegExp.$1: '';
var staff = (gCell[t+2].innerHTML.match(/(\d+) Staff Member/i)) ? RegExp.$1: '';
for(i=0;i<gCell[t+2].getElementsByTagName("a").length;i++)
{
if(gCell[t+2].getElementsByTagName('a').className == "group1")
{
tAdmins ++;
}
if(gCell[t+2].getElementsByTagName('a').className.match(/group(2|5)/i))
{
tGmods ++;
}
if(gCell[t+2].getElementsByTagName('a').className.match(/group(3|8|9)/i))
{
tMods ++;
}
}
}
if(gCell[t].className.match(/catbg/i) && gCell[t].innerHTML.match(/Today's Birthdays/i))
{
var tBdays = gCell[t+2].innerHTML.match(/(.+) birthdays? today/i) ? RegExp.$1 : 'No birthdays today';
var mBdays = gCell[t+2].innerHTML.split(/<br>/i)[1];
gCell[t+2].innerHTML = ' '+tBdays+' birthdays: '+mBdays;
gCell[t].colSpan="2"
gCell[t+1].style.display='none';
}
if(gCell[t].className.match(/catbg/i) && gCell[t].innerHTML.match(/Forum Statistics/i))
{
gCell[t+1].style.display='none';
gCell[t].colSpan='1';
gCell[t+2].innerHTML = '<table width="100%" class="bordercolor" cellspacing="1" cellpadding="2"><tr><td class="windowbg"><div width="90%" style="border-bottom: black 1px dashed; padding: 2px 0px 2px 3px;"align="center">Total Posts: ' + tposts + tab +'-' + tab + 'Total Topics: ' + ttopics + tab + '-' + tab + 'Total Categories: 6 ' + tab + '-' + tab + 'Total Boards: 17</div><table cellpadding="3" cellspacing="0"style="border-bottom: black 1px dashed;"><tr><td class="windowbg" width="20%">A total of ' + tUpdated + ' boards have been updated today.</td><td class="windowbg" width="80%" style="border-left: black 1px dashed; padding: 5px 2px 4px 2px;" align="left"> We would like to welcome ' + newmem + '</a> as the newest member of FORUM NAME<br /> We have a grand total of <a href="/index.cgi?action=members">' + members + '</a> members. <br/> Each member has made an average of '+postsmem+' posts and ' +topicsmem+' topics.</td></tr></table><table width="100%" cellpadding="3" cellspacing="0"><tr><td align="left" class="windowbg" width="50%" style="border-right: black 1px dashed;">The last updated topic on FORUM NAME was ' + lpost + '.<br />The last member to post was ' +lpby+ '.<br />The last post was at ' + lptime + '.</td><td valign="top" class="windowbg">' + pmInfo + '</td></tr></table></td></tr></table>';
}
if(gCell[t].className.match(/catbg/i) && gCell[t].innerHTML.match(/Users Online/i))
{
gCell[t+1].style.display='none';
gCell[t].colSpan='1';
gCell[t+2].innerHTML = '<table width="100%" class="bordercolor" cellspacing="1" cellpadding="4"><tr><td rowspan="2" class="windowbg" width="20%">Administrators: '+tAdmins+'<br />Global Moderators: '+tGmods+'<br />Moderators: '+tMods+'<br />Members: '+mem+'<br />Guests: '+guest+'</td><td height="10" class="windowbg">The most users online was ' + moston + ', this was at ' + mosttime + '.</td></tr><tr><td class="windowbg" valign="top">' + memon + '</td></tr></table>';
gCell[t].parentNode.parentNode.width = '684';
}
}
}
//-->
</script>
Source: Open
Main Footer
<script type="text/javascript">
<!--
/*
Coded and Designed by Kahless
webAddict Open Source rules apply
*/
var gCell = document.getElementsByTagName("td");
var gTable = document.getElementsByTagName("table");
var tUpdated = 0;
var tAdmins = 0
var tGmods = 0
var tMods = 0
var tab = '&nb'+'sp;'+'&nb'+'sp;'+'&nb'+'sp;'+'&nb'+'sp;'+'&nb'+'sp;';
if(location.href.match(/\.com(\/|.+cgi(\?|#.+|\?\w+=home)?)?$/i)) {
for(t=0;t<gCell.length;t++) {
if(gCell[t].className.match(/catbg/i) && gCell[t].innerHTML.match(/Forum Statistics/i)){
var totalpm = (gTable[0].innerHTML.match(/you have <a href=".+">(\d+) messages?<\/a>, (\d+) (are|is) new./i)) ? RegExp.$1: '';
var newpm = (gTable[0].innerHTML.match(/you have <a href=".+">(\d+) messages?<\/a>, (\d+) (are|is) new./i)) ? RegExp.$2: '';
if(pb_username == 'Guest')
{
var pmInfo = 'Welcome Guest, please <a href="/index.cgi?action=login">Login</a> or <a href="/index.cgi?action=register">Register</a>.';
} else {
var pmInfo = 'You have a total of ' + totalpm + ' PMs. A total of ' + newpm + ' are new.<br />Your display name is ' + pb_displayname + ', your user name is '+ pb_username + '.';
}
var topics = (gCell[t+2].innerHTML.match(/Total Topics: (.+?) /i) ? RegExp.$1: 'error').replace(',','');
var posts = (gCell[t+2].innerHTML.match(/Total Posts: (.+?)<br/i) ? RegExp.$1: 'error').replace(',','');
var members = (gCell[t+2].innerHTML.match(/Total Members: <a href="(.+?)>(.+?)<\/a><br/i)) ? RegExp.$2: '';
var newmem = (gCell[t+2].innerHTML.match(/Newest Member: (.+?)<\/a>/i)) ? RegExp.$1: '';
var lpost = gCell[t+2].innerHTML.match(/last updated topic: (<.+?>.+?<\/a>) by (.+?) \((.+?)\)/i) ? RegExp.$1: '';
var lpby = gCell[t+2].innerHTML.match(/last updated topic: (<.+?>.+?<\/a>) by (.+?) \((.+?)\)/i) ? RegExp.$2: '';
var lptime = gCell[t+2].innerHTML.match(/last updated topic: (<.+?>.+?<\/a>) by (.+?) \((.+?)\)/i) ? RegExp.$3: '';
var ttopics = parseInt(topics);
var tposts = parseInt(posts);
var tmembers = parseInt(members);
var postsmem = Math.round(parseInt(tposts)/parseInt(tmembers));
var topicsmem = Math.round(parseInt(ttopics)/parseInt(tmembers));
}
if(gCell[t].innerHTML.match(/Most users online was (\d+), (.+?)<br/i))
{
var moston = RegExp.$1;
var mosttime = RegExp.$2;
}
if(gCell[t].className.match(/catbg/i) && gCell[t].innerHTML.match(/Users Online/i))
{
var memon = gCell[t+2].innerHTML.split(/<br\s?\/?>/i)[1];
var mem = (gCell[t+2].innerHTML.match(/(\d+) Member/i)) ? RegExp.$1: '';
var guest = (gCell[t+2].innerHTML.match(/(\d+) Guest/i)) ? RegExp.$1: '';
var staff = (gCell[t+2].innerHTML.match(/(\d+) Staff Member/i)) ? RegExp.$1: '';
for(i=0;i<gCell[t+2].getElementsByTagName("a").length;i++)
{
if(gCell[t+2].getElementsByTagName('a').className == "group1")
{
tAdmins ++;
}
if(gCell[t+2].getElementsByTagName('a').className.match(/group(2|5)/i))
{
tGmods ++;
}
if(gCell[t+2].getElementsByTagName('a').className.match(/group(3|8|9)/i))
{
tMods ++;
}
}
}
if(gCell[t].className.match(/catbg/i) && gCell[t].innerHTML.match(/Today's Birthdays/i))
{
var tBdays = gCell[t+2].innerHTML.match(/(.+) birthdays? today/i) ? RegExp.$1 : 'No birthdays today';
var mBdays = gCell[t+2].innerHTML.split(/<br>/i)[1];
gCell[t+2].innerHTML = ' '+tBdays+' birthdays: '+mBdays;
gCell[t].colSpan="2"
gCell[t+1].style.display='none';
}
if(gCell[t].className.match(/catbg/i) && gCell[t].innerHTML.match(/Forum Statistics/i))
{
gCell[t+1].style.display='none';
gCell[t].colSpan='1';
gCell[t+2].innerHTML = '<table width="100%" class="bordercolor" cellspacing="1" cellpadding="2"><tr><td class="windowbg"><div width="90%" style="border-bottom: black 1px dashed; padding: 2px 0px 2px 3px;"align="center">Total Posts: ' + tposts + tab +'-' + tab + 'Total Topics: ' + ttopics + tab + '-' + tab + 'Total Categories: 6 ' + tab + '-' + tab + 'Total Boards: 17</div><table cellpadding="3" cellspacing="0"style="border-bottom: black 1px dashed;"><tr><td class="windowbg" width="20%">A total of ' + tUpdated + ' boards have been updated today.</td><td class="windowbg" width="80%" style="border-left: black 1px dashed; padding: 5px 2px 4px 2px;" align="left"> We would like to welcome ' + newmem + '</a> as the newest member of FORUM NAME<br /> We have a grand total of <a href="/index.cgi?action=members">' + members + '</a> members. <br/> Each member has made an average of '+postsmem+' posts and ' +topicsmem+' topics.</td></tr></table><table width="100%" cellpadding="3" cellspacing="0"><tr><td align="left" class="windowbg" width="50%" style="border-right: black 1px dashed;">The last updated topic on FORUM NAME was ' + lpost + '.<br />The last member to post was ' +lpby+ '.<br />The last post was at ' + lptime + '.</td><td valign="top" class="windowbg">' + pmInfo + '</td></tr></table></td></tr></table>';
}
if(gCell[t].className.match(/catbg/i) && gCell[t].innerHTML.match(/Users Online/i))
{
gCell[t+1].style.display='none';
gCell[t].colSpan='1';
gCell[t+2].innerHTML = '<table width="100%" class="bordercolor" cellspacing="1" cellpadding="4"><tr><td rowspan="2" class="windowbg" width="20%">Administrators: '+tAdmins+'<br />Global Moderators: '+tGmods+'<br />Moderators: '+tMods+'<br />Members: '+mem+'<br />Guests: '+guest+'</td><td height="10" class="windowbg">The most users online was ' + moston + ', this was at ' + mosttime + '.</td></tr><tr><td class="windowbg" valign="top">' + memon + '</td></tr></table>';
gCell[t].parentNode.parentNode.width = '684';
}
}
}
//-->
</script>