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

XF 1.2 Hide thread list on forum_view template when There are no threads to display.

maxicep

Active member
#1
Yes, as i said on title of thread, i want to hide thread list block on forum_view template if there are no threads to display.

Because i have subforums on some forum categories and i dont give to allow create thread on these categories. I want show just subforums and hide the thread list template because it says "There are no threads to display message" only.
 

Jake Bunce

XenForo moderator
Staff member
#2
Better to create category nodes instead of using empty forum nodes for that purpose. Category view pages have no thread list. They are strictly for organizational purposes.
 

maxicep

Active member
#3
Yes i have categories too, also forums too and subforums.
I cant re-organize them because viewing is good for now.

I need just condition code for hide "There are no threads to display message" on forum_view
 

maxicep

Active member
#7
Yes i did it of course but as i said it didnt hide.

.node55 .discussionList.section.sectionMain,
.node50 .discussionList.section.sectionMain
{
display: none;
}

Is it right ?
 

Brogan

XenForo moderator
Staff member
#10
This also works, I have just tested it:
Code:
.node10 .forum_view .discussionList.section.sectionMain
{
display: none;
}
If it's not working for you then you're using the wrong node ID.
 

Brogan

XenForo moderator
Staff member
#12
Your style is using non standard classes and elements.
For example: .listborderpath

You will need to adapt the CSS given to suit your style.