Jan Sørensen
Forum Replies Created
-
AuthorPosts
-
March 2, 2023 at 3:34 pm in reply to: Hide possibility to uncheck to receive e-mail fron announcement #45348Jan SørensenParticipant
FANTASTIC
You are my hero.
THANK YOU
February 27, 2023 at 2:39 pm in reply to: Hide possibility to uncheck to receive e-mail fron announcement #45321Jan SørensenParticipantHi 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.Jan SørensenParticipantYou are absolute correct.
After change to English the line is now: Read by Bjørn Borg Kjølseth @ 10. April 2022 18:17If I want the language in backend in Norwegian, is that possible?
April 14, 2022 at 1:53 am in reply to: Hide Roles in Front End PM PRO – New Announcement page #44425Jan SørensenParticipantI 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;
});Jan SørensenParticipantThis reply has been marked as private.Jan SørensenParticipantThis reply has been marked as private.Jan SørensenParticipantThis reply has been marked as private.Jan SørensenParticipantThis reply has been marked as private.Jan SørensenParticipantThis reply has been marked as private.Jan SørensenParticipantIf 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?Jan SørensenParticipantSorry 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 );
}
});Jan SørensenParticipantHi 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 PMThe 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.noJan SørensenParticipantDear 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.!!
Jan SørensenParticipantThis reply has been marked as private.Jan SørensenParticipantDear 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 -
AuthorPosts