• Resolved as517

    (@as517)


    Hi. I have 2 questions. Plugin Version 11.3.1.

    1. What is the file view-message-legacy.php in teplate folder responsible for?
    2. Can I get a link to all user messages? Previously, I could filter through the admin panel (Version 8.4) Can I view all messages from a specific user now?

    Thank you for answers.

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

    (@shamim51)

    1. This file do not do anything anymore. In previous single message template there was no sidebar. Many things have changed in current version’s single message template. This file is there so that if any user want to use previous layout of single message, they can use this file.

    2. Currently you can view all messages from Dashboard > Front End PM > All Messages, but this does not allow to show only for specific user.

    Thread Starter as517

    (@as517)

    Thank you. I find solution how to show messages for specific user

    
    add_filter( 'fep_table_prepare_items_args', function( $args, $message_type ) {
        if( ! empty( $_GET['is_user_id'] )
        ) {
            $args['participant_query'][] = array(
                'mgs_participant' => trim( $_GET['is_user_id'] ),
            );
        }
        return $args;
    }, 10, 2 );
    

    And in admin panel I need just add to URL &is_user_id={USER_ID}

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Template files & all user messages’ is closed to new replies.