Shamim Hasan

Forum Replies Created

Viewing 15 posts - 2,026 through 2,040 (of 2,464 total)
  • Author
    Posts
  • in reply to: Translation #9896
    Shamim Hasan
    Keymaster

    you mean cannot?
    If you follow that step by step your po file will be updated and you will be able to translate all string.

    Or download attached pot file to translate.

    Attachments:
    You must be logged in to view attached files.
    in reply to: Translation #9884
    Shamim Hasan
    Keymaster
    in reply to: Front End PM PRO features not Working #9850
    Shamim Hasan
    Keymaster

    Yes i understand.
    So is not it going to your set admin now?
    When user send a message, that message should go to directly your set admin. is not it going to your set admin?

    in reply to: Front End PM PRO features not Working #9844
    Shamim Hasan
    Keymaster

    So whats not working? I see everything is ok.

    in reply to: Front End PM PRO features not Working #9829
    Shamim Hasan
    Keymaster

    No PRO features working? Did you deactivate FREE version?
    Can you please give me screenshot of
    1. Dashboard > Front End PM PRO > Settings > Recipient
    2. Dashboard > Front End PM PRO > Settings > Emails

    in reply to: New message form autopopulated specific to user #9798
    Shamim Hasan
    Keymaster

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

    in reply to: New message form autopopulated specific to user #9791
    Shamim Hasan
    Keymaster

    Are you logged in when visit that page? are you logged in same as $adcontact_name?

    in reply to: New message form autopopulated specific to user #9785
    Shamim Hasan
    Keymaster

    What it shows?Does it shows any error? Does form showed up?

    in reply to: New message form autopopulated specific to user #9766
    Shamim Hasan
    Keymaster

    As you not supplying any “to” argument with this shortcode, by default this will send message to page author where you added this shortcode.
    Please not that if you are not logged in or same as “to” user, no form will show. So if you are that page author no form will show. Try create a test user account and log in with that account to see the form in action.

    in reply to: New message form autopopulated specific to user #9742
    Shamim Hasan
    Keymaster
    in reply to: show and reply to specific message ID #9721
    Shamim Hasan
    Keymaster

    That will not be practical because every field require individual type of validation and sanitize.

    You can easily capture id from url and add that in post meta. Use code like

    
    add_action( 'fep_action_message_after_send', function( $message_id, $message, $inserted_message ){
        wp_parse_str( $_SERVER['HTTP_REFERER'], $referrer );
        $id = !empty( $referrer['id'] ) ? absint($referrer['id']) : 0; //Change id with your parameter
        //here if require check some validation
        add_post_meta( $message_id, '_your_custom_meta_key', $id );
    }, 10, 3 );
    
    in reply to: show and reply to specific message ID #9709
    Shamim Hasan
    Keymaster

    You can use $_SERVER['HTTP_REFERER'] to capture id or create a hidden field to provide that id. If you need more secure way you can create 2 hidden field, one for id and another for token created for that id. So that if anybody change that id, that will mismatch token so that you can reject that.

    in reply to: Front End PM PRO features not Working #9701
    Shamim Hasan
    Keymaster

    In PRO version Multiple recipient, email beautify etc feature included. But in extensions page those will not show as installed. Those are separate extensions.

    Can you please check that your role is not blocked? Please go to Dashboard > Front End PM PRO > Settings > Security > Role to Role Block

    Also can you send me your Front End PM PRO > Settings > Emails tab screenshot?

    in reply to: show and reply to specific message ID #9680
    Shamim Hasan
    Keymaster

    When you are getting your ID (from web app)? If you can capture your ID when message sent you can add like bellow code

    
    add_action( 'fep_action_message_after_send', function( $message_id, $message, $inserted_message ){
        add_post_meta( $message_id, '_your_custom_meta_key', $id_from_web_app );
    }, 10, 3 );
    
    in reply to: Add Link to a Business Listing #9631
    Shamim Hasan
    Keymaster

    Please add following code in your theme’s (child theme’s if any) functions.php

    
    add_action( 'fep_display_after_message', function(){
    	$authordata = get_userdata( get_the_author_meta('ID') );
    	
    	if( in_array( 'administrator', $authordata->roles ) ){
    		echo '<a href="' . esc_url( home_url( 'business-directory/' ) ). get_the_author_meta('user_nicename') . '">' . get_the_author_meta('display_name') . '</a>';
    	}
    });
    
    

    Change ‘administrator’ to whatever your user role is. For testing purpose i have used ‘administrator’ so that you can check that only ‘administrator’ role users link will show.

Viewing 15 posts - 2,026 through 2,040 (of 2,464 total)