vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: Board MOd Fix - View Topic
Topic Rating: *****
Printable View
dog199200
Guest
Board MOd Fix (23rd Aug 08 at 7:00pm UTC)
Resolved
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:
 
  1. <tr id="board_{board_id}">
  2.     <td class="window1 boardstatus" width="0%" align="center">
  3.         {new_posts}
  4.     </td>
  5.     <td class="window2 boardlisting" width="0%" valign="top">
  6.         <span style="float: left; position: relative;  height: 14px; font-size: 12px;" class="boardtitle">
  7.             {board_name}  
  8.         </span>
  9.         <br style="clear: both;" />
  10.         <span style="float: left; position: relative; width: 70%;" class="boarddescription">
  11.             {board_description}
  12.             {if:sub_boards}
  13.                 <br /><font size="1">Sub-Boards: {sub_boards}</font>
  14.             {/if:sub_boards}
  15.         </span>
  16.             <span style="float: right; position: relative;" class="boardtotals">
  17.             <font size="1">
  18.                 {if:moderators}
  19.                     Led By: {moderators}
  20.                 {/if:moderators}
  21.                 </font>
  22.             </span>
  23.         </span>
  24.     </td>
  25.     <td class="window2 lastpost" width="30%"{tip}>
  26.         <font size="2">
  27.         {ifnot:access}
  28.             {if:member}
  29.                 You do not have permission to view this board
  30.             {/if:member}
  31.             {if:guest}
  32.                 Please <a href="/action/login/">Login</a> to view this board
  33.             {/if:guest}
  34.         {/ifnot:access}
  35.         {if:access}
  36.             {if:last_post}
  37.                 {last_post_time}
  38.                 by {last_post_user}<br />
  39.                 in {last_post_topic}
  40.             {/if:last_post}
  41.             {ifnot:last_post}
  42.                 <center>No recent Posts</center>
  43.             {/ifnot:last_post}
  44.         {/if:access}
  45.         </font>
  46.     </td>
  47.     <td class="window2 topic" width="4%"{tip}>
  48.         <center>{total_topics}</center>
  49.     </td>
  50.     <td class="window2 post" width="4%"{tip}>
  51.         <center>{total_posts}</center>
  52.     </td>
  53. </tr>
 


Header Portion:
Code:
 
  1. <script>
  2. /*Dwight Board Mod
  3. To be used with HTML Templating Part #1
  4. Wrighty*/
  5.  
  6. var fix = {
  7.     d: get('td','tag'),
  8.     init: function(){
  9.         for(a = 0; a < this.d.length; a++){
  10.             if(this.d[a].className.match(/categorytitle/)){
  11.                 var x = document.createElement('tr');
  12.                 var y = document.createElement('td');
  13.                     y.innerHTML = ' ';
  14.                     y.className = 'title1';
  15.                 x.appendChild(y);
  16.                 var y = document.createElement('td');
  17.                     y.innerHTML = 'Board Name';
  18.                     y.className = 'title1';
  19.                 x.appendChild(y);
  20.                 var y = document.createElement('td');
  21.                     y.innerHTML = 'Last Post';
  22.                     y.className = 'title1';
  23.                 x.appendChild(y);
  24.                 var y = document.createElement('td');
  25.                     y.innerHTML = 'Topics';
  26.                     y.className = 'title1';
  27.                 x.appendChild(y);
  28.                 var y = document.createElement('td');
  29.                     y.innerHTML = 'Posts';
  30.                     y.className = 'title1';
  31.                 x.appendChild(y);
  32.                 this.d[a].parentNode.parentNode.insertBefore(x, this.d[a].parentNode.nextSibling);
  33.                 this.d[a].colSpan = '5';
  34.             }
  35.         }
  36.     }
  37. };
  38. fix.init();
  39. </script>
 
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 9 14
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
Re: Board MOd Fix (26th Aug 08 at 8:34am UTC)
I've amended the footer portion on your forum to fix that for you {Smile}

Image
dog199200
Guest
Re: Board MOd Fix (26th Aug 08 at 6:44pm UTC)
{Smile} ok ty
 Printable View

All times are GMT+0 :: The current time is 6:38pm
Page generated in 0.6102 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums