Andrew Perryman
Forum Replies Created
-
AuthorPosts
-
Andrew PerrymanParticipantThis reply has been marked as private.Andrew PerrymanParticipant
Forgot to say, that should have been erase not delete.. 🙂
Andrew PerrymanParticipantHi Shamim,
Thanks for your support for all the above all is now working correctly..
Andrew.. 😉
Andrew PerrymanParticipantHi Shamim,
Thanks for the update I will make the amendments and then update.
One question, how or where do I look to identify the group ID’sAndrew
Andrew PerrymanParticipantHi Shamim,
Thanks for the update, I have completed the needful and removed the above code for group administration.
Thank you very much for input to resolve our self inflicted issue.
If you wish in the future to have a use of an external test bed (staging platform) don’t hesitate to ask..
I will now complete clear down housekeeping.
Andrew.. 🙂
Andrew PerrymanParticipantThe reason I ask the above is because it states a similar change in version 10.1.7 as (2) below..
10.1.7
1. Show users in directory and suggestion only who has access to message system
2. Option added so that user can reply to messages deleted by other user
3. Add html field type in admin settingsI’ll mark thread as resolved.
Look forward to your thoughts on the above code.
Thanks once again.
Andrew
Andrew PerrymanParticipantShamim,
Thanks for your help, all looks good and we are now on version 10.2.1.
I have a bypass setup to allow users to still send to a group even if the original or anybody deletes themselves from a group message.
Is the code below now defunct and included in this version?
// FEPM allow a group to carry on replying in that group if one user deletes (completes housekeeping) from a group message.
add_filter( 'fep_current_user_can', function( $can, $cap, $id ){
if( 'send_reply' !== $cap || $can ) {
return $can;
}
if( ! is_user_logged_in() || fep_is_user_blocked() ) {
return $can;
}
if( ! $id || fep_get_message_status( $id ) !== 'publish' ) {
return $can;
}
if ( in_array( get_current_user_id(), fep_get_participants( $id ) ) ) {
$can = true;
}return $can;
}, 10, 3);Andrew PerrymanParticipantOops that should have been group not drop icon..
Andrew PerrymanParticipantOk Shamim,
The issue to send is fixed, however I now seem to have the drop icon missing in the message box but this could be a result of the staging copy as I can hover and see the anchor tag appear giving the group name.
I will update the production plugin and give it a try.
Andrew
Andrew PerrymanParticipantOk thanksShamim, I will amend..
Andrew PerrymanParticipantPS..
I have updated the staging custom-fepm-config.php plugin file directly from my host file explorer as I getting a scrape nonce check error trying to edit it from the WordPress plugin editor.Probably because it is a staging environment.
Andrew
Andrew PerrymanParticipantHi Shamin,
Just to check I have added this as requested to the staging enviro, can you please check if this is what you meant at about line 56 of the custom-fepm-config.php plugin
Please note and check the placement of the last last semi-colon too?
If (function_exists('get_current_screen')){
if ( is_admin() && 'users' !== @get_current_screen()->parent_base )
{ return $value;};
}
Andrew PerrymanParticipantHi Shamim,
This is the code you issued to restrict roles form our setup.. Did you amend the staging custom-fepm-config.php plugin to test this?
If so and you tested it successfully I will copy the code from the staging plugin copy and place it in the original..The staging copy is still up and running along with your credential access if not, I will take a look but if the code is not there can you amend it for me and the I will copy it across and update the original and then update FE Pro to the latest version.
I’ll await your update..
Thanks…
Andrew
Andrew PerrymanParticipantThis reply has been marked as private.Andrew PerrymanParticipantHi Shamim,
Very sorry I was lazy, I did not see the Wood for trees, I did not see the role to role block! I think this will do the trick and I can set three entries for subscriber , editor, and admin, (block for new message)so they can’t send a new message to a pending role.
Andrew
-
AuthorPosts