|
Post by CD on May 29, 2005 11:52:55 GMT -8
Place: Main Footers Compatiblity: IE 6.0, FF Editing: Edit the first variables until it says something like "No more editing needed". Description: Removes the On/Off icon cell, and adds the text you specify to the board cell, before the mods. Works in PBv4. Preview: None<script> // On/Off Icon to Text in Board Cell // Code may not be redistrbuted without permission // Copyright CDDude229 of Sin Fallen Studios (http://sfstudio.proboards1.com)
// Text displayed if there's new posts var newposts = "[ New Posts ]"; // Text displayed if there's no new posts var noposts = "[ No New Posts ]"; // URL to the no new post icon image var nonew = "http://gbhd.iycatacombs.com/other-images/off.gif"
// No need to edit below here var aTD = document.getElementsByTagName("TD");
for(a=0;a<aTD.length;a++){ if(aTD[a].innerHTML.match(/board=/i) && aTD[a].width=="66%"){ if(navigator.appName.match(/Microsoft/i)) { var br = aTD[a].innerHTML.split("<B"+"R>"); } else { var br = aTD[a].innerHTML.split("<b"+"r>"); } if(aTD[a-1].firstChild.src==nonew){ if(!aTD[a].innerHTML.match(/Moderator/i)){ aTD[a].innerHTML=br[0]+" "+br[1]+" <font size='1'>"+noposts+"</font>"; } else { aTD[a].innerHTML=br[0]+" "+br[1]+" <font size='1'>"+noposts+"</font> "+br[2]; }} else { if(!aTD[a].innerHTML.match(/Moderator/i)){ aTD[a].innerHTML=br[0]+" "+br[1]+" <font size='1'>"+newposts+"</font>"; } else { aTD[a].innerHTML=br[0]+" "+br[1]+" <font size='1'>"+newposts+"</font> "+br[2]; }} aTD[a-1].style.display="none"; }}
for(b=0;b<aTD.length;b++){ if(aTD[b].innerHTML.match(/forum\sname/i) && aTD[b].colSpan=="2"){ aTD[b].colSpan="1"; }}</script>
Last Edit: May 29, 2005 11:56:49 GMT -8 by CD
|
|