1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to move subforum under thread list?

Discussion in 'XenForo Questions and Support' started by Andy.N, Nov 15, 2010.

  1. Andy.N

    Andy.N Well-Known Member

    So if you are on this forum http://xenforo.com/community/forums/bugs/
    You will see it has a subforum Resolved Bug Reports.
    I'd like to move that whole subforum block under the threads and just right above the bottom breadcum.

    The reason is that in some of the forum, I have a high number of subforum which will take up most of the space if I have it on top as currently designed.

    Thanks
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Open the forum_view template and find this code:
    HTML:
    <xen:if is="{$renderedNodes}"><xen:include template="node_list" /></xen:if>
    Then move it to below this code:
    HTML:
    <div class="discussionList section sectionMain">
        <xen:include template="thread_list" />
    </div>

    You will need a line break though or the "Thread Display Options" tab will overlap.
    Your final code should look like this:
    HTML:
    <div class="discussionList section sectionMain">
        <xen:include template="thread_list" />
    </div>
    <br/>
    <xen:if is="{$renderedNodes}"><xen:include template="node_list" /></xen:if>

    I haven't actually checked how it looks so it might need some more fine tuning.
     
    Skeletor, mjp, otto and 2 others like this.
  3. Andy.N

    Andy.N Well-Known Member

    I actually followed your steps and ended up moving
    HTML:
    <xen:if is="{$renderedNodes}"><xen:include template="node_list" /></xen:if>
    after the last line on that template. It looks better in my opinion because the page navigation is on top of the subforum block.
     
    Skeletor and mjp like this.
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Yes, that looks good.

    An interesting change from the usual layout.
     
  5. mjp

    mjp Well-Known Member

    Well this is the kittie's titties, isn't it. I have never liked having the sub-forums at the top of the thread view, but I always figured that moving them would be a horrible, painful chore. Looks pretty easy though. Kudos to both of youse mugs.
     
  6. otfordnet

    otfordnet Member

    Looks a lot better to me.

    When the child forums have their own sub-forums, do you think it is possible to retain the drop-down display for them, as they are on the home page display when forums are nested?
     
  7. Skeletor

    Skeletor Member

    Perfect! I was just wondering how to do this after moving some forums around. Thanks guys!

    Maybe this thread should be moved to Template Modifications ?
     
  8. Brogan

    Brogan XenForo Moderator Staff Member

  9. mjp

    mjp Well-Known Member

    You know, after I did this, I noticed that the sub-forums have an unused "header," like so:

    whylord.jpg

    But it seems kind of useless. Unless something is going to be there at some point.

    ideally, it would say "Sub-forums" or some such in there (without doing a template edit). Or more ideally, it would disappear.
     
  10. Andy.N

    Andy.N Well-Known Member

    Looks like there are some change in the forum_view template in the RC2 as when I reapplied this change today, it move the top "Post New Thread" along with the subforum block so now we have 2 "Post New Thread" buttons at the bottom, one on top of another.

    What i really like to achieve is to keep the top button on top. Now, it's very hard to find that button to create new thread.

    Ideally, the top button will be at the top right hand corner on the same row as top breadcrumb and not part of the subforum block.
     

Share This Page