Shamim Hasan

Forum Replies Created

Viewing 15 posts - 1,351 through 1,365 (of 2,484 total)
  • Author
    Posts
  • in reply to: Members not able to email other groups #21185
    Shamim Hasan
    Keymaster

    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';

    in reply to: Hide Roles in Front End PM Pro Directory #21170
    Shamim Hasan
    Keymaster

    Add 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

    Shamim Hasan
    Keymaster

    Currently 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.

    in reply to: Add additional words to error output #21137
    Shamim Hasan
    Keymaster

    If 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.

    in reply to: Group Messages #21135
    Shamim Hasan
    Keymaster

    As 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.

    in reply to: Read By Order #21035
    Shamim Hasan
    Keymaster

    I am working on a new version.
    Date not confirmed yet. May be after 2 weeks.

    in reply to: Read By Order #21020
    Shamim Hasan
    Keymaster

    Currently 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.

    Shamim Hasan
    Keymaster

    Add 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);
    
    in reply to: Repies not being forwarded from the piping mailbox #21008
    Shamim Hasan
    Keymaster

    Hi 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.

    in reply to: Emojis in message #20923
    Shamim Hasan
    Keymaster

    Thank you for letting me know. i will investigate more. If this issue from this plugin i will try to solve it in next version.

    in reply to: Disable email to group #20921
    Shamim Hasan
    Keymaster

    add 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);
    
    in reply to: Disable email to group #20889
    Shamim Hasan
    Keymaster

    You 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?

    in reply to: Users in specific role see and respond as one user #20887
    Shamim Hasan
    Keymaster

    You 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.

    in reply to: Users in specific role see and respond as one user #20878
    Shamim Hasan
    Keymaster

    You are typing in “Group Slug” field. You have to type in “Group Members” field. Just bellow that field where you are typing.

    in reply to: Users in specific role see and respond as one user #20860
    Shamim Hasan
    Keymaster

    Please 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.

Viewing 15 posts - 1,351 through 1,365 (of 2,484 total)