|
<script type="text/Javascript"> // Redirect Boards by Chris // Do not redistribute without permisison of the creator
function redBoard(boardid,xurl){ if(!(!location.href.match(/action=/i) || location.href.match(/action=(home|view_board)/i))) return false;
for(a=0;a<document.links.length;a++){ if(document.links[a].href.indexOf("board_id="+boardid) != -1){ document.links[a].href = xurl; if(document.links[a].parentNode.parentNode.nodeName.toLowerCase() == "td"){ document.links[a].parentNode.parentNode.onclick = function(){ location.href = xurl; } } } } }
// EDIT HERE redBoard(boardid,"NEW URL"); </script>
This code will allow you to make specific boards redirect to external or other links.
redBoard(boardid,"NEW URL"); This line allows you to set boards that will redirect. The first part which says "boardid" is the numerical ID for the board you want redirecting. To get the board's ID, go to view the board. In the URL, it should say "board_id=###" where the red "###" is the actual board's ID. (Note: It shouldn't be that long unless you have over 100 boards)
Now, replace "NEW URL" with the URL of the page where you want it to redirect.
Place the module in your main footers if you want main page boards only. Global footers if you want to affect sub-boards.
|
|
|
|