|
Post by iPokemon on Sept 5, 2011 17:57:22 GMT -5
Code Name: Remove Sub-Board from Board Index Crossbrowser: Yes Description: Will remove a sub-board or two from the board index page as you desire.
<script type="text/javascript"><!-- /* Remove Sub-Board from Board Index by iPokemon http://bytemecodes.proboards.com/ Copyright 2011 Do not claim as own or repost */ function removeBoard(boardid,rem){ if(pb_action == "boardindex"){ var links = document.getElementsByTagName('a'); for(x=0;x<links.length;x++){ if(links[x].href.match("board="+boardid)){ if(rem){ links[x].parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.style.display="none"; links[x].parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.nextSibling.style.display="none"; } else { links[x].parentNode.parentNode.parentNode.style.display="none"; } } } } } removeBoard("codeindex",0); removeBoard("resourceindex",0); //--></script>
Global Footer, near bottom
Syntax: removeBoard(boardid,0/1); 0/1: 0=don't remove whole table, 1= remove whole table
|
|