Shamim Hasan
Forum Replies Created
-
AuthorPosts
-
Shamim HasanKeymaster
Group slug is case sensitive. make sure you have used same group slug as you set in group settings page. I think it will be
$user_groups['instructors'] = 'Instructors';
Shamim HasanKeymasterAdd following code in your theme’s (child theme’s if you are using) functions.php
add_filter( 'fep_directory_arguments', function( $args ){ $role_users_to_hide = array( 'subscriber', 'author' ); //here add as many as you want if ( isset( $args['role__not_in'] ) ) { $args['role__not_in'] = array_merge( $args['role__not_in'], $role_users_to_hide ); } else { $args['role__not_in'] = $role_users_to_hide; } return $args; }, 99);
change/add as many roles slug as you want in place of subscriber, author
January 30, 2019 at 1:13 am in reply to: How to Add Attachment Field in fep_shortcode new_message_form shortcode #21139Shamim HasanKeymasterCurrently attachment is not supported there. You can use
fep_form_fields
hook to add attachment field there but in that case you will not be able to ajax submit that form.Shamim HasanKeymasterIf you edit core plugin code, it will be lost when you update this plugin. It is always better to use hooks.
You can use
fep_before_form_fields
to check if this error present and can replace with your desire error message.Shamim HasanKeymasterAs this is an old topic, it is always better to create a new topic so that i do not miss.
You can use
fep_get_option
to give permission only to admins to send group message.Shamim HasanKeymasterI am working on a new version.
Date not confirmed yet. May be after 2 weeks.Shamim HasanKeymasterCurrently read by’s order is same as participants added order.
But your suggestion is good. We can show read by’s order same as they read. Next version i will modify this.January 24, 2019 at 2:52 am in reply to: Urgent – Disable design feature in code or via backend ( Group messages killed ) #21014Shamim HasanKeymasterAdd following code in your theme’s (child theme’s if you are using) functions.php
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);
Shamim HasanKeymasterHi Kelly,
If you still have the problem please create a new topic as this topic is resolved and your question may lost without solving.By this time you can recheck if you followed https://www.shamimsplugins.com/docs/front-end-pm-pro/getting-started-2/email-piping/ step by step correctly.
Shamim HasanKeymasterThank you for letting me know. i will investigate more. If this issue from this plugin i will try to solve it in next version.
Shamim HasanKeymasteradd following code in your theme’s ( child theme’s if any) functions.php
add_filter('fep_get_user_option', function( $value, $option, $default, $userid, $is_default ){ if( 'allow_emails' == $option && $is_default ){ $value = 0; } return $value; }, 10, 5);
Shamim HasanKeymasterYou want to change default value to unchecked so that user can check that if they want or want to unchecked so that they cannot check and will not get email?
Shamim HasanKeymasterYou can type anything in slug, but in “Group Members” field that makes the difference. See my previous most of post i was telling you have to type in “Group Members” field.
Glad it is working now.
Shamim HasanKeymasterYou are typing in “Group Slug” field. You have to type in “Group Members” field. Just bellow that field where you are typing.
Shamim HasanKeymasterPlease in “Group Members” field type
{role-unparsed}-role_name
(instead of role_name type actual role name). Roles suggestion will show bellow that field. Select role from that suggestion. Then save changes. -
AuthorPosts