Post by jaroessa on Jan 31, 2005 1:59:23 GMT
He who shall not be named
This script will create a Moderators Column next to 'Last Post'. In it is a Drop Down List with all the moderators of that board. Selecting one of the moderators sends you to their profile.
<script type="text/javascript">
<!--
/*
Moderator Column v3
Copyright © 2005 - 2006 SolidSnake Designs
All Rights Reserved
*/
function MakeModColb(){
var iCell = document.getElementsByTagName("td");
for(i=0;i<iCell.length;i++){
if(iCell.className=="titlebg" && iCell.width=="24%" && iCell.align=="center"){
var FontBase = iCell.innerHTML.replace(/<b>.+?<\/b>/i,"<b>Moderators</b>");
with(iCell.parentNode){
var c = cells.length;
insertCell(c);
cells[c].className = "windowbg";
cells[c].width = "10%";
cells[c].align = "center";
cells[c].innerHTML = FontBase;
}
}
if(iCell.className=="catbg" && iCell.colSpan=="5"){
iCell.colSpan = "6";
}
}
}
function MakeModCol(){
var iCell = document.getElementsByTagName("td");
for (i=0;i<iCell.length;i++){
if(iCell.align=="left" && iCell.width=="66%" && iCell.className=="windowbg2"){
var iSel = '<table cellpadding="2"><tr><td><center><select onChange="if(this.options[this.selectedIndex].value) window.location=this.options[this.selectedIndex].value">';
iSel += '<option>Moderators<option>------------<option> ';
var iMods = iCell.getElementsByTagName("a");
for (a=2;a<iMods.length;a++){
iSel += '<option value="' + iMods.href + '">' + iMods.innerHTML;
}
iSel += '</select></td></tr></table>';
with(iCell.parentNode){
var c = cells.length;
insertCell(c);
cells[c].className = "windowbg";
cells[c].width = "10%";
cells[c].align = "center";
cells[c].innerHTML = iSel;
}
iCell.getElementsByTagName("i")[0].style.display = "none";
iCell.width = "58%";
}
}
MakeModColb();
}
MakeModCol();
//-->
</script>#nosmileys#nosmileys#nosmileys
This script will create a Moderators Column next to 'Last Post'. In it is a Drop Down List with all the moderators of that board. Selecting one of the moderators sends you to their profile.
<script type="text/javascript">
<!--
/*
Moderator Column v3
Copyright © 2005 - 2006 SolidSnake Designs
All Rights Reserved
*/
function MakeModColb(){
var iCell = document.getElementsByTagName("td");
for(i=0;i<iCell.length;i++){
if(iCell.className=="titlebg" && iCell.width=="24%" && iCell.align=="center"){
var FontBase = iCell.innerHTML.replace(/<b>.+?<\/b>/i,"<b>Moderators</b>");
with(iCell.parentNode){
var c = cells.length;
insertCell(c);
cells[c].className = "windowbg";
cells[c].width = "10%";
cells[c].align = "center";
cells[c].innerHTML = FontBase;
}
}
if(iCell.className=="catbg" && iCell.colSpan=="5"){
iCell.colSpan = "6";
}
}
}
function MakeModCol(){
var iCell = document.getElementsByTagName("td");
for (i=0;i<iCell.length;i++){
if(iCell.align=="left" && iCell.width=="66%" && iCell.className=="windowbg2"){
var iSel = '<table cellpadding="2"><tr><td><center><select onChange="if(this.options[this.selectedIndex].value) window.location=this.options[this.selectedIndex].value">';
iSel += '<option>Moderators<option>------------<option> ';
var iMods = iCell.getElementsByTagName("a");
for (a=2;a<iMods.length;a++){
iSel += '<option value="' + iMods.href + '">' + iMods.innerHTML;
}
iSel += '</select></td></tr></table>';
with(iCell.parentNode){
var c = cells.length;
insertCell(c);
cells[c].className = "windowbg";
cells[c].width = "10%";
cells[c].align = "center";
cells[c].innerHTML = iSel;
}
iCell.getElementsByTagName("i")[0].style.display = "none";
iCell.width = "58%";
}
}
MakeModColb();
}
MakeModCol();
//-->
</script>#nosmileys#nosmileys#nosmileys