inherit
97216
0
Nov 23, 2024 12:51:52 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Sept 5, 2011 15:19:05 GMT -8
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("boardid",0); removeBoard("boardid",1); //--></script>
Global Footer, near bottom
Syntax: removeBoard(boardid,0/1); 0/1: 0=don't remove whole table, 1= remove whole table
|
|