|
Post by CD on Jun 22, 2005 20:05:53 GMT -8
Place: All Board Footers or Global Footers Compatiblity: IE 6.0, FF Editing: Edit the first variables until it says something like "// No more editing needed". Description: Complete modification of a board. Does not modify threads and has many editable features. Also, v1.1 was only released somewhere else. Open Source: Yes. You may also edit this to your need as long as the copyright stays intact. Preview: Here<script> <!-- // Advance Board Modification v1.2 for PBv4 by CDDude229 // Code may not be redistrbuted without permission
// Edit this to what you want Subject to be. var subject="Thread Information";
// Put "yes" if you want the message icon displayed (one cell to the left of the board information) var mess = "yes"; // Put "yes" if you want the message status icon displayed (two cells to the left of the board information) var status = "yes"; // Put "yes" if you want who started the topic to be displayed var started = "yes"; // Put "yes" if you want how many times the thread has been viewed to be displayed var views = "yes"; // Put "yes" if you want how many replies there are to be displayed. var replies = "yes"; // Put "yes" if you want it to display "[ Pages: 1 ]" when there is only one page. var pages = "yes";
// No need to edit below here if(!location.href.match(/action=(post|modifypost|createpoll)/i) && location.href.match(/board=/i)){ var aTD = document.getElementsByTagName("TD");
// 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"){
if(pages=="yes" && !aTD[a-1].innerHTML.match(/ Pages: /i)){ aTD[a-1].innerHTML+="<br><font size='1'>[ Pages: <a href='"+aTD[a-1].getElementsByTagName("A")[0].href+"'>1<\/a> ]<\/font>"; }
aTD[a-1].innerHTML+="<br>";
if(mess=="yes"){ aTD[a-1].innerHTML+=aTD[a-2].innerHTML; }
if(status=="yes"){ aTD[a-1].innerHTML+=aTD[a-3].innerHTML }
if(started!="yes" && replies!="yes" && views!="yes"){ } else { aTD[a-1].innerHTML+="<font size='1'> [ "; if(started=="yes"){ aTD[a-1].innerHTML+="Started By: "+aTD[a].innerHTML; }
if(replies=="yes"){ if(started=="yes"){ aTD[a-1].innerHTML+=" | Replies: "+aTD[a+1].innerHTML; } else { aTD[a-1].innerHTML+="Replies: "+aTD[a+1].innerHTML; } }
if(views=="yes"){ if(started=="yes" || replies=="yes"){ aTD[a-1].innerHTML+=" | Views: "+aTD[a+2].innerHTML; } else { aTD[a-1].innerHTML+="Views: "+aTD[a+2].innerHTML; } }
aTD[a-1].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";
aTD[a-1].width="80%"; } } } //--> </script>
|
|
|
Post by Disciple on Aug 1, 2005 12:32:09 GMT -8
that really different i havent seen to many codes like this
|
|
|
Post by CD on Aug 1, 2005 17:58:52 GMT -8
That's old, I probably should make a new version soon. And thanks.
|
|
|
Post by Attica on Sept 3, 2005 15:24:33 GMT -8
How do you format the witdth of the left column ??
|
|
|
Post by CD on Sept 4, 2005 10:33:44 GMT -8
THere's no option for that for now.... But its the last line that is something like "aTD[a-1].width == '80%';" Just change the percentage
|
|