Post by acoolie530 on Feb 18, 2005 21:39:18 GMT
Name: Acoolie Board Modification
Compatibility: Firefox/IE
Placement: Main Footers
Edit: Cell Highlight Color
Notes: Accurately simulates the G101 board mod with only a few minor alterations: It removes the threads and posts columns, aligns the moderators and thread description to the right part of the board cell. The board name and total articles are aligned to the right. I addded a cellhighlight
v1 Preview (fake board)
v2 Preview (fake board)
Edit: ive got numerous requests for a version with teh topics etc. so i'm just gonna post it (ill get a preview soon):
edit2: i forgot to include a cell highlight. If you dont want cell highlight, Just replace the color at the top with windowbg2
Compatibility: Firefox/IE
Placement: Main Footers
Edit: Cell Highlight Color
Notes: Accurately simulates the G101 board mod with only a few minor alterations: It removes the threads and posts columns, aligns the moderators and thread description to the right part of the board cell. The board name and total articles are aligned to the right. I addded a cellhighlight
v1 Preview (fake board)
v2 Preview (fake board)
<script type="text/javascript">
<!--
/* Board Modification by acoolie
Please leave this header intact
Please do not redistribute this code in any way without my permission
*/
//Replace with Cell highlight color
var highColor = "#Cell Highlight Hex Color";
//No more editting
var fon = document.getElementsByTagName("font");
for(var j=0;j<fon.length;j++){
if(fon[j].parentNode.width=="66%" && fon[j].innerHTML.match(/\?board=(.+?)"></i)){
var regular = RegExp.$1;
if(document.getElementById(regular)){
if(document.getElementById(regular).id == regular){
fon[j].innerHTML += " <font size='1'>" + document.getElementById(regular).innerHTML + "</font>";
}
}
fon[j].parentNode.onmouseover = function high(){
this.style.backgroundColor = highColor;
}
fon[j].parentNode.onmouseout = function high(){
this.style.backgroundColor = "";
}
fon[j].parentNode.onclick = function test(){
location.href = this.getElementsByTagName("a")[1].href;
}
}
}
var td = document.getElementsByTagName("td");
for(var k=0;k<td.length;k++){
if(td[k].width=="66%" && td[k].align=="left" && td[k].innerHTML.match(/Moderator/i)){
td[k+1].style.display="none";
td[k+2].style.display="none";
}
if(td[k].width=="1%" && td[k].className=="titlebg"){
td[k].style.display="none";
}
}
for(var h=0;h<td.length;h++){
if(td[h].width=="8%" && td[h].vAlign=="top" && td[h].className=="windowbg"){
if(td[h+1].width=="66%" && td[h+1].className=="windowbg2" && td[h+1].align=="left"){
var name = td[h+1].getElementsByTagName("font")[0].innerHTML;
var descr = td[h+1].getElementsByTagName("font")[1].innerHTML;
var post = td[h+2].getElementsByTagName("font")[0].innerHTML;
var topic = td[h+3].getElementsByTagName("font")[0].innerHTML;
var total = Math.floor(post)+Math.floor(topic);
td[h+1].innerHTML="<table width='100%' height='32' cellpadding='0' cellspacing='0' border='0'><tr><td valign='middle' width='34%'>"+name+"<br />Articles: <b>"+total+"</b></td><td valign='middle' align='right'><font size='1'>"+descr+"</font></td></tr></table>"
}
}
}
//-->
</script>
Edit: ive got numerous requests for a version with teh topics etc. so i'm just gonna post it (ill get a preview soon):
<script type="text/javascript">
<!--
/* Board Modification by acoolie
Please leave this header intact
Please do not redistribute this code in any way without my permission
*/
//Replace with Cell highlight color
var highColor = "#Cell Highlight Hex Color";
//No more editting
var fon = document.getElementsByTagName("font");
for(var j=0;j<fon.length;j++){
if(fon[j].parentNode.width=="66%" && fon[j].innerHTML.match(/\?board=(.+?)"></i)){
var regular = RegExp.$1;
if(document.getElementById(regular)){
if(document.getElementById(regular).id == regular){
fon[j].innerHTML += " <font size='1'>" + document.getElementById(regular).innerHTML + "</font>";
}
}
fon[j].parentNode.onmouseover = function high(){
this.style.backgroundColor = highColor;
}
fon[j].parentNode.onmouseout = function high(){
this.style.backgroundColor = "";
}
fon[j].parentNode.onclick = function test(){
location.href = this.getElementsByTagName("a")[1].href;
}
}
}
var td = document.getElementsByTagName("td");
for(var h=0;h<td.length;h++){
if(td[h].width=="8%" && td[h].vAlign=="top" && td[h].className=="windowbg"){
if(td[h+1].width=="66%" && td[h+1].className=="windowbg2" && td[h+1].align=="left"){
var name = td[h+1].getElementsByTagName("font")[0].innerHTML;
var descr = td[h+1].getElementsByTagName("font")[1].innerHTML;
td[h+1].innerHTML="<table width='100%' height='32' cellpadding='0' cellspacing='0' border='0'><tr><td valign='middle' width='34%'>"+name+"</td><td valign='middle' align='right'><font size='1'>"+descr+"</font></td></tr></table>"
}
}
}
//-->
</script>
edit2: i forgot to include a cell highlight. If you dont want cell highlight, Just replace the color at the top with windowbg2