Post by Isa The Great on Jul 26, 2009 10:08:08 GMT -5
Remodel Board Stats
« Thread Started on Aug 30, 2006, 3:38am »
--------------------------------------------------------------------------------
I have a bunch of unreleased codes that i'll be submitting over the next little while. Here's one from late June.
--------------------------------------------------------------------------------
I saw this code on another forum way back in February, and after hours of searching, and being unable to find the forum, i decided to make it myself.
What this code does is it removes the "Posts" coloumn, and combines it with the "Topics" coloumn.
Preview: Clickity
Add To: Global Footers.
Code:
« Thread Started on Aug 30, 2006, 3:38am »
--------------------------------------------------------------------------------
I have a bunch of unreleased codes that i'll be submitting over the next little while. Here's one from late June.
--------------------------------------------------------------------------------
I saw this code on another forum way back in February, and after hours of searching, and being unable to find the forum, i decided to make it myself.
What this code does is it removes the "Posts" coloumn, and combines it with the "Topics" coloumn.
Preview: Clickity
Add To: Global Footers.
Code:
<script type="text/javascript">
<!--
//Remodel Board Stats by Cr0w
//Copyright 2006
//Do not repost without permission
//Variables
var textPos="center" //Alignment of "Threads" and "Posts"(left, right, or center)
var fontClr="000000" //Type in the color you want the text to be
//Do Not Edit Below
var td= document.getElementsByTagName("td");
for(t=0;t<td.length;t++){
if(td[t].innerHTML.match(/Posts/) && td[t].width=="1%"){
td[t].style.display="none";
td[t-1].innerHTML = "Board Stats";
}
}
for(u=0;u<td.length;u++){
if(td[u].colSpan=="5" && !location.href.match(/action=pm/)){
td[u].colSpan="4";
}
}
for(v=0;v<td.length;v++){
if(td[v].width=="66%" && td[v].className=="windowbg2" && td[v].vAlign=="top" && td[v].align=="left"){
var ThreadNum = td[v+1].innerHTML;
var PostNum = td[v+2].innerHTML;
td[v+1].innerHTML = '<div align="'+textPos+'"><font color="'+fontClr+'"><b>Threads: </b>'+ThreadNum+'<br /><b>Posts: </b>'+PostNum+'</font></div>';
td[v+2].style.display="none";
td[v+1].width="11%"
}
}
//-->
</script>