How do I limit the number of sub forums displayed?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • patrickb
    New Member
    • Jun 2007
    • 27

    How do I limit the number of sub forums displayed?

    Hello,

    I was wondering if there is a way to limit the number of sub-forums displayed on the forum home page?

    This is my structure
    • Category 1
      • Forum 1
        • Sub Forum 1
        • Sub Forum 2
        • Sub Forum 3
        • Sub Forum 4
        • Sub Forum 5
        • Sub Forum 6
        • Sub Forum 7
        • Sub Forum 8
        • ...
      • Forum 2
      • ...
    • Category 2
    • ...
    I would like to display only, say the first 5 sub-forums. Ideally, sorted by activity (number of threads or posts)
  • Jose Amaral Rego
    Senior Member
    • Feb 2005
    • 11058
    • 1.1.x

    #2
    Hide specific subforum(s) from 'Forum Index' page (3.6.7PL1)

    Hide specific subforum(s) from 'Forum Index' page
    # find template(s): forumhome_subforumbit_nopost - forumhome_subforumbit_post
    # add conditional statement around template code
    # replace X,Y,Z with forum(id) identification number you wish not to be visible.
    Code:
    [COLOR=#ff0000][b]<if condition="!in_array($forumid, array([COLOR=#008000]X,Y,Z[/COLOR]))">[/b][/COLOR][COLOR=#0000ff]Template Code[/COLOR][COLOR=#ff0000][B]</if>[/B][/COLOR]
    # find template(s): forumhome_subforumseparator_nopost - forumhome_subforumseparator_post
    # replace with non-breaking space
    Code:
    [COLOR=red][B][noparse]&nbsp;[/noparse][/B][/COLOR]
    Before After

    Comment

    • rsgvb
      New Member
      • Oct 2007
      • 9
      • 3.6.x

      #3
      Ive used this code successfully for the purpose listed above.

      Is it possible to use the same code so that a sub-forum's 'last post' does not show up on the 'Last Post' on the forum homepage?

      I have a sub-forum that has topics I dont want showing up on the front forumhome page, but still want the parent forum to show its 'Last Posts'.

      Thanks.

      Comment

      • Jose Amaral Rego
        Senior Member
        • Feb 2005
        • 11058
        • 1.1.x

        #4
        rsgvb it would be in your best interest to start your own thread and you can easily point or quote post(s). patrickb question has been answered.

        Thanks.

        Comment

        • rsgvb
          New Member
          • Oct 2007
          • 9
          • 3.6.x

          #5
          Originally posted by Jose Amaral Rego
          rsgvb it would be in your best interest to start your own thread and you can easily point or quote post(s). patrickb question has been answered.

          Thanks.
          Im glad you showed up.

          I did that(http://www.vbulletin.com/forum/showthread.php?t=257636). I was told to go to another forum, even though it seems there is code youve provided that hides these sorts of things.

          Does this code youve provided work to do what Ive asked?

          Id appreciate help. If you can answer my question, please do.

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...