Post by Rosefriend on Nov 25, 2012 7:57:11 GMT -8
I don't know whethern this can be made into a Plugin or whatever...can someone help me please??
Also now that we can make a sub from a sub etc - will it also show the sub subs and if so will they be clickable??
RF
++++++++++++
<script type="text/javascript">
<!--
/*
Sub Boards listing in board cells
Created by ProBoards.com
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.innerHTML.match(/^- (.*)$/) &&
(forumJumpOpts[a+1] && forumJumpOpts[a+1].innerHTML.match(/---
(.*)$/))) {
forumJumpOpts.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.width == "66%" &&
boardCell.getElementsByTagName('a')[0].href.match(board) &&
subboards[c]) {
for (d=0;d<subboards[c].length;d++)
boardCell.innerHTML
+= ((d == 0) ? '<br />' : ',') + ' <a
href="'+subboards[c][d].split("-|-")[1]+'"
class="nav">'+subboards[c][d].split("-|-")[0]+'</a>' ;
c++
}
}
}
// -->
</script>
Also now that we can make a sub from a sub etc - will it also show the sub subs and if so will they be clickable??
RF
++++++++++++
<script type="text/javascript">
<!--
/*
Sub Boards listing in board cells
Created by ProBoards.com
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.innerHTML.match(/^- (.*)$/) &&
(forumJumpOpts[a+1] && forumJumpOpts[a+1].innerHTML.match(/---
(.*)$/))) {
forumJumpOpts.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.width == "66%" &&
boardCell.getElementsByTagName('a')[0].href.match(board) &&
subboards[c]) {
for (d=0;d<subboards[c].length;d++)
boardCell.innerHTML
+= ((d == 0) ? '<br />' : ',') + ' <a
href="'+subboards[c][d].split("-|-")[1]+'"
class="nav">'+subboards[c][d].split("-|-")[0]+'</a>' ;
c++
}
}
}
// -->
</script>