Shamim Hasan

Forum Replies Created

Viewing 15 posts - 1,996 through 2,010 (of 2,460 total)
  • Author
    Posts
  • Shamim Hasan
    Keymaster

    I tried in my test installation with shanghai timezone setup and it shows correctly.
    Please again check your timezone setup, if require change to UTC and save, again shanghai and save.
    Then send a message, and check front end as well as back-end to check time of that message.
    Go to Dashboard > Front End PM PRO > All Messages to check that message time in back-end.
    If both places show wrong time, Then deactivate all plugins and change theme to default theme and send message and check time.

    Let me know.

    Shamim Hasan
    Keymaster

    Please go to Dashboard > Settings > General and check your timezone setup.

    Shamim Hasan
    Keymaster

    As you want to send message to users when post is published, you can use following code

    function fep_cus_user_post_send_messaage($post){
    
            $author = get_userdata($post->post_author);
            $author_id = $author->ID;
    	$post_title = $post->post_title;
    	$post_link = get_permalink($post);
    	
    	
            if ($post->post_type !== 'post')
                    return;
            if ( ! function_exists( 'fep_send_message' ) )
                    return;
            // Prepare message data
            $message = array(
                 'message_title' => 'title', //change with message title
                 'message_content' => 'xxx', //change with message content
                 'message_to_id' => $author_id
            );
    	
            $override = array(
                 'post_author' => 1, //change with message sender id
            );
    
            // Send message
           fep_send_message( $message, $override );      
    }
    add_action( 'pending_to_publish', 'fep_cus_user_post_send_messaage', 10, 1 );
    
    Shamim Hasan
    Keymaster
    in reply to: Multisite #10301
    Shamim Hasan
    Keymaster

    Thank you for contacting.
    Sorry to say that, it is a limitation of WordPress core. WordPress uses separate table for each sub-site. Right now i do not see any way other than manually changing code to achieve this.

    in reply to: increase size of text box new_message_form #10274
    Shamim Hasan
    Keymaster

    You can add .fep-form textarea {height: 200px;} in Front End PM PRO > Settings > General > Custom CSS

    in reply to: Email Piping Not Working #10260
    Shamim Hasan
    Keymaster
    in reply to: new_message_form #10241
    Shamim Hasan
    Keymaster

    You can add .fep-label{display:none;} in Front End PM PRO > Settings > General > Custom CSS

    in reply to: new_message_form #10231
    Shamim Hasan
    Keymaster

    1. You can pass heading to shortcode. So shortcode will be like [fep_shortcode_new_message_form heading="Anything"]
    2. You can add #message_title{display:none;} in Front End PM PRO > Settings > General > Custom CSS
    3. To change text add following code in your theme’s (child theme’s if any) functions.php

    
    add_filter( 'fep_form_submit_button', function( $button, $where){
    if( shortcode-newmessage == $where ){
        $button = '<button type="submit" class="fep-button" name="fep_action" value="'. esc_attr( $where ) .'">YOUR TEXT HERE</button>';
    }
    return $button;
    }, 10, 2);
    
    in reply to: Email Piping Not Working #10228
    Shamim Hasan
    Keymaster

    Can you give me access to your website and cpanel so that i can try?

    in reply to: Email Piping Not Working #10202
    Shamim Hasan
    Keymaster

    May be i did not understand you correctly.
    Suppose user A send a message to user B in your website. B receive that message in website and in email. B reply that email. That email goes to piping email and also inserted as reply of that message and send email to user A.

    In this which is not happening?

    in reply to: Changing CSS #10176
    Shamim Hasan
    Keymaster

    You can add your modified css in Dashboard > Front End PM PRO > Settings > General > Custom CSS

    in reply to: Error message to user #10139
    Shamim Hasan
    Keymaster

    No need additional css or jquery to to this, this can be done without any coding.

    1. Go to Front End PM PRO > Settings > Recipient > Only Admins and set your admins
    2. Go to Front End PM PRO > Settings > Security > Role to Role Block and block your customers for New Message (From Role->Customers, To role->All roles, Block For->New Message)

    Let me know.

    in reply to: Users to send emails to admin only #10109
    Shamim Hasan
    Keymaster

    You are welcome.
    Let me know anytime if you find any difficulty using this plugin.

    Shamim Hasan
    Keymaster

    You can return empty array, that will short circuit the function and halt/abort creation of message.

Viewing 15 posts - 1,996 through 2,010 (of 2,460 total)