|
Post by CD on May 17, 2005 16:19:25 GMT -8
Place: All Board Footers Compatiblity: IE 6.0, FF Editing: Edit the first variable, and nothing else. Preview<script> <!-- // Advance Board Modification v1.0 for PBv4 // Code may not be redistrbuted without permission // Copyright CDDude229 of Sin Fallen Studios (http://sfstudio.proboards1.com)
// Edit this to what you want Subject to be. var subject="Thread Information";
// No need to edit below here var aTD = document.getElementsByTagName("TD"); var aTB = document.getElementsByTagName("TABLE"); var aFO = document.getElementsByTagName("FONT"); var aAH = document.getElementsByTagName("A"); var aBR = document.getElementsByTagName("BR"); var aBO = document.getElementsByTagName("B");
// For loop of "Started By" TD for(a=0;a<aTD.length;a++){ if(aTD[a].width=="14%" && aTD[a].align=="center"){
// Resize fonts in Replies and Views aTD[a+1].getElementsByTagName("FONT")[0].size="1"; aTD[a+2].getElementsByTagName("FONT")[0].size="1";
// Add "Started By" and topic Images if(aTD[a].className=="windowbg2"){ aTD[a-1].innerHTML=aTD[a-1].innerHTML;
if(!aTD[a-1].innerHTML.match(/ Pages: /i)){ aTD[a-1].innerHTML+=" <font size='1'>[ Pages: <a href='"+aTD[a-1].getElementsByTagName("A")[0].href+"'>1<\/a> ]<\/font>"; }
aTD[a-1].innerHTML+=" <font size='1'>"+aTD[a-2].innerHTML+aTD[a-3].innerHTML+" [ Started By: "+aTD[a].innerHTML+" | Replies: "+aTD[a+1].innerHTML+" | Views: "+aTD[a+2].innerHTML+" ]<\/font>"; } else { aTD[a-1].innerHTML=""+subject+""; }
// Remove Unneeded Cells aTD[a-3].style.display="none"; aTD[a-2].style.display="none"; aTD[a+1].style.display="none"; aTD[a+2].style.display="none"; aTD[a].style.display="none"; }}
//--> </script>
Last Edit: May 22, 2005 6:17:52 GMT -8 by Aaron
|
|
|
Post by CrAzY_J on May 17, 2005 16:45:13 GMT -8
good job mate
|
|
|
Post by CD on May 17, 2005 16:56:06 GMT -8
good job mate Its basically just a complete recode of the last one, now PBv4 compatible, with one new feature. It now inserts "[ Pages: 1 ]" If there's only one page.
|
|
|
Post by SonicX on May 17, 2005 19:08:14 GMT -8
Nice code.
|
|
|
Post by Mordecai on May 17, 2005 23:56:56 GMT -8
It has an "unterminated string constant" somewhere...
|
|
|
Post by CD on May 18, 2005 4:16:54 GMT -8
It has an "unterminated string constant" somewhere... Reload. That might be a PBv4 error. This code works fine in FireFox and Internet Explorer 6.0 All strings are ended too.
|
|