Ok i think this is the third time i have needed work on this mod... OK i have had this problem for a while but been to lazy to have it fixed, so can someone please fix it?
Ok the problem is that the main page for the code works file but it is all screwed up when it comes to a sub-board, for example here is the url to the main page fo teh website:
http://narutoillusions.virtualforums.co.uk/
and tahst what it is suppose to look like, and here is what the sub-boards version looks like:
http://narutoillusions.virtualforums.co.uk/board/Naruto/
see the problem, so can i get the code fixed so the sub-board aint al;l screwed up? ok well heres the code:
Template Fragment: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 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>
- <td class="window2 topic" width="4%"{tip}>
- <center>{total_topics}</center>
- </td>
- <td class="window2 post" width="4%"{tip}>
- <center>{total_posts}</center>
- </td>
- </tr>
Header Portion:Code:
- <script>
- /*Dwight Board Mod
- To be used with HTML Templating Part #1
- Wrighty*/
- var fix = {
- d: get('td','tag'),
- init: function(){
- for(a = 0; a < this.d.length; a++){
- if(this.d[a].className.match(/categorytitle/)){
- 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 = 'Last Post';
- 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);
- this.d[a].parentNode.parentNode.insertBefore(x, this.d[a].parentNode.nextSibling);
- this.d[a].colSpan = '5';
- }
- }
- }
- };
- fix.init();
- </script>
I've amended the footer portion on your forum to fix that for you![]()
ok ty