100%
|
Post by Aaron on Mar 19, 2005 19:56:49 GMT -8
Replace Last Post w/ Moderator ColumnPreview: HERE[ CROSS BROWSER ] <script type="text/javascript"> <!-- /* Replace Last Post w/ Moderator Column Created by Naruto hatakeforum.proboards30.com/index.cgi */ var TD = document.getElementsByTagName("TD"); for(t=0;t<TD.length;t++) { if(TD[t].width=="66%" && TD[t].className.match("windowbg2")) { var infoMods = "<span='mod'><select onchange='window.location=this.options[this.selectedIndex].value;'><option value='#mod'>Moderators</option><option value='#mod'>-------------</option>"; var Mods = TD[t].getElementsByTagName("A"); for(m=0;m<Mods.length;m++) { if(Mods[m].href.match("username=")) { infoMods+="<option value='"+Mods[m].href+"'>"+Mods[m].innerHTML+"</option>"; } } TD[t+3].innerHTML=infoMods; TD[t+3].align="center"; } if(TD[t].width=="24%" && TD[t].className.match("titlebg")) { TD[t].innerHTML="<center><font size='1' class='text1'>Moderators</font></center>"; } } var I = document.getElementsByTagName("I"); for(i=0;i<I.length;i++) { if(I.innerHTML.match(("Moderator: |Moderators: "))) { I.style.display="none"; } } //--> </script> MAIN FOOTER
What this code does is replaces the last post column on the main page with a moderator column for your board moderators. View the preview for the code in action. Enjoy!
|
|
|
Post by Kenshin on Mar 19, 2005 20:38:58 GMT -8
Sweet code...Kinda reminds of the old one ZT made...man that reminds of the good ol' days
|
|
|
Post by Nomi on Mar 20, 2005 10:13:24 GMT -8
Nice work Naruto looks great.
|
|
100%
|
Post by Aaron on Mar 20, 2005 12:01:07 GMT -8
Thanks!
|
|
|
Post by Ten Kabuto on Mar 20, 2005 12:37:27 GMT -8
Excellent! Jeez naruto.. do you ever stop coding?
|
|
|
Post by ShadowyOne on Mar 20, 2005 20:54:24 GMT -8
Didn't you used to have something like this on HFv1?
Good job though, it looks different and cleaner.
|
|
|
Post by CD on Mar 21, 2005 11:50:50 GMT -8
Didn't you used to have something like this on HFv1? Good job though, it looks different and cleaner. He didn't. I would of remembered it. Looks really good Naruto.
|
|
100%
|
Post by Aaron on Mar 21, 2005 16:05:05 GMT -8
No, but we did have a moderator column. It added a new column after the last post.
|
|