CSS to remove New Topic option in Forum
-
Hi,
Could someone tell me if it’s possible (or even help me with identifying the correct specificity) to stop users from creating new topics in a specific subforum please.
Running BBP as part of a learning management system where user level/access etc are set based on their student/course status. Been fine for 3 years but now I’d like to provide a slightly stricter UI for some specific courses (which means the Forums/Topics).My situation is:
Forum
-Subforum
–Topics
—Replies
–Topics
—Replies
-Subforum
–Topics
—RepliesMy problem is in one of the subforums where the topics created by our teachers are listed but (obviously) the students also see the ‘Create New Topic’ option (which they need elsewhere). I wish to remove that New Topic Creation option there. I can’t do it via the Forum Attributes eg Closed Status because it needs to remain open for other child topics in the same forum.
I thought that using CSS (display:none) to remove the entire New Topic Entry box would work for me but my inexperience shows through because I can’t work it out even after hours looking online.
Is it possible to apply such css by adressing it against a specific post id?
I can remove the new topic box in the browser inspector various ways
(eg .bbp-reply-form, .bbp-topic-form {display: none;} or with #new-topic-0 etc) but I can’t get it done just for the 1 Subforum/Topic) –
This does not work: #bbpress-forums #bbp-forum-POSTIDÂ #new-topic-0. I also tried variations ul.bbp-parent-forum-21435 etcIn this example my Forum is post 21435, the topic in it is 21437 and I want to remove the New Topic Entry box on that page (students should only go to 21437 and use Replies there, not create topics)(sorry, actual forums are in the school system so not public).
Sorry for long post / cry for help. Maybe someone could assist… Thanks
- You must be logged in to reply to this topic.