Post by Ross on Jul 27, 2006 15:22:57 GMT -8
Main Footer
This will hide certain members on the staff list and not count them in the "X Staff Members" section of the info center. Just edit the blue with the usernames; seperate each with a "|" line
<script type="text/javascript">
<!--
/* Remove Certain Members from the Staff List - Ross */
var not_staff = /user=(username1|username2|username3)/i; // List the usernames of the members not to appear on the members list. Seperate each with a "|" line
if(location.href.match(/action=members&view=staff/)) {
var td = document.getElementsByTagName('td');
for(i=0; i<td.length; i++) {
if(td.item(i).className == 'windowbg' && td.item(i).parentNode.cells.length == '6' && td.item(i).innerHTML.match(not_staff)) {
td.item(i).parentNode.style.display = 'none';
}
}
} else if(location.href.match(/\.com\/?(index.cgi)?\??(&?action=home)?(#\w+)?$/)) {
var td = document.getElementsByTagName('td');
for(i=td.length-1; i>0; i--) {
if(td.item(i).className == 'catbg' && td.item(i).colSpan == '2' && td.item(i).innerHTML.match(/Users Online/)) {
if(td.item(i+2).innerHTML.match(/(\d+)\sStaff\sMembers?,\s(\d+)\sMembers?/i)) {
var cur_staff = RegExp.$1;
var cur_mem = RegExp.$2;
var user_array = not_staff.toString().split(/user=\(/)[1].split(/\)\/?i?$/)[0].split(/\|/);
for(u=0; u<user_array.length; u++) {
if(td.item(i+2).innerHTML.match(new RegExp('user='+user_array))) {
cur_staff--;
cur_mem++;
}
}
if(cur_staff == 0) {
td.item(i+2).innerHTML = td.item(i+2).innerHTML.replace(/\d+\sStaff\sMembers?,\s\d+\sMember(s)?/i, cur_mem+' Member$1');
} else {
td.item(i+2).innerHTML = td.item(i+2).innerHTML.replace(/\d+\sStaff\sMember(s)?,\s\d+\sMember(s)?/i, cur_staff + ' Staff Member$1, ' + cur_mem+' Member$2');
}
}
break;
}
}
}
//-->
</script>
This will hide certain members on the staff list and not count them in the "X Staff Members" section of the info center. Just edit the blue with the usernames; seperate each with a "|" line
<script type="text/javascript">
<!--
/* Remove Certain Members from the Staff List - Ross */
var not_staff = /user=(username1|username2|username3)/i; // List the usernames of the members not to appear on the members list. Seperate each with a "|" line
if(location.href.match(/action=members&view=staff/)) {
var td = document.getElementsByTagName('td');
for(i=0; i<td.length; i++) {
if(td.item(i).className == 'windowbg' && td.item(i).parentNode.cells.length == '6' && td.item(i).innerHTML.match(not_staff)) {
td.item(i).parentNode.style.display = 'none';
}
}
} else if(location.href.match(/\.com\/?(index.cgi)?\??(&?action=home)?(#\w+)?$/)) {
var td = document.getElementsByTagName('td');
for(i=td.length-1; i>0; i--) {
if(td.item(i).className == 'catbg' && td.item(i).colSpan == '2' && td.item(i).innerHTML.match(/Users Online/)) {
if(td.item(i+2).innerHTML.match(/(\d+)\sStaff\sMembers?,\s(\d+)\sMembers?/i)) {
var cur_staff = RegExp.$1;
var cur_mem = RegExp.$2;
var user_array = not_staff.toString().split(/user=\(/)[1].split(/\)\/?i?$/)[0].split(/\|/);
for(u=0; u<user_array.length; u++) {
if(td.item(i+2).innerHTML.match(new RegExp('user='+user_array))) {
cur_staff--;
cur_mem++;
}
}
if(cur_staff == 0) {
td.item(i+2).innerHTML = td.item(i+2).innerHTML.replace(/\d+\sStaff\sMembers?,\s\d+\sMember(s)?/i, cur_mem+' Member$1');
} else {
td.item(i+2).innerHTML = td.item(i+2).innerHTML.replace(/\d+\sStaff\sMember(s)?,\s\d+\sMember(s)?/i, cur_staff + ' Staff Member$1, ' + cur_mem+' Member$2');
}
}
break;
}
}
}
//-->
</script>