inherit
97216
0
Nov 26, 2024 13:53:14 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Sept 5, 2011 15:19:44 GMT -8
Code Name: Redirect Board Link Crossbrowser: Yes Description: Will replace the board link on the main page with one that you specify. Handy for putting index sub-boards and redirecting them to the thread. In use here at ByteMe!
<script type="text/javascript"><!-- /* Redirect Board Link by iPokemon http://bytemecodes.proboards.com/ Copyright 2011 Do not repost or claim as your own */ function redirectBoard(boardid,to){ if(pb_action == "home"){ var links = document.getElementsByTagName('a'); for(x=0;x<links.length;x++){ if(links[x].href.match("board="+boardid)){ links[x].href = to; } } } } redirectBoard("general","index.cgi?action=home"); //--></script>
Just use it like redirectBoard("boardid","newlink"); Main Footer
|
|