Skip to:
Content
Pages
Categories
Search
Top
Bottom

WP User(subscribers) Not able to Post Reply


  • vickybbpress
    Participant

    @vickybbpress

    Hello Support,
    I am not able to see the reply form for my WP users(as subscriber) who are logged in on website.
    I have checked the code of “form-reply.php” and it is saying in starting that <?php if ( bbp_current_user_can_access_create_reply_form() ) : ?>

    My issue is even I have assign all of my user who’s role “subscriber” to “keymaster” as well, but when I go to my website front end and try to login as user it works but when I go to list of topics it says “You must be logged in to reply to this topic.”

    Please help

Viewing 6 replies - 1 through 6 (of 6 total)

  • Robin W
    Moderator

    @robin-w

    It could be a theme or plugin issue issue, so you’ll need to test to find out which

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Then come back


    vickybbpress
    Participant

    @vickybbpress

    As I am using the plugin bbpress so do I need to copy its template folder inside my current theme.

    Also I am trying this fucntion but it is not working.
    please check this function if it correct
    function rew_assign_role_on_login($user_login, $user) {
    $user_id = $user->ID ;
    $role = get_role($user_id);
    if (empty ($role)) return; //has no role in the database
    if ($role == “subscriber” ) { $new_role = “bbp_keymaster” };
    bbp_set_user_role($user_id, $new_role);
    }
    add_action(‘wp_login’, ‘rew_assign_role_on_login’, 10, 2);

    Thanks


    vickybbpress
    Participant

    @vickybbpress

    Also I have imported the forum data from Xenforo


    Robin W
    Moderator

    @robin-w

    1. no you don’t need to copy any bbpress files into your theme

    2. did you try my suggestions.


    vickybbpress
    Participant

    @vickybbpress

    Hello,
    Sorry for being late reply.
    I can’t disable the plugins because it is commercial website which could lead to stop website.
    Also I have imported the forum data from Xenforo old forum which we are using in past.

    Please suggest


    Robin W
    Moderator

    @robin-w

    ok, sorry but you can only fault find by testing.

    Only having a live site is not a good policy, suggest you invest time in creating a test site

    Creating a Test Site

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