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

Is It Possible to Have All the Posts Show Up in One Place?

Discussion in 'XenForo Pre-Sales Questions' started by grovercleveland, Feb 23, 2013.

  1. With our current forum set up, all the posts show up on one main index page.

    There are categories and then subcategories underneath the main index page. For the categories, all of the posts for the category and subcategories show up.

    Is this possible with Xen foro? Are there even subcategories?
     
  2. Shelley

    Shelley Well-Known Member

    It is possible to display the subforums on forum_list (index) though you will need to install an add-on to get the grid layout. http://xenforo.com/community/resources/sub-nodes-in-columns.580/
     
  3. Digital Doctor

    Digital Doctor Well-Known Member

    Shelley likes this.
  4. Nudaii

    Nudaii Well-Known Member

    Well there is the ability to have posts show up in master forums

    aka master forum 1, shows content from sub forums 1,10,43,27 etc
    master forum 2 shows content from x y z etc

    Or you can have it by prefix(which i do)

    all threads with prefix x show up in y forum
     
  5. Richard,
    Can you explain the master and sub-forum? That is what I'm trying to do. I could have one forum and then every forum under that could be sub forum? Can you have sub-forums under subforums (ie 3 levels).

    The Digital Doctor seems to say it is not possible to do the sub forum thing and you are saying it is.

    Also can you explain the prefix thing further.

    Sorry for being a bit lost.
     
  6. Digital Doctor

    Digital Doctor Well-Known Member

    You can do this with Xenforo ?
     
  7. ForoStyle

    ForoStyle Active Member

    Can you please let us know how you did it?
     
  8. Nudaii

    Nudaii Well-Known Member

    sure, I am a little busy this morning, but i will post up a guide :)
     
  9. Nudaii

    Nudaii Well-Known Member

    first you need this
    http://xenforo.com/community/resources/all-topics-master-forums-global-topics.773/


    However to change to search by prefix do like below :)

    Code:
    //All topic mod manual edit by BOP5
                if ($conditions['node_id'] == 6)
                  $sqlConditions[] = 'thread.node_id IN (2,3,4,5) AND thread.prefix_id = 1';
              elseif ($conditions['node_id'] == 7)
                  $sqlConditions[] = 'thread.node_id IN (2,3,4,5) AND thread.prefix_id = 2';
                else
                    $sqlConditions[] = 'thread.node_id = ' . $db->quote($conditions['node_id']);
                }
            }
    So in english what above did was

    In node ID 6 show all show all threads in 2,3,4,5 that had the prefix ID 1
    In node ID 7 show all show all threads in 2,3,4,5 that had the prefix ID 2
    :)
     
    Digital Doctor likes this.
  10. Digital Doctor

    Digital Doctor Well-Known Member

  11. Nudaii

    Nudaii Well-Known Member

    If you want to scan whole forum for prefix you can use just this

    Code:
    //All topic mod manual edit by BOP5
                if ($conditions['node_id'] == 6)
                  $sqlConditions[] = 'thread.prefix_id = 1';
              elseif ($conditions['node_id'] == 7)
                  $sqlConditions[] = 'thread.prefix_id = 2';
                else
                    $sqlConditions[] = 'thread.node_id = ' . $db->quote($conditions['node_id']);
                }
            }
     

Share This Page