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

How to remove sub-forum drop down from forum list?

Discussion in 'XenForo Questions and Support' started by kingston, Dec 25, 2010.

  1. kingston

    kingston Well-Known Member

    Could someone help me with this? As nice as it is my users don't use it and I want to un-clutter a bit.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Do you want to remove the drop down completely or replace it with something else?
     
  3. kingston

    kingston Well-Known Member

    thanks for moving, i didnt know if it was a template edit.

    i would like to remove completely.
     
  4. kingston

    kingston Well-Known Member

    is it hard to do?
     
  5. Brogan

    Brogan XenForo Moderator Staff Member

    It shouldn't be too difficult but unfortunately I don't have access to my test install at the moment so can't tell you what you need to edit :(
     
  6. kingston

    kingston Well-Known Member

    but all i wanted for Xmas was to remove my sub-forums....

    haha, no worries. Merry Xmas btw!
     
  7. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Admin CP -> Appearance -> Templates -> node_forum_level_2

    Remove this entire block of code:

    Code:
    				<xen:if is="{$renderedChildren} AND {$level} == 2">
    					<div class="Popup subForumsPopup">
    						<a href="{xen:link forums, $forum}" rel="Menu" class="concealed"><span class="dt">{xen:phrase sub_forums}:</span> {xen:number $forum.childCount}</a>
    						
    						<div class="Menu JsOnly subForumsMenu">
    							<div class="primaryContent menuHeader">
    								<h3>{$forum.title}</h3>
    								<div class="muted">{xen:phrase sub_forums}</div>
    							</div>
    							<ol class="secondaryContent blockLinksList">
    							<xen:foreach loop="$renderedChildren" value="$child">
    								{xen:raw $child}
    							</xen:foreach>
    							</ol>
    						</div>
    					</div>
    				</xen:if>
    
    Make the same edit to this template:

    Admin CP -> Appearance -> Templates -> node_category_level_2
     
    kingston likes this.
  8. kingston

    kingston Well-Known Member

    Thank you! So much better and cleaner.
     
  9. mikel

    mikel Member

    Similar but opposite question :p

    How might one go about displaying the subforum drop down on interior forum lists?

    For example:

    Category A
    Forum A​
    Subforum A​
    Sub Category A​
    Forum B​
    Subforum B​

    When on the index, Forum A displays the subforum drop down. When clicking into Category B, there is no subforum drop down for Forum B, rather Subforum B simply displays below Forum B.

    Thanks.
     
  10. mikel

    mikel Member

    One more question about subforums - is there any way to display a sub forum at the top of the forum page, but not in the node list?
     
  11. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    That is normal. The two forums look the same in the listing even though they are at different levels because the level1 template is identical to the level2 template. You need to edit this template if you want to differentiate the two:

    Admin CP -> Appearance -> Templates -> node_forum_level_1

    I don't understand.
     

Share This Page