Code:
- <script>
- /*Dwight's Proboards Board Mod
- To be used with HTML Templating Part #1
- Created By Wrighty Modified By Dwight*/
-
- var fix = {
- d: get('td','tag'),
- init: function(){
- for(a = 0; a < this.d.length - 1; a++){
- if(this.d[a].className.match(/categorytitle/) || (this.d[a].className == "title1" && this.d[a].innerHTML.match(/<b>Sub-Board\sName<\/b>/i))) {
- var x = document.createElement('tr');
- var y = document.createElement('td');
- y.innerHTML = ' ';
- y.className = 'title1';
- x.appendChild(y);
- var y = document.createElement('td');
- y.innerHTML = 'Board Name';
- y.className = 'title1';
- x.appendChild(y);
- var y = document.createElement('td');
- y.innerHTML = 'Topics';
- y.className = 'title1';
- x.appendChild(y);
- var y = document.createElement('td');
- y.innerHTML = 'Posts';
- y.className = 'title1';
- x.appendChild(y);
- var y = document.createElement('td');
- y.innerHTML = 'Last Post';
- y.className = 'title1';
- x.appendChild(y);
- this.d[a].parentNode.parentNode.insertBefore(x, this.d[a].parentNode.nextSibling);
- this.d[a].colSpan = '5';
- if(this.d[a].className == "title1") {
- this.d[a].parentNode.style.display = "none";
- break;
- }
- }
- }
- }
- };
- fix.init();
- </script>