Page 1 of 1

Changing Layout - Can't figure this one out

PostPosted: Fri May 11, 2007 3:37 am
Author: nGAGE
Hi all,

I've been moving arround some of the layout of the forum, such as the "New Topic" / "Reply" / "Jumpbox" / "Quickreply" / "Who's Online" etc (guess you get the point)... But when I was trying to move the "New Topic" button down in the viewforum_body.tpl, like I did in the viewtopic_body.tpl (see screenshots below), I ran into open space that just wasn't making sense. So I checked the topics_list_box.tpl for any linebrakes before content starts... Nothing!

[url=http]Who's Online area re-aranged[/url]

I then removed the only table that did seem to be the start of the content to me and all was fine.

Here's the code I removed (actually I moved it away, still have it though):
Code: Select all
 <table>     <tr>         <td>             <img>         </td>         <td>             <span>                 <a>                     {catrow.CAT_DESC}                 </a>             </span>         </td>         <td>             <img>         </td>     </tr></table>  

NOTE]viewforum_body[/b] (the section above the content, upto where content is called for)
Code: Select all
 {BOARD_ANNOUNCES}{BOARD_INDEX}  <BEGIN>     <table>         <tr>             <td>                 {BANNER_13_IMG}<br>             </td>         </tr>     </table><END>    <table>     <tr>         <td>     <BEGIN>             <a><img></a>     <END>         </td>         <td>{PAGINATION}</td>     </tr></table>    <form>     {TOPICS_LIST_BOX}</form>  


topcis_list_box.tpl (after .scripts end, till where head of content starts... this includes the section that causes the open space)]  </script>  <END><table>     <tr>         <td>             <img>         </td>         <td>             <span>                 <a>                     {catrow.CAT_DESC}                 </a>             </span>         </td>         <td>             <img>         </td>     </tr></table>  <table>     <tr>         <th> {topics_list_box.row.L_TITLE} </th>         <th> {topics_list_box.row.L_REPLIES} </th>         <th> {topics_list_box.row.L_AUTHOR} </th>         <th> {topics_list_box.row.L_VIEWS} </th>         <th> {topics_list_box.row.L_LASTPOST} </th>     <BEGIN>         <th><input></th>     <END>     </tr><END>  [/code]

[MY EDITS]

viewforum_body.tpl
(Now has the code causing the open space from "topics_list_box.tpl" above "New Post" button)
Code: Select all
 {BOARD_ANNOUNCES}{BOARD_INDEX}  <BEGIN>     <table>         <tr>             <td>                 {BANNER_13_IMG}<br>             </td>         </tr>     </table><END>  <table>     <tr>         <td>             <img>         </td>         <td>             <span>                 <a>                     {catrow.CAT_DESC}                 </a>             </span>         </td>         <td>             <img>         </td>     </tr></table>  <table>     <tr>         <td>     <BEGIN>             <a><img></a>     <END>         </td>         <td>{PAGINATION}</td>     </tr></table>    <form>     {TOPICS_LIST_BOX}</form>  


topics_list_box.tpl (Now without the code causing the open space)]  </script>  <END>  <table>     <tr>         <th> {topics_list_box.row.L_TITLE} </th>         <th> {topics_list_box.row.L_REPLIES} </th>         <th> {topics_list_box.row.L_AUTHOR} </th>         <th> {topics_list_box.row.L_VIEWS} </th>         <th> {topics_list_box.row.L_LASTPOST} </th>     <BEGIN>         <th><input></th>     <END>     </tr><END>  [/code]


And here a bunch of screenshots:
[url=http]Above viewtopic[/url]
[url=http]Cursor-Select on code area[/url]
[url=http]ViewTopic (no code-changes)[/url]
[url=http]ViewTopic (with code-changes)[/url]
[url=http]ViewForum (no code-chagnes)[/url]
[url=http]ViewForum (with code-changes)[/url]
[url=http]Viewing category (no code-changes[/url]
[url=http]Viewing category (with code-changes[/url]
[url=http]ViewForum incl.Subforum (no code-changes)[/url]
[url=http]ViewForum incl.Subforum (with code-changes)[/url]


Does anybody have a clue what this is supposed to do/display? I simply doesn't show anything to me. Could it be depending on some ACP-option changes? Or is it simply a left over nobody noticed?

Main thing is... will it work when I leave it moved to the viewforum_body.tpl instaid of the topics_list_box.tpl? (I think it probably should work, right?)


You you guys are able to follow my confucious post. <img>

Hope somebody can help/answer to this.