Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to remove "Change Topic"?

Viewing 17 replies - 1 through 17 (of 17 total)
  • @netweb

    Keymaster

    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.

    Functions files and child themes – explained !


    https://codex.bbpress.org/theme-compatibility/

    @leonyipa

    Participant

    I created a test account and created a topic, he can move the topic too :/

    @netweb

    Keymaster

    What WordPress role does the user have?
    What bbPress role does the user have?

    @leonyipa

    Participant

    i have participant (bbpress)
    and subscriber (wordpress)

    @netweb

    Keymaster

    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.

    @leonyipa

    Participant

    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! 🙂

    @netweb

    Keymaster

    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

    @leonyipa

    Participant

    thanks! how do I change form-topic.php?

    @leonyipa

    Participant

    Thanks, I found out how to remove it now!!!

    Thank you very much!!! 🙂

    @leonyipa

    Participant

    @netweb I tried but I cannot remove it, can you tell me which piece of code do I need to remove? Thanks 🙂

    @leonyipa

    Participant

    bump

    @leonyipa

    Participant

    bump please,

    I tried but I cannot remove it, can you tell me which piece of code do I need to remove? Thanks

    @leonyipa

    Participant

    I tried to remove the code, but I cannot figure out which piece of code I should remove :S

    @netweb

    Keymaster

    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#L109

    From:

    
    <?php if ( !bbp_is_single_forum() ) : ?>
    

    To:

    
    <?php if ( ! ( bbp_is_single_forum() || bbp_is_topic_edit() ) ) : ?>
    

    @leonyipa

    Participant

    thanks!! 🙂

    @leonyipa

    Participant

    @netweb
    it worked, the topic change is gone.

    However, when I try to edit a topic, the topic didn’t change and it says:

    null

    @netweb

    Keymaster

    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.

Viewing 17 replies - 1 through 17 (of 17 total)
  • You must be logged in to reply to this topic.
Skip to toolbar