Shamim Hasan

Forum Replies Created

Viewing 15 posts - 2,041 through 2,055 (of 2,464 total)
  • Author
    Posts
  • in reply to: Add Link to a Business Listing #9625
    Shamim Hasan
    Keymaster

    Please let me know the role slug of those users (“business users” role slug) who have business listing.

    in reply to: Add Link to a Business Listing #9619
    Shamim Hasan
    Keymaster

    You want to display only if message user is given user role or who is seeing that user is given user role?
    Which role you want to display?

    in reply to: Add Link to a Business Listing #9610
    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(){
    	echo '<a href="' . esc_url( home_url( 'business-directory/' ) ). get_the_author_meta('user_nicename') . '">' . get_the_author_meta('display_name') . '</a>';
    });
    
    

    It will add a link to user’s business directory in bottom of every message.

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

    three arguments are sent from fep_action_message_after_send action.
    You can use fep_get_message_with_replies( $id ) to get message with replies of given id.
    Please see functions.php of this plugin to see code.

    in reply to: Activation license #9576
    Shamim Hasan
    Keymaster

    Thank you again.

    For clarification, If you do not update your license, the plugin will still works fine BUT you will not receive update. When you will go to update along with other plugin updates through WordPress you will see error for this plugin.

    in reply to: Page URL in Message #8904
    Shamim Hasan
    Keymaster

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

    
    add_filter( 'fep_filter_message_before_send', 'fep_cus_send_url', 999 );
    
    function fep_cus_send_url( $message ) {
        if( empty( $message['message_content'] ) || $message['post_parent'] )
        return $message;
    
        $message['message_content'] .= '<div>';
        $message['message_content'] .= esc_url( $_SERVER['HTTP_REFERER'] );
        $message['message_content'] .= '</div>';
        
        return $message;
    }
    

    Let me know.

    in reply to: Page URL in Message #8884
    Shamim Hasan
    Keymaster

    You can use fep_filter_message_before_send filter to add $_SERVER['HTTP_REFERER'] to the message.

    in reply to: To not getting populated in Contact button #8857
    Shamim Hasan
    Keymaster

    No. May be you had removed from wrong place.
    I also changed some code which is not related to this. In your code you are showing only your vendors in directory, but your code was wrong, i just corrected that.

    in reply to: To not getting populated in Contact button #8836
    Shamim Hasan
    Keymaster

    Please check now.

    in reply to: To not getting populated in Contact button #8829
    Shamim Hasan
    Keymaster

    Then your first code should should work. Please change your code to what you used before ( with to=”{current-author}” )
    Can you please create an account for me so that i can see?

    in reply to: To not getting populated in Contact button #8806
    Shamim Hasan
    Keymaster

    try removing to=”{current-author}” part and let me know if that works.

    in reply to: Turning bulk action and filter drop down to link/button #8727
    Shamim Hasan
    Keymaster

    Every actions and filters there are lots of coding. There are hook everywhere. So if you know coding you can easily create custom actions and filters.

    in reply to: Email link 404 when user not logged in #8704
    Shamim Hasan
    Keymaster

    Yes, this is correct behavior, when someone click “login” in that red box s/he will be redirected to login page and when login, s/he will be redirected to message page.

    You can even add add_filter( 'fep_using_auth_redirect', '__return_true' ); in your theme’s (child theme’s if any) functions.php so that you will be redirected to login page automatically if not logged in. So no need to click login.

    You can also set who can access message system in Dashboard > Front End PM PRO > Settings > Security

    in reply to: Email link 404 when user not logged in #8669
    Shamim Hasan
    Keymaster

    Can you please give me your message page url and create a test user for me?

    in reply to: Email link 404 when user not logged in #8663
    Shamim Hasan
    Keymaster

    If they are not logged in they should be given a link to login, after successful login they should see message.
    Please check following
    1. set “Front End PM Page” in Dashboard > Front End PM PRO > Settings > General
    2. login page url is correct

    Let me know.

Viewing 15 posts - 2,041 through 2,055 (of 2,464 total)