inherit
110757
0
Jul 27, 2019 20:08:36 GMT -8
Matt [Malfoy250]
Magical Mayhem <3
2,369
September 2007
malfoy250
|
Post by Matt [Malfoy250] on Aug 11, 2008 6:11:49 GMT -8
Board URL: founder4.proboards52.comProblem: I have been using the 'Sub-Boards listed in board cell' code on my forum since sometime in February -- but for some reason some of the links are not only showing on their apropriate parents but on different ones. For example, the sub boards for my 'St. Mungos' board are also in the 'Ground Floor' board. I have checked my coding and it is in the Main Footers as it should be, and I even moved it up a bit -- but still the problem continues. Any advice?
|
|
#eb7100
1480
0
1
May 20, 2024 22:30:58 GMT -8
Craig
208,898
September 2001
cmdynasty
|
Post by Craig on Aug 11, 2008 7:00:00 GMT -8
That's the problem with codes that aren't tested properly <script type="text/javascript"> <!--
/* Sub Boards listing in board cells Created by ProBoards.com http://support.proboards.com - for support. */
if(location.href.match(/\/(index\.cgi(\?(action=home)?|#\w+)?)?$/i)) {
var exclude = ["archive"]; var boardCell = document.getElementsByTagName('td'); var boards = new Array (); var subboards = new Array (); var forumJumpOpts = document.getElementById('forumjump').getElementsByTagName('option'); var boardNumber = 0; var c = 0;
for (a=0;a<forumJumpOpts.length;a++) { if (forumJumpOpts[a].innerHTML.match(/^- (.*)$/) && (forumJumpOpts[a+1] && forumJumpOpts[a+1].innerHTML.match(/--- (.*)$/))) { forumJumpOpts[a].value.match(/board\=(.*)$/); if (exclude.join("-").match(new RegExp("(^|-)"+RegExp.$1+"(-|$)","i"))) continue; boards.push(RegExp.$1); subboards[boardNumber] = new Array (); while (forumJumpOpts[a+1] && forumJumpOpts[a+1].innerHTML.match(/--- (.*)$/)) { subboards[boardNumber].push(RegExp.$1+'-|-'+forumJumpOpts[a+1].value); a++; } boardNumber++; } }
for (b=6;b<boardCell.length;b++) { var board = 'board='+boards[c]+'$'; if (boardCell[b].width == "66%" && boardCell[b].getElementsByTagName('a')[0].href.match(board) && subboards[c]) { for (d=0;d<subboards[c].length;d++) boardCell[b].innerHTML += ((d == 0) ? '<br />[ <font size="1">Sub Boards:</font>' : ',') + ' <a href="'+subboards[c][d].split("-|-")[1]+'" class="nav">'+subboards[c][d].split("-|-")[0]+'</a>' + ((d == subboards[c].length-1) ? ' ]' : ''); c++ }
} }
// --> </script>
|
|