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

maxicep

Active member
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.
 
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.
 
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
 
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 ?
 
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.
 
Your style is using non standard classes and elements.
For example: .listborderpath

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