Announcement

Collapse
No announcement yet.

How do I limit the number of sub forums displayed?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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)

  • #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:
    <if condition="!in_array($forumid, array(X,Y,Z))">Template Code</if>
    # find template(s): forumhome_subforumseparator_nopost - forumhome_subforumseparator_post
    # replace with non-breaking space
    Code:
    &nbsp;
    Before After

    Comment


    • #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


      • #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


        • #5
          Originally posted by Jose Amaral Rego View Post
          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...
          X