Proboards Board Mod: Template Version
This is an exact replicate of how a Proboards board would look like. Just put the codes into where they belong and Enjoy.
Board Listing Templates:Code:
- <tr id="board_{board_id}">
- <td class="window1 boardstatus" width="0%" align="center">
- {new_posts}
- </td>
- <td class="window2 boardlisting" width="0%" valign="top">
- <span style="float: left; position: relative; height: 14px; font-size: 12px;" class="boardtitle">
- {board_name}
- </span>
- <br style="clear: both;" />
- <span style="float: left; position: relative; width: 70%;" class="boarddescription">
- {board_description}
- {if:sub_boards}
- <br /><font size="1">Sub-Boards: {sub_boards}</font>
- {/if:sub_boards}
- </span>
- <span style="float: right; position: relative;" class="boardtotals">
- <font size="1">
- {if:moderators}
- Led By: {moderators}
- {/if:moderators}
- </font>
- </span>
- </span>
- </td>
- <td class="window2 topic" width="4%"{tip}>
- <center>{total_topics}</center>
- </td>
- <td class="window2 post" width="4%"{tip}>
- <center>{total_posts}</center>
- </td>
- <td class="window2 lastpost" width="30%"{tip}>
- <font size="2">
- {ifnot:access}
- {if:member}
- You do not have permission to view this board
- {/if:member}
- {if:guest}
- Please <a href="/action/login/">Login</a> to view this board
- {/if:guest}
- {/ifnot:access}
- {if:access}
- {if:last_post}
- {last_post_time}
- by {last_post_user}<br />
- in {last_post_topic}
- {/if:last_post}
- {ifnot:last_post}
- <center>No recent Posts</center>
- {/ifnot:last_post}
- {/if:access}
- </font>
- </td>
- </tr>
Global Footer: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>
No Editing Needed![]()