How to remove "Change Topic"?
-
How to remove the “CHange Topic” list in Topic Editor?
-
Only moderators and keymasters would see that you it should not be an issue in the majority of use cases.
If you still want to though create a child theme if you don’t have one already and modify the bbPress template
form-topic.php
.I created a test account and created a topic, he can move the topic too :/
What WordPress role does the user have?
What bbPress role does the user have?i have participant (bbpress)
and subscriber (wordpress)It might be a cache issue, can you try another browser or flush your browser cache as I can’t reproduce the issue locally on my test site.
but is it possible to disable topic moving for everybody by removing the list?
Because I even want to prevent Buddypress group forums admins to move the topic.Thank you very much! 🙂
There is two parts to this:
1. The ‘moderator’ role cannot be currently set to only disable moving topics to another forum currently, to change this though a couple of tweaks to the
form-topic.php
template would achieve this end result.2. There is also a bug where moderators can move a topic to a group forum that they are not a member of that we are looking into in #2639
thanks! how do I change form-topic.php?
Thanks, I found out how to remove it now!!!
Thank you very much!!! 🙂
@netweb I tried but I cannot remove it, can you tell me which piece of code do I need to remove? Thanks 🙂
bump
bump please,
I tried but I cannot remove it, can you tell me which piece of code do I need to remove? Thanks
I tried to remove the code, but I cannot figure out which piece of code I should remove :S
You want to change line #109 in
form-topic.php
https://bbpress.trac.wordpress.org/browser/tags/2.5.4/templates/default/bbpress/form-topic.php#L109From:
<?php if ( !bbp_is_single_forum() ) : ?>
To:
<?php if ( ! ( bbp_is_single_forum() || bbp_is_topic_edit() ) ) : ?>
thanks!! 🙂
@netweb
it worked, the topic change is gone.However, when I try to edit a topic, the topic didn’t change and it says:
I suggest you revert those changes then, it looks like the forum ID is needed and you can’t remove that from the form, I’ll try to come up with something else but nothing comes to mind right at this moment.
- You must be logged in to reply to this topic.