Post by coolcoolcool on Jul 25, 2006 18:33:01 GMT -8
Ha, my second code since I have been back in only an hour.
Note: Does not work with CD's category splitter, Click < try that instead
Crossbrowser: Yes
Location: Main footer
Enjoy.
This will be included in my next admin editable code.
Note: Does not work with CD's category splitter, Click < try that instead
Crossbrowser: Yes
Location: Main footer
<script language="javascript">
<!--
/* Customized Main Page
Code Created by coolcoolcool
Do not edit or remove this header*/
// Remove on/off icons? Put yes or no
var on_off_icon="yes";
// Remove Posts/Topics Count? Put yes or no
var topics_posts = "yes"
// Do not edit below this line unless you know what you are doing
var td = document.getElementsByTagName("td");
var i = document.getElementsByTagName("I");
for(var talics = 0;talics<i.length;talics++){
if(i[talics].innerHTML.match(/moderat/i)){
var moderator = i[talics].innerHTML;
var text = document.createElement("font");
text.innerHTML= "&nb" + "sp;- " + moderator;
text.size="-2";
i[talics].parentNode.parentNode.firstChild.appendChild(text);
i[talics].style.display="none";
}}
if(on_off_icon.match(/yes/i)){
for(var rem = 0;rem<td.length;rem++){
if(td[rem].className.match(/windowbg/i) && td[rem].width=="8%"){
td[rem].style.display="none";
}
if(td[rem].colSpan=="5" || td[rem].colSpan=="2" && td[rem].innerHTML.match(/forum n/i)){
td[rem].colSpan = td[rem].colSpan-1;
}}}
for(var newloop=0;newloop<td.length;newloop++){
if(td[newloop].width=="24%" && td[newloop].innerHTML.match(/by/i)){
td[newloop].innerHTML = td[newloop].innerHTML.replace("on ","Date: ");
td[newloop].innerHTML = td[newloop].innerHTML.replace("by ","Author: ");
td[newloop].innerHTML = td[newloop].innerHTML.replace("in ","Thread: ");
}}
if(topics_posts.match(/yes/i)){
for(var loopypants=0;loopypants<td.length;loopypants++){
if(td[loopypants].innerHTML.match(/\d+?/i) && td[loopypants].width=="1%" && td[loopypants].className.match(/windowbg/i) && td[loopypants].align=="center" || td[loopypants].className.match(/titlebg/i) && td[loopypants].align=="center" && td[loopypants].innerHTML.match(/(posts|topics)/i)){
td[loopypants].style.display="none";
}
if(td[loopypants].width=="24%" || td[loopypants].innerHTML.match(/forum name/i) || td[loopypants].className.match(/windowbg2/i) && td[loopypants].align=="left" && td[loopypants].width=="66%"){
td[loopypants].colSpan = td[loopypants].colSpan+1;
}}}
-->
</script>
Enjoy.
This will be included in my next admin editable code.