Who has read the announcement ?


Home Forums Front End PM PRO Who has read the announcement ?

This topic is: Resolved
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #35501
    Jan Sørensen
    Participant

    How can I see who has read the announcement? I want to follow up the receipients.
    Is it better to do that with groups ?
    Thanks for your follow up.

    #35516
    Shamim Hasan
    Keymaster
    #35520
    Jan Sørensen
    Participant

    You are absolutely correct when it comes to messages, either single, multiple or groups. BUT I asked if that read receipt in Announcement
    I cannot see those who have read there !?
    JanB

    #35533
    Shamim Hasan
    Keymaster

    You can add following code in your theme’s (child theme’s if you are using) functions.php to show in announcement.

    add_action( 'init', function(){
        add_action( 'fep_display_after_announcement', array( Fep_Read_Receipt::init(), 'display_read_receipt' ), 99 );
    });
    
    #42826
    Jan Sørensen
    Participant

    Dear Developer.
    You helped me with the fantastic code :
    add_action( ‘init’, function(){
    add_action( ‘fep_display_after_announcement’, array( Fep_Read_Receipt::init(), ‘display_read_receipt’ ), 99 );
    });

    is it possible to have this only visible for admin?
    Thanks in advanced
    JanB

    #42836
    Shamim Hasan
    Keymaster

    Yes possible. Please use following code

    add_action( 'init', function(){
        if( fep_is_user_admin() ){
            add_action( 'fep_display_after_announcement', array( Fep_Read_Receipt::init(), 'display_read_receipt' ), 99 );
        }
    });
    
    #42870
    Jan Sørensen
    Participant
    This reply has been marked as private.
    #42880
    Jan Sørensen
    Participant

    Dear sir.

    The code what I have copied into the function.php is the following:

    add_action( ‘init’, function(){
    add_action( ‘fep_display_after_announcement’, array( Fep_Read_Receipt::init(), ‘display_read_receipt’ ), 99 );
    });

    add_action( ‘init’, function(){
    if( fep_is_user_admin() ){
    add_action( ‘fep_display_after_announcement’, array( Fep_Read_Receipt::init(), ‘display_read_receipt’ ), 99 );
    }
    });

    —-
    But the problem that I tried to describe is that I want the message : Read …. is ONLY visible for med (admin).
    Now it is visible for everyone.

    Please help.!!

    #42885
    Shamim Hasan
    Keymaster
Viewing 9 posts - 1 through 9 (of 9 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.