Remove Topic Toolbar from certain categories
-
Hello,
Is there a way to remove the topic toolbar from certain categories? The bar at the bottom that shows New Topic, Topic Tools, Sort by etc?I have a few categories that have sub categories, i only want people to be able to post, see that bar etc in the sub categories, not the main one. I tried adjusting privileges but that bar still shows even if they cant post to it.
Thanks,
-
@pichalite Nope.. The users cannot post to the main category just the sub categories.. So i just though that those buttons would confuse people since they dont do anything anyway... (I made a mistake on my original post... New Topic doesnt show since it is disabled for registered users via privileges but the rest of the toolbar (Ignore, Sort by) and the banner: "There are no topics in this category.
Why don't you try posting one? " still shows when i dont think it should. Thanks, -
@whitts @MJ you can edit the template to make it work
nodebb-theme-persona/templates/category.tpl at master · NodeBB/nodebb-theme-persona
Persona - A modern and responsive NodeBB theme. Contribute to NodeBB/nodebb-theme-persona development by creating an account on GitHub.
GitHub (github.com)
enclose the DIV at this line with this
<!-- IF topics.length --> <!-- ENDIF topics.length -->
To remove the no topics in this category message... delete the lines 27 - 31
nodebb-theme-persona/templates/category.tpl at master · NodeBB/nodebb-theme-persona
Persona - A modern and responsive NodeBB theme. Contribute to NodeBB/nodebb-theme-persona development by creating an account on GitHub.
GitHub (github.com)
-
@whitts Oh yes... forgot about that.
Move the IF condition at this line to cover the DIV tag at line 17
https://github.com/NodeBB/nodebb-theme-persona/blob/master/templates/category.tpl#L8If you remove the "Create Topics" privilege then the toolbar will be hidden. It will be visible for Admins though.