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

XF 1.4 Subforum?

Discussion in 'XenForo Questions and Support' started by tommydamic68, Nov 6, 2014.

  1. tommydamic68

    tommydamic68 Well-Known Member

    Not sure if this is the right term for what I am looking for. I have a "health and nutrtion" section on my forum but want to add a sort of subform on a particular food. How would I safely go about this? I have the "other food" forum already existent but want to move it under the health and nutrition forum as a sub forum. Sort of like this. @Brogan - I used your site as a reference.

    Screen Shot 2014-11-06 at 6.02.27 AM.png

    Here is my forum area. I want to move the "sphynx cats and raw diet" under "sphynx cat health and nutrition" as a "sub forum."

    Screen Shot 2014-11-06 at 6.05.57 AM.png
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Change the parent node of the "other food" forum to be the "health and nutrition" forum.
     
    tommydamic68 likes this.
  3. tommydamic68

    tommydamic68 Well-Known Member

    And the icon carries over?
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    The icon is something I have added.

    You will need to change the Style Properties and uncheck the popup.

    upload_2014-11-6_11-42-55.png

    Then add to EXTRA.css:
    Code:
    .subForumList li .nodeTitle:before
    {
        background: @primaryLight url('@imagePath/path/to/image.png') repeat-x top;
        border: 1px solid @primaryLight;
        content: "";
        margin-right: 4px;
        padding-left: 14px;
    }
    
    .subForumList li .unread .nodeTitle:before
    {
        background: @secondaryMedium url('@imagePath/path/to/image.png') repeat-x top;
        border: 1px solid @secondaryMedium;
        content: "";
        margin-right: 4px;
        padding-left: 14px;
    }
    Updating the CSS to suit.
     
    tommydamic68 likes this.
  5. tommydamic68

    tommydamic68 Well-Known Member

    Will this change effect SEO in anyway?
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

  7. tommydamic68

    tommydamic68 Well-Known Member

    Ok - it changed it to a sub forum, how do I add the forum name, instead of "sub forum." I want just a link and it to appear as yours below messages and discussions.

    Screen Shot 2015-01-31 at 8.56.17 AM.png
     
  8. BassMan

    BassMan Well-Known Member

    Like Brogan said, uncheck the Show sub-forums popup:

    [​IMG]
     
  9. tommydamic68

    tommydamic68 Well-Known Member

    After unchecking sub-forum pop up, adding CSS as described above -it doesn't show anything at all. (n)
     
  10. BassMan

    BassMan Well-Known Member

    I think you have this somewhere in your CSS code:

    Code:
    .Responsive .node .subForumList {
    display: none;
    }
    That's why it's not showing. I think you need to adjust the responsive widths.
     
  11. tommydamic68

    tommydamic68 Well-Known Member

    I can't seem to find it, is there an easy way to search your css without going line by line?
     
  12. Brogan

    Brogan XenForo Moderator Staff Member

    CTRL+F
     
    Amaury likes this.
  13. BassMan

    BassMan Well-Known Member

    And check the Responsive wide settings in style properties.
     
  14. tommydamic68

    tommydamic68 Well-Known Member

    Thanks - I found it here:
    Code:
    node_list.css
    and changed this to 1000px:

    Code:
    .Responsive .node .subForumList
        {
            width: auto;
            max-width: 1000px;
        }
    Not sure why it was set to display: none; however.
     
  15. tommydamic68

    tommydamic68 Well-Known Member

    But sub forum doesn't show on an iPhone for some reason. Nor does it show on the iPhone on @Brogan's site.
     
  16. BassMan

    BassMan Well-Known Member

    Subforums don't show in responsive like mobile.

    Also I think you need to check your Responsive wide settings in style properties and not change this code.
     
  17. tommydamic68

    tommydamic68 Well-Known Member

    Thats not good, any work around?
     
  18. BassMan

    BassMan Well-Known Member

    I've edited my last post. Check above.

    Not sure and hard to check now. I'm on mobile...
     
  19. tommydamic68

    tommydamic68 Well-Known Member

    So, you recommend not changing the code above as I said I had and change settings here in this screen shot below? A little confused...

    Screen Shot 2015-01-31 at 11.19.32 AM.png
     
  20. tommydamic68

    tommydamic68 Well-Known Member

    If I cannot display a sub forum on a mobile device it would be a useless feature, it would be a complete inaccessible forum, makes no sense.
     

Share This Page