Post by Me on Apr 13, 2005 15:25:20 GMT
People were saying I havn't made a code for a while so... I made another one again.
Known compatable browsers: IE & Mozzila
Main footer
EDIT: oh yeah preview here
teststest.proboards18.com
Known compatable browsers: IE & Mozzila
Main footer
EDIT: oh yeah preview here
teststest.proboards18.com
<script>
var mTD = document.getElementsByTagName("TD")
for(p=0;p<mTD.length;p++){
if(mTD[p].innerHTML.match(/10 most/i) && mTD[p].width=="60%"){
mTD[p].innerHTML+="</br><font size=1>View the <a href='/index.cgi?action=mlall'>members</a> of this forum.</font>"
}}
for(d=0;d<mTD.length;d++){
if(mTD[d].vAlign=="top" && mTD[d].align=="left" && mTD[d].innerHTML.match(/Guest/i) && mTD[d-3].innerHTML.match(/Users/i)){
var on = mTD[d].innerHTML.split(/<\w\w>/i)[1].split(/font>/i)[0]
var full = (mTD[d].innerHTML.match(/(\d+)\sGuest(s,|,)\s(\d+)/i)) ? Math.floor(Math.floor(RegExp.$1)+Math.floor(RegExp.$3)) : ''
mTD[d-3].innerHTML+='<font size="2" class="cattext" color="">('+full+')</font>'
mTD[d].innerHTML='<font size=1>Guests: '+RegExp.$1+'</br>Members: '+RegExp.$3+'</br>'+on+'</font>'
}}
var jTD = document.getElementsByTagName("TD")
for(i=0;i<jTD.length;i++){
if(jTD[i].vAlign=="top" && jTD[i].align=="left" && jTD[i].width=="60%" && jTD[i].innerHTML.match(/\w{5}\sto/i)){
jTD[i].innerHTML.match(/\w{5}\s\w{5}:\s\S{3}(\d+)/i)
var posts = Math.floor(RegExp.$1)
var topics = jTD[i].innerHTML.split(/total topics: <\w>/i)[1].split(/<\/\w>/i)[0]
var board = 0
for(t=0;t<jTD.length;t++){
if(jTD[t].innerHTML.match(/moder/i) && jTD[t].align=="left"){
board++
}}
var cats = 0
for(y=0;y<jTD.length;y++){
if(jTD[y].className.match(/catbg/i) && !jTD[y].innerHTML.match(/=mark|forum|users o/i)){
cats++
}}
var tottoday = 0;
for(kl=0;kl<jTD.length;kl++){
if(jTD[kl].innerHTML.match(/toda/i) && jTD[kl].className.match(/windowbg2/i) && jTD[kl].vAlign=="middle"){
tottoday++
}}}}
var tab = document.getElementsByTagName("TABLE")
for(p=0;p<tab.length;p++){
if(tab[p].width=="98%" && tab[p].rows[0].cells[0].innerHTML.match(/total/i)){
var row = tab[p].insertRow(0)
cell = row.insertCell(0)
cell.className="windowbg2"
cell.colSpan="2"
cell.align="center"
cell.innerHTML="<font size=1>Total Posts: "+posts+" | Total Topics: "+topics+" | Total Boards: "+board+" | Total Catagories: "+cats+" | Total Updated Boards Today: "+tottoday+"</font>"
}}
for(u=0;u<jTD.length;u++){
if(jTD[u].innerHTML.match(/total/i) && jTD[u].width=="60%"){
rexp = /total topics: <\w>\d+<\/\w> &\w+; - &\w+; total posts: <\w>\d+<\/\w>\s+<\w\w>/i
jTD[u].innerHTML = jTD[u].innerHTML.replace(rexp,"")
}}
for(m=0;m<jTD.length;m++){
if(jTD[m].className.match(/windowbg2/i) && jTD[m].vAlign=="top" && jTD[m].align=="center"){
rexp2 = /(<\w+\s\w+=*1*>|<\w+\s\w+=?1?"1">)/i
jTD[m].innerHTML = jTD[m].innerHTML.replace(rexp2,"<table border='0' width='100%' cellspacing='0' cellpadding='0' bgcolor='000000' class='bordercolor'><tr><td><table cellpadding='4' cellspacing='1' border='0' width='100%'><tr><td class='windowbg2'>")
}else if(jTD[m].innerHTML.match(/total members/i) && jTD[m].width=="40%"){
jTD[m].innerHTML+="</td></tr></table></td></tr></table>"
}}
</script>