Post by Malagrond on Feb 25, 2009 15:27:42 GMT -8
[CB] Mala's Board Re-model v1.0
Preview: Click Here
Bugs fixed:
2/26 - Fixed bug that modified posts within threads.
Global Footers
~Mala
Preview: Click Here
Bugs fixed:
2/26 - Fixed bug that modified posts within threads.
Global Footers
<script>
<!--
/*
Mala's Board Re-model v1.0 by Malagrond
*/
var imgurl = "http://gradients.proboards.com/4080B0DADADA30.gif"; // Image used to divide Announcements from normal threads.
var imgH = "30"; // The desired height for the above divider, in pixels.
if(location.href.match(/board=/g) && !location.href.match(/thread=/gi)){
var allTds = document.getElementsByTagName("td");
for(var i=0;i<allTds.length;i++){
if(allTds[i].width=="48%" && allTds[i].className.match(/catbg/gi)){
allTds[i].firstChild.innerHTML="Threads";
allTds[i].nextSibling.nextSibling.nextSibling.nextSibling.style.display="none";
allTds[i].nextSibling.nextSibling.nextSibling.style.display="none";
allTds[i].nextSibling.nextSibling.style.display="none";
allTds[i].nextSibling.style.display="none";
allTds[i].setAttribute("colspan","5");
allTds[i].width = "93%";
}
if(allTds[i].innerHTML.match(/thread=/gi) && allTds[i].width=="48%"){
allTds[i].innerHTML += "<br /><table border=0 width='100%' align='center'><tr><td style='text-align:left;'><i>Started by</i> "+allTds[i].nextSibling.innerHTML+"</td><td style='text-align:center;'><i>("+allTds[i].nextSibling.nextSibling.firstChild.firstChild.innerHTML+" replies - Viewed "+allTds[i].nextSibling.nextSibling.nextSibling.innerHTML+" times.)</i></td><td style='text-align:right;'>Last Post: "+allTds[i].nextSibling.nextSibling.nextSibling.nextSibling.innerHTML+"</td></tr></table>";
allTds[i].nextSibling.nextSibling.nextSibling.nextSibling.style.display="none";
allTds[i].nextSibling.nextSibling.nextSibling.style.display="none";
allTds[i].nextSibling.nextSibling.style.display="none";
allTds[i].nextSibling.style.display="none";
allTds[i].setAttribute("colspan","5");
allTds[i].width = "93%";
}
if(allTds[i].className.match(/windowbg2/gi) && allTds[i].height=="5"){
allTds[i].innerHTML += '<img src="'+imgurl+'" width="100%" height="'+imgH+'" />';
allTds[i].style.padding = "0px";
}
if(allTds[i].width=="5%"){
allTds[i].nextSibling.style.display="none";
allTds[i].setAttribute("colspan","2");
if(allTds[i].innerHTML.match(/\.gif/gi) && allTds[i].width=="5%"){
allTds[i].innerHTML = allTds[i].nextSibling.innerHTML+"<span> </span>"+allTds[i].innerHTML;
allTds[i].width = "3.5%";
}
i+=1;
}
}
}
-->
</script>
~Mala