vForums Support > Programming & Coding :: Code Requests & Support :: > 2 Simple Requests

2 Simple Requests - Posted By VeaZna (veazna) on 11th Oct 08 at 4:39am
This is really very simple.

All I want to merge the on/off together with the actual board and the folder icons merged with the actual topics

example:

http://wimg.co.uk/fShy6Y.bmp

I know u can use this code, but it just annoys me for some reason when u could just do it the the template coding. {Smile}

Re: 2 Simple Requests - Posted By Ross (admin) on 11th Oct 08 at 11:04pm
Topic Listing Template:

Set the title bar / header bar to use 4 columns:
{mm} Subject 58%
[empty] 7%
[empty] 7%
Last Post 28%

Code:
 
  1. <td class="window2" width="60%"{tip}>
  2.     <font size="2">
  3.         <span style="float: left; padding-right: 7px;">
  4.             {mm} {topic_icon}
  5.         </span>
  6.         <span style="float: left;">
  7.             {new} {prefix}
  8.             <b>
  9.                 {topic_subject}
  10.             </b>
  11.         </span>
  12.         <span style="float: right; font-size: 11px;">
  13.             Started by {topic_starter}
  14.         </span>
  15.         <br />
  16.         <span style="float: left; font-size: 10px;">{topic_time}</span>
  17.         <span style="float: right;">{topic_pages}</span>
  18.     </font>
  19. </td>
  20. <td class="window1" width="5%" align="center">
  21.     <font size="2">
  22.         {topic_replies}
  23.     </font>
  24.     <br />
  25.     <font size="1">
  26.         Replies
  27.     </font>
  28. </td>
  29. <td class="window1" width="5%" align="center">
  30.     <font size="2">
  31.         {topic_views}
  32.     </font>
  33.     <br />
  34.     <font size="1">
  35.         Views
  36.     </font>
  37. </td>
  38. <td class="window2" width="30%">
  39.     <font size="2">
  40.         {last_post_time} by {last_post_user}
  41.     </font>
  42. </td>
 



For the Board Listing template, you could try this but the padding may need adjusting depending on how long the board descriptions are and the size of the icons you use {Smile}

Code:
 
  1. <tr id="board_{board_id}">
  2.     <td class="window2 boardlisting" width="75%" valign="top">
  3.             <span style="float: left; padding: 10px;" class="boardstatus">
  4.                 {new_posts}
  5.             </span>
  6.         <span style="position: relative; float: left;">
  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: 2 Simple Requests - Posted By VeaZna (veazna) on 11th Oct 08 at 11:09pm
thanks Ross! {Smile}

But I'm having a little trouble with the board listing code. It makes the on/off go above the board name.

I modified the padding like u said but it didn't do any good

http://wimg.co.uk/XWpvIs.bmp

Re: 2 Simple Requests - Posted By VeaZna (veazna) on 13th Oct 08 at 10:49pm
bump

Re: 2 Simple Requests - Posted By VeaZna (veazna) on 15th Oct 08 at 11:21pm
bump

Re: 2 Simple Requests - Posted By Ross (admin) on 16th Oct 08 at 9:39am
What browser is that in? And is there any chance you can send me the forum URL? It is showing fine for me on my test board in IE & Fx.

Re: 2 Simple Requests - Posted By dog199200 (dog199200) on 16th Oct 08 at 3:34pm
Ross I would be thinking more or less it's his rez size not being big enough so it is adjusting the tables to fit everything on the screen, but i could be wrong.

Re: 2 Simple Requests - Posted By VeaZna (veazna) on 16th Oct 08 at 11:02pm
 
What browser is that in? And is there any chance you can send me the forum URL? It is showing fine for me on my test board in IE & Fx.


I'm just using regular FF (FireFox)

and I'll pm u the url

Re: 2 Simple Requests - Posted By Ross (admin) on 16th Oct 08 at 11:20pm
The </span> which is supposed to come after {new_posts} had been placed before it. That just stopped the icon from being correctly positioned. I've fixed that on your forum now so it should be displaying OK {Smile}

Re: 2 Simple Requests - Posted By VeaZna (veazna) on 17th Oct 08 at 12:04am
sorry Ross, but it's still not working