Shamim Hasan

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 2,492 total)
  • Author
    Posts
  • in reply to: All messages are suddenly empty #46039
    Shamim Hasan
    Keymaster

    I have fresh installed the plugin in your website. Please make changes in the settings if required and use.

    Let me know if you face any issue.

    Thank you for being patient.

    in reply to: All messages are suddenly empty #46037
    Shamim Hasan
    Keymaster

    I have investigate your website. There should have 4 db tables related to this plugin where we store message and data for this plugin. But i do not find any table of that. Do you by any chance deleted those tables or taken any action which may have deleted these tables?
    Do you have any backup when this was working?

    in reply to: All messages are suddenly empty #46034
    Shamim Hasan
    Keymaster

    Thank you and credential well received.
    Do you have any staging website so that i can install the plugin and make some changes to debug? If not, I can do the same in production website, but in that case user may temporarily see some errors, is that ok?

    in reply to: All messages are suddenly empty #46032
    Shamim Hasan
    Keymaster

    Do you have any staging server for this website?
    Can you give me access to your staging website so that i can debug? If yes, please send admin and ftp/sftp credentials using https://www.shamimsplugins.com/sensitive-information/

    in reply to: All messages are suddenly empty #46030
    Shamim Hasan
    Keymaster

    Sorry i missed your message.
    Which version of the plugin and wordpress you are using?
    Did it happened after taking any action (Eg. updating wordpress) or without?
    Are you getting any error message?

    in reply to: No Option to send announcements #46027
    Shamim Hasan
    Keymaster

    Are you logged in as admin? By default only admin user can add announcement. If you want to allow any other role you can follow https://www.shamimsplugins.com/support/topic/create-announcements/#post-26559

    in reply to: Problem with /wp-json/front-end-pm/v1/notification #46024
    Shamim Hasan
    Keymaster

    This call is used to show notification of message count in varies places. If you do not want to show that you can disable that in Dashboard > Front End PM PRO > Settings > Misc > Notification (uncheck Show notification, Show count)

    in reply to: Attachments being deleted after a length of time #46022
    Shamim Hasan
    Keymaster

    This plugin does not delete attachments automatically. Do you have any custom code for this plugin?

    in reply to: Email Beautify – no templates shown #46017
    Shamim Hasan
    Keymaster

    Can you confirm if you are using Free or PRO version of the plugin?
    What is the version number?

    in reply to: Multiple sending problem email/front end #46016
    Shamim Hasan
    Keymaster

    When sending to multiple recipients we have 2 settings
    settings 1 (default): Same message: All users will receive same message and replies will be visible to all users
    Settings 2: separate message: All users will receive separate message and replies will not be visible to any other users but sender.

    You can change this settings in Front End PM PRO > Settings > Recipients > Multiple Recipients

    And For email, sender email is not visible to any users. Your email is sent from your systems email address. You can use any Email/SMTP plugin to change that.

    in reply to: Group sending to groups #46015
    Shamim Hasan
    Keymaster

    Currently we can send message to only one group at a time.

    in reply to: Disable messaging for specific user #46014
    Shamim Hasan
    Keymaster

    You can use following code

    add_filter("fep_get_user_option", function( $value, $option, $default, $userid, $is_default ){
        if( $option == "allow_emails" &&  $userid === 123){
            return false;
        }
        return $value;
    }, 10, 5);
    

    You can change user id value to chat you want.

    in reply to: Disable messaging for specific user #46009
    Shamim Hasan
    Keymaster

    You want to disable send message as well or only the email notification?

    in reply to: How to Restrict Messaging to Connected Users #46006
    Shamim Hasan
    Keymaster

    You can add 2 approaches
    Suppose current user id is 2 (you can get that using get_current_user_id()) and connected users of this user in 2,3 and 4 (get that from your member plugin or using query)

    Approach 1. You show only connected users in auto suggestion and in directory.

    add_filter( 'fep_filter_rest_users_args', function( $args, $for, $q, $x ) {
    	$args['meta_query'] = [
                'include' => [2,3,4], //Get ids from member plugin
            ];
    	return $args;
    }, 10, 4 );
    

    Approach 2. restrict user from sending message to only connected users

    add_filter( 'fep_current_user_can', function( $can, $cap, $id ){
        if ( 'send_new_message_to' != $cap || ! $can ) {
    	return $can;
        }
        //Get ids from member plugin
        if( in_array($id, [2,3,4] ) ){
            return true;
        }
        return false;
    }, 10, 3);
    
    in reply to: Styling the Messages Box #46005
    Shamim Hasan
    Keymaster

    Did you try to add your css code in Dashboard > Front End PM PRO > Settings > Appearance > Custom CSS?

Viewing 15 posts - 1 through 15 (of 2,492 total)