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

XF 1.2 Forums Closed for Posting Used for Listings

Discussion in 'Styling and Customization Questions' started by Amaury, Feb 17, 2014.

  1. Amaury

    Amaury Well-Known Member

    We have two forums that are closed for posting because they're only used to list other forums, which are open for posting.

    Is it possible to hide the area I've outlined below in those situations?

    Forum.png
     
  2. Steve F

    Steve F Well-Known Member

    Code:
    .node110 .discussionList.section.sectionMain {
    display: none;
    }
    Change the red number to match your node. You can find it by viewing the forum_view and looking inside the <body class="node*** node1">
     
    Breixo and Amaury like this.
  3. Amaury

    Amaury Well-Known Member

    Or just hover over the link. :p
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    That won't work if a URL portion has been defined for the node.
     
  5. Amaury

    Amaury Well-Known Member

  6. Brogan

    Brogan XenForo Moderator Staff Member

    Amaury likes this.
  7. Amaury

    Amaury Well-Known Member

    Ah, whoops. I got myself mixed up. This would have been a better example: http://xenforo.com/community/forums/xenforo-pre-sales-questions.5/. The ID would be 5.

    We don't use custom node URLs, so hovering over them will be sufficient. However, are custom node URLs generally just used to make things neater? If so, I may do that. :)
     
  8. Brogan

    Brogan XenForo Moderator Staff Member

    Yes.
    It's purely aesthetics.

    Be aware though of the implications of using a URL portion.
     
  9. Amaury

    Amaury Well-Known Member

    Doesn't sound like a big problem. It basically means that if I posted a link to our Printing Press forum and later customized its URL, the link wouldn't work. However, I assume custom URLs can be reverted back to the default URLs?
     
  10. Amaury

    Amaury Well-Known Member

    @Steve F

    Can I have the CSS work for both forums or do I need the same CSS twice for both forums?

    Would this work?

    Code:
    .node50 .node55 .discussionList.section.sectionMain {
      display: none; }
    Also, "Watch Forum" and "(You have insufficient privileges to post here.)" are still showing. How can I hide those in those two forums?

    Inspecting the CSS, would these work?

    Code:
    .node50 .OverlayTrigger {
        display: none !important; }
    Code:
    .none50 .linkGroup {
        display: none !important; }
     
    Last edited: Feb 18, 2014
  11. Steve F

    Steve F Well-Known Member

    Code:
    .node55 .discussionList.section.sectionMain,
    .node50 .discussionList.section.sectionMain
    {
            display: none;
    }
    Use commas to separate individual classes that need the same thing applied.

    Not sure on your other question but looks ok.
     
  12. Amaury

    Amaury Well-Known Member

    I also want to hide these on the two forums:
    Watch Forum.png
     
    Breixo likes this.
  13. Breixo

    Breixo Active Member

    Did you solve it?
    That's something nice to add :)
     
  14. Amaury

    Amaury Well-Known Member

    I have not.
     
    Breixo likes this.

Share This Page