Jan Sørensen

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 30 total)
  • Author
    Posts
  • Jan Sørensen
    Participant

    FANTASTIC

    You are my hero.

    THANK YOU

    Jan Sørensen
    Participant

    Hi Shamin.
    Maybe I explained myselves not correct. What this code do is to disable the button “Settings” totally. I want members to check / uncheck any of the groups they want to follow. The three options on the top I actually want to have disabled if that is possible.
    I want that options to be fixed on for ever (and not visable).
    Attached is a picture from the admin view. As you see there is a lot of groups members can add to follow (the pic do not show all 🙂 )
    My task is just to disable to show options to cross on / off of the announcement. BUT if that is not possible, I want to hide all those three on the top.

    Attachments:
    You must be logged in to view attached files.
    in reply to: Timestamt is wrong #44442
    Jan Sørensen
    Participant

    You are absolute correct.
    After change to English the line is now: Read by Bjørn Borg Kjølseth @ 10. April 2022 18:17

    If I want the language in backend in Norwegian, is that possible?

    in reply to: Hide Roles in Front End PM PRO – New Announcement page #44425
    Jan Sørensen
    Participant

    I have just put the code into Functions.php and it works exellent:

    }

    add_filter( ‘fep_get_all_groups’, function( $groups ){
    if( ! fep_is_user_admin() ){
    unset( $groups[ 2289 ] );
    }
    return $groups;
    });

    in reply to: Hide one special Group #44361
    Jan Sørensen
    Participant
    This reply has been marked as private.
    in reply to: Hide one special Group #44359
    Jan Sørensen
    Participant
    This reply has been marked as private.
    in reply to: Show Read Message and Announcement only for admin #44218
    Jan Sørensen
    Participant
    This reply has been marked as private.
    in reply to: Show Read Message and Announcement only for admin #44212
    Jan Sørensen
    Participant
    This reply has been marked as private.
    in reply to: Show Read Message and Announcement only for admin #44164
    Jan Sørensen
    Participant
    This reply has been marked as private.
    in reply to: Show Read Message and Announcement only for admin #44158
    Jan Sørensen
    Participant

    If I do unchech that box, it will not show on message, but on announcement.
    My hope was to see the Read msg AND announcement ONLY for Admin.
    Is that not possible?

    in reply to: Show Read Message and Announcement only for admin #44141
    Jan Sørensen
    Participant

    Sorry to come back. As all users they can still see the read message. (or is it only when new message is sendt??

    Here is how the code is today with still showing : Read by ……

    add_action( ‘init’, function(){
    });
    add_filter( ‘wpv_filter_user_query’, ‘sort_by_lastname_func’, 100, 3 );
    add_filter( ‘fep_filter_message_toggle_feature’, ‘__return_false’ );

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

    in reply to: Posting Announcements To Groups #43336
    Jan Sørensen
    Participant

    Hi Simon
    I learned something today when I read your post. I use a lot of Groups and use PM a lot for my 600 members in our MC club.
    I noticed that I have set up a lot of groups in the Messanger part of PM. And also a lot og roles in WordPress. Because I used most of the same roles i WP as groups, I lost the focus of the difference.
    In Announcement PM use the roles you have in WordPress, and in Messenger they use the different groups you make in PM

    The difference is huge and I missed for one sending today, because one user have several roles in WP.
    Maybe I explain in a confusing method, but if you would like to see at my site, I will be happy to show you.
    JanB
    it-ansvrlig@gwcn.no

    in reply to: Who has read the announcement ? #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.!!

    in reply to: Who has read the announcement ? #42870
    Jan Sørensen
    Participant
    This reply has been marked as private.
    in reply to: Who has read the announcement ? #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

Viewing 15 posts - 1 through 15 (of 30 total)