Post by Ross on Jan 7, 2006 18:11:04 GMT -5
Global Footer
Remember back in 'v3' how Moderators would only appear as Moderators inside the boards they moderate? Well this simulates that by removing the moderator rank and replacing it with the equivilent member rank. Just edit where indicated, and follow the notes at the bottom
<script type="text/javascript">
<!--
/* strip mod rank by ross
do not repost without permission */
star = 'http://proboards8.com/images/star.gif'; //URL of the member star
var mod = [];
mod[0] = ['username','(board1|board2|board3)'];
mod[1] = ['username','(board1|board2|board3)'];
mod[2] = ['username','(board1|board2|board3)'];
var rank = [];
rank[0] = ['New Member',1,0];
rank[1] = ['Junior Member',2,50];
rank[2] = ['Full Member',3,100];
rank[3] = ['Senior Member',4,250];
rank[4] = ['God',5,500];
td = document.getElementsByTagName("td");
for(i = td.length-1; i>0; i--) {
for(g=0; g<mod.length; g++) {
if(location.href.match(/board=/) && !location.href.match(new RegExp('board='+mod[g][1])) && td.width == '20%' && td.innerHTML.match(/group/) && td.innerHTML.match(mod[g][0]) && td.parentNode.innerHTML.match(/Posts: (.+?)</)) {
posts = parseInt(RegExp.$1.replace(/,/g,''));
newRank = document.createElement('div');
for(r=rank.length-1; r>-1; r--) {
if(posts > rank[r][2]) {
newRank.appendChild(document.createElement('br'));
newRank.appendChild(document.createTextNode(rank[r][0]));
newRank.appendChild(document.createElement('br'));
for(z=0; z<rank[r][1]; z++) {
newRank.appendChild(document.createElement('img'));
newRank.lastChild.src = star;
}
newRank.appendChild(document.createElement('br'));
break;
}
}
td.innerHTML = td.innerHTML.replace(/<br>(.+?)<br><img(.+?)<br>/i,newRank.innerHTML);
}
}
}
//-->
</script>
Red: Here you need to list the usernames of each moderator and the boards which they moderate. Seperate the board IDs with a '|' line and increase the underlined number by 1 each time.
Blue: Here is where you list the member ranks. Do so in the form of ['Username',# of Stars, # of Posts Required] and remember to increase the underlined number by 1 each time. Also, make sure they are listed in the order of lowest to the highest # of posts required.
Remember back in 'v3' how Moderators would only appear as Moderators inside the boards they moderate? Well this simulates that by removing the moderator rank and replacing it with the equivilent member rank. Just edit where indicated, and follow the notes at the bottom
<script type="text/javascript">
<!--
/* strip mod rank by ross
do not repost without permission */
star = 'http://proboards8.com/images/star.gif'; //URL of the member star
var mod = [];
mod[0] = ['username','(board1|board2|board3)'];
mod[1] = ['username','(board1|board2|board3)'];
mod[2] = ['username','(board1|board2|board3)'];
var rank = [];
rank[0] = ['New Member',1,0];
rank[1] = ['Junior Member',2,50];
rank[2] = ['Full Member',3,100];
rank[3] = ['Senior Member',4,250];
rank[4] = ['God',5,500];
td = document.getElementsByTagName("td");
for(i = td.length-1; i>0; i--) {
for(g=0; g<mod.length; g++) {
if(location.href.match(/board=/) && !location.href.match(new RegExp('board='+mod[g][1])) && td.width == '20%' && td.innerHTML.match(/group/) && td.innerHTML.match(mod[g][0]) && td.parentNode.innerHTML.match(/Posts: (.+?)</)) {
posts = parseInt(RegExp.$1.replace(/,/g,''));
newRank = document.createElement('div');
for(r=rank.length-1; r>-1; r--) {
if(posts > rank[r][2]) {
newRank.appendChild(document.createElement('br'));
newRank.appendChild(document.createTextNode(rank[r][0]));
newRank.appendChild(document.createElement('br'));
for(z=0; z<rank[r][1]; z++) {
newRank.appendChild(document.createElement('img'));
newRank.lastChild.src = star;
}
newRank.appendChild(document.createElement('br'));
break;
}
}
td.innerHTML = td.innerHTML.replace(/<br>(.+?)<br><img(.+?)<br>/i,newRank.innerHTML);
}
}
}
//-->
</script>
Red: Here you need to list the usernames of each moderator and the boards which they moderate. Seperate the board IDs with a '|' line and increase the underlined number by 1 each time.
Blue: Here is where you list the member ranks. Do so in the form of ['Username',# of Stars, # of Posts Required] and remember to increase the underlined number by 1 each time. Also, make sure they are listed in the order of lowest to the highest # of posts required.