|
Post by chexdex on Apr 14, 2006 13:52:50 GMT -8
Forum URL: charmed411p3.proboards75.com
This code Sub-Boards in Board Cell, it said to put in the Main Footers. I did that and it still didn't work, Can anyone help me out?
<script> // Sub-Boards in Board Cell by CDDude229 // Code may not be redistributed without permission from the creator.
var board_text = "<b>Sub-Boards:</b> "; // Text that will be shown before the actual sub-board listings
var aTD = document.getElementsByTagName("TD"); var aSE = document.getElementsByTagName("SELECT");
if(document.title.match(/ Home/i) && !location.href.match(/(action=(admin|view|modify)|board=)/i)){ for(a=0;a<aSE.length;a++){ if(aSE[a].innerHTML.match(/Forum Jump/i)){ var forumClass = aSE[a].options; break; } }
for(a=0;a<aTD.length;a++){ if(aTD[a].innerHTML.match(/board=/i) && aTD[a].width=="66%" && aTD[a].className.match(/windowbg/i) && aTD[a].innerHTML.match(/\((\d+) sub-boar(d|ds)\)/i)){ var boardName = aTD[a].getElementsByTagName("A")[0].href.split("board=")[1]; var subNum = parseInt(RegExp.$1); for(b=0;b<forumClass.length;b++){ if(forumClass[b].value.match(new RegExp("board="+boardName,"i"))){ for(c=1;c<=subNum;c++){ if(c==1){ aTD[a].innerHTML+="<br><font size='1'>"+board_text+"<a href='"+forumClass[b+c].value+"'>"+forumClass[b+c].innerHTML.split("--- ")[1]+"</a></font>"; } else { aTD[a].innerHTML +=", <font size='1'><a href='"+forumClass[b+c].value+"'>"+forumClass[b+c].innerHTML.split("--- ")[1]+"</a></font>"; } } } } if(!aTD[a].innerHTML.match(/i>Moderator/i)){ var aTDBR = aTD[a].getElementsByTagName("BR"); aTDBR[aTDBR.length-1].style.display ="none"; } aTD[a].innerHTML = aTD[a].innerHTML.replace(/\((\d+) sub-boar(d|ds)\)/i,""); } else if(aTD[a].innerHTML.match(/Info Center/i) && aTD[a].className == "bordercolor"){ break; } } } </script>
|
|
|
Post by CD on Apr 15, 2006 15:08:37 GMT -8
Admin Area > General Settings
Set it to show the number of sub-boards in the board cell.
|
|
|
Post by chexdex on Apr 16, 2006 13:15:27 GMT -8
okay thanks but it got all messed up it was saying certain sub board were in different boards I turned it off b/c it make my board all messed up. Can you tell me why?
Last Edit: Apr 16, 2006 13:18:24 GMT -8 by chexdex
|
|
|
Post by CD on Apr 18, 2006 18:27:54 GMT -8
|
|