inherit
Beware the ever changing head
33588
0
Nov 18, 2023 0:32:44 GMT -8
Ross
19,039
November 2004
elindir
|
Post by Ross on Apr 7, 2007 14:41:02 GMT -8
What this code does is it lets you choose the order groups on the staff members page appear in. Edit the numbers in red, each should be seperated by a comma. These are the groups IDs in the order you want them to appear. Note, it won't fully function if your staff are on more than one page. Main Footer<script type="text/javascript"> <!-- /* Reorder Groups on Staff Page By Ross of 101support.proboards43.com */ var staff_order = [1, 13, 2, 11, 3, 4]; if(location.href.match(/action=members&view=staff/)) { var holder = false; var rows = new Array(); var td = document.getElementsByTagName('td'); for(i=0; i<td.length; i++) { if(td.item(i).colSpan == 6 && td.item(i).className == 'titlebg' && td.item(i).height == 18) { var holder = td.item(i).parentNode.parentNode; } else if(holder && td.item(i).className == 'windowbg' && td.item(i).firstChild.firstChild.className.match(/^group(\d+)$/)) { var parent = td.item(i).parentNode rows.push(new Array(RegExp.$1, parent)); holder.removeChild(parent); i-=6; } } for(g=0; g<staff_order.length; g++) { for(r=0; r<rows.length; r++) { if(rows[r][0] == staff_order[g]) { holder.insertBefore(rows[r][1], holder.lastChild); } } } } //--> </script>
|
|