vForums Support > Programming & Coding :: Code Requests & Support :: > [F] VB Board Mod to template conversion

[F] VB Board Mod to template conversion - Posted By dog199200 (dog199200) on 3rd Jun 08 at 1:50pm
Can someone finish converting this code for me. Its a board template based off the vb board mod, and for some reason when i added a catory title section it repeats every time as seen here, so can someone take out this part of the code:

Code:
 
  1. <tr id="board_{board_id}">
  2. <td class="window1 boardstatus" width="0%" align="center">
  3. </td>
  4. <td class="window2 boardlisting" width="62%" valign="top">
  5. <center> Boards</center>
  6. </td>
  7. <td class="window2 lastpost" width="30%">
  8. <center>Last Post</center>
  9. </td>
  10. <td class="window2" width="4%">
  11. <center>Topics</center>
  12. </td>
  13. <td class="window2" width="4%">
  14. <center>Posts</center>
  15. </td>
  16. </tr>
  17.  
 


and and make me something tahgt will work with my current code:

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="position: relative;">
  7.             <span style="float: left; position: relative;  height: 14px; font-size: 12px;" class="boardtitle">
  8.                 {board_name}                   
  9.             </span>
  10.  
  11.             <span style="float: right; position: relative;" class="boardtotals">
  12.             </span>
  13.             <br style="clear: both;" />
  14.             <span style="float: left; position: relative; width: 62%;" class="boarddescription">
  15.                 {board_description}
  16.                 {if:sub_boards}
  17.                     <br /><font size="1">Sub-Boards: {sub_boards}</font>
  18.                 {/if:sub_boards}
  19.             </span>
  20.             <span style="float: right; position: relative;" class="boardtotals">
  21.                 <font size="1">
  22.                     {if:moderators}
  23.                         Led By: {moderators}
  24.                     {/if:moderators}
  25.                 </font>
  26.             </span>
  27.         </span>
  28.     </td>
  29.     <td class="window2 lastpost" width="30%"{tip}>
  30. <font size="2">
  31.             {ifnot:access}
  32.                 {if:member}
  33.                     You do not have permission to view this board
  34.                 {/if:member}
  35.                 {if:guest}
  36.                     Please <a href="/action/login/">Login</a> to view this board
  37.                 {/if:guest}
  38.             {/ifnot:access}
  39.             {if:access}
  40.                 {if:last_post}
  41.                     {last_post_time}
  42.                     by {last_post_user}<br />
  43.                     in {last_post_topic}    
  44.                 {/if:last_post}
  45.                 {ifnot:last_post}
  46.                     <center>No recent Posts</center>
  47.                 {/ifnot:last_post}
  48.             {/if:access}
  49.         </font>
  50.     </td>
  51.     <td class="window2 topic" width="4%"{tip}>
  52.                 <center>{total_topics}</center>
  53.     </td>
  54.     <td class="window2 post" width="4%"{tip}>
  55.                 <center>{total_posts}</center>
  56.     </td>
  57. </tr>
 

Re: VB Board Mod to template conversion - Posted By Ross (admin) on 3rd Jun 08 at 2:47pm
I'm a little confused over what you want the boards to look like? {Unsure}

Re: VB Board Mod to template conversion - Posted By dog199200 (dog199200) on 3rd Jun 08 at 4:15pm
well it looks like this now from what i have done:

http://overobvious.vforums.co.uk/

and i wnat it to look like this:

http://fmaadvanced.vforums.co.uk

Re: VB Board Mod to template conversion - Posted By dog199200 (dog199200) on 12th Jun 08 at 7:08am
bump

Re: VB Board Mod to template conversion - Posted By Ross (admin) on 15th Jun 08 at 5:49pm
The one used on FMA Advanced is, as far as I can see, the vForums default one:

Code: HTML
 
  1. <tr id="board_{board_id}">
  2.     <td class="window1 boardstatus" width="6%" align="center">
  3.         {new_posts}
  4.     </td>
  5.     <td class="window2 boardlisting" width="69%" valign="top">
  6.         <span style="position: relative;">
  7.             <span style="float: left; position: relative;  height: 14px; font-size: 12px;" class="boardtitle">
  8.                 {board_name}
  9.             </span>
  10.             <span style="float: right; position: relative;" class="boardtotals">
  11.                 <font size="1">
  12.                     {total_topics} Topics - {total_posts} Posts
  13.                 </font>
  14.             </span>
  15.             <br style="clear: both;" />
  16.             <span style="float: left; position: relative; width: 75%;" class="boarddescription">
  17.                 {board_description}
  18.                 {if:sub_boards}
  19.                     <br /><font size="1">Sub-Boards: {sub_boards}</font>
  20.                 {/if:sub_boards}
  21.             </span>
  22.             <span style="float: right; position: relative;" class="boardmoderators">
  23.                 <font size="1">
  24.                     {if:moderators}
  25.                         Led By: {moderators}
  26.                     {/if:moderators}
  27.                 </font>
  28.             </span>
  29.         </span>
  30.     </td>
  31.     <td class="window2 lastpost" width="25%"{tip}>
  32.         <font size="2">
  33.             {ifnot:access}
  34.                 {if:member}
  35.                     You do not have permission to view this board
  36.                 {/if:member}
  37.                 {if:guest}
  38.                     Please <a href="/action/login/">Login</a> to view this board
  39.                 {/if:guest}
  40.             {/ifnot:access}
  41.             {if:access}
  42.                 {if:last_post}
  43.                     {last_post_time}
  44.                     by {last_post_user}<br />
  45.                     in {last_post_topic}    
  46.                 {/if:last_post}
  47.                 {ifnot:last_post}
  48.                     No recent Posts
  49.                 {/ifnot:last_post}
  50.             {/if:access}
  51.         </font>
  52.     </td>
  53. </tr>
 

Re: VB Board Mod to template conversion - Posted By dog199200 (dog199200) on 16th Jun 08 at 5:18pm
...umm there is mods in it to add two extra column, one for posts and one for threads.

Re: VB Board Mod to template conversion - Posted By dog199200 (dog199200) on 3rd Jul 08 at 11:20am
still hasn't been done?

Re: VB Board Mod to template conversion - Posted By Ross (admin) on 3rd Jul 08 at 11:32am
Looking at your forum, it seems to have those columns OK now?

Re: VB Board Mod to template conversion - Posted By dog199200 (dog199200) on 6th Jul 08 at 5:15pm
if your looking at the Overobvious then yes it has the colums but thats not what i'm wnating, i'm wanting the part that says Boards, Last Post, Post, Topics to only how at the top and not repeat ove rand over and in the Full metal Alchemist one its like that because I am using the old code with a mod to the original table, that is why the Posts, Topics colums show up twice.... thats why i need to the code, so that there will be the right amount of columns and at teh same time the board names and stuff is at the top and does not repeat after every board. I know i could stick with the old code, but if i integrate everything into the system as much as possible things are less likely to class with each other.

Re: VB Board Mod to template conversion - Posted By Michael (wrighty) on 7th Jul 08 at 10:44pm
ok here goes:

Use THIS in the board mod section of the templating system.
Then use THIS in the GLOBAL footer to insert that row ABOVE the board! {Smile}

If you need anything changing, let me know! {Smile}

Re: VB Board Mod to template conversion - Posted By dog199200 (dog199200) on 7th Jul 08 at 11:35pm
ok that worked perfectly, but one more thing, can you get it so taht the definition will expand over more because it is squished together and is expanding the cell downward when it doesnt need too..

http://fmaadvanced.virtualforums.co.uk/

Re: VB Board Mod to template conversion - Posted By Michael (wrighty) on 7th Jul 08 at 11:39pm
I have widened it on your forum a bit, but what it's at now, is as wide as it goes! {Sad}

Re: VB Board Mod to template conversion - Posted By dog199200 (dog199200) on 8th Jul 08 at 8:49pm
ty it works

Re: VB Board Mod to template conversion - Posted By Michael (wrighty) on 8th Jul 08 at 9:47pm
{Grin}