Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Shamim Hasan

    (@shamim51)

    Which version you are using? Can you please update to latest version (6.4) and try?
    Let me know.

    Thread Starter Georgio

    (@georgio-1)

    Hi
    I updated FEP to 6.4 and WP & all plugins to the latest version and the problem persists.
    It seems that something goes wrong with the roles but I am not completely sure.

    1. I tested with Admin, Author and Subscriber so far. When the receiver is the Admin of the site (me) there is no problem.
    2. FEP normally shows the wp roles but when I deactivated bbpress, FEP added the roles of bbpress as well. That caused confusion because I have allowed 50 messages for Subscriber and 200 messages for Author. From the bbpress point of view Subscriber and Author are both Participants and may become Keymasters if they create a forum in a group. Well, the roles Participant and keymaster were set to 50 messages by default.
    For myself, as a site admin, I set my role to illimited messages, but as a keymaster I am limited to 50 messages by default. If I change that, I guess that it will be applied for the other roles as well, in case they are keymasters of a group forum.

    When I reactivated bbpress, its roles disappeared from the FEP settings.

    After this temporary confusion experience I cannot understand how the roles work for FEP. Should I configure the bbpress roles as well (as how many messages they can receive) or leave them to the default values?

    I ‘ll continue with the other roles tomorrow and I will keep you informed.

    Plugin Author Shamim Hasan

    (@shamim51)

    For keeping messages in messagebox, higher number win. So if a user have 2 roles (role A and role B), and you set 50 messages for role A and 100 messages for role B. So that users will be allowed to keep 100 messages in messagebox.

    Thread Starter Georgio

    (@georgio-1)

    Thanks for your response.

    It seems that the bbpress roles don’t cause problem. The problem is with the wp roles.
    Cases:
    -if Subscriber, Contributor, Author and Editor have an empty Message Box and receive a message, they can see the message but eventually their Message Box shows empty.
    -if these roles have an empty Message Box and receive many messages, they can see only the message they click on first and eventually their Message Box shows empty.

    These roles have to send a message to whatever person in order to see the messages in their Message Box again.

    The Admin role is NOT affected by this problem.

    There is probably a bug.

    Plugin Author Shamim Hasan

    (@shamim51)

    I have created a new user in Subscriber role. Send a message, read that. But everything working correctly.

    View post on imgur.com

    View post on imgur.com

    View post on imgur.com

    Can you please deactivate all plugins and change theme to default theme and try?
    if possible in a fresh wordpress installation.

    Thread Starter Georgio

    (@georgio-1)

    Thank you for the images.

    The problem was with this snippet that I had inserted in my child-theme’s function.php:

    function my_authored_content($query) {
    
    //get current user info to see if they are allowed to access ANY posts and pages
    $current_user = wp_get_current_user();
    // set current user to $is_user
    $is_user = $current_user->user_login;
    
    //if is admin or 'is_user' does not equal #username
    if (!current_user_can('manage_options')){
        //if in the admin panel
        if($query->is_admin) {
    
            global $user_ID;
            $query->set('author',  $user_ID);
    
        }
        return $query;
    }
    return $query;
    }
    add_filter('pre_get_posts', 'my_authored_content');

    This snippet prevents users who can access the dashboard from seeing other users’ content, but I could not imagine that it could affect the messages post-type.

    Thanks for your patience.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Messages disappear temporarily’ is closed to new replies.