We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
[code]Categorys and forums in....; By rick15465
Topic Started: Jan 25 2010, 10:58 AM (148 Views)
Reid
Member Avatar
È una trappola!

This topic has been moved from our official support board.

Originally posted by: rick15465
[code
 
Categorys and forums in....]Author:me
Preview:board statictis

put it in footers

Code:
 
<script>
var boardname= "Your Forum Name"
var catagoreyno = 0
divs = document.getElementsByTagName("div");

for(x=0;x<divs.length;x++){
if(divs[x].className =="maintitle"){
catagoreyno++;
}
}

var forumno = 0
tds = document.getElementsByTagName("td");

for(k=0;k<tds.length;k++){
if(tds[k].className =="row4" ){
links = tds[k].getElementsByTagName("a")
if(links.length > 0){
if(links[0].href.match("showforum")){
forumno++;
}
}

}
}

catagoreyno --
td = document.getElementsByTagName("td");

for (t=0; t<td.length; t++){
if(td[t].className=="row4" && td[t].innerHTML.match("Our members have made a total of")){
td[t].innerHTML = td[t].innerHTML + "<br>" + boardname + " has " + catagoreyno + " Catagories " + "and " + forumno + " forums."; }
}



</script>


Change your forum name.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Codes & Modifications · Next Topic »
Add Reply