Need help integration into forum


Home Forums Front End PM PRO Need help integration into forum

This topic is: Resolved
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #13518
    goldstrikn
    Participant

    Hi Shamimsplugins,

    I’m hoping that I get communication from you, by buying the Pro version of FrontEnd PM. I filled out your contact form twice and I have not received replied to any of them.

    I’m trying to use the following code into my forum, for the most part it works, but the issue is the username or userid of the post doesn’t append it to the send to message. It is always the admin username that gets appended. Here is the code that I used.

    [code]function custom_links($user_id, $post_counter) {

    echo do_shortcode(‘[fep_shortcode_message_to]’);

    }
    add_action(‘asgarosforum_after_post_author’, ‘custom_links’, 10, 2);[/code]

    The $user_id is what I need to pass, but I’m not successful. Please help me with the code.

    Thank you.

    #13524
    shamim
    Keymaster

    I am really sorry you did not received my replies. Both of the time i replied, may be ended in spam folder.

    Please use following code in you theme’s (child theme’s if any) functions.php

    add_action('asgarosforum_after_post_author', function( $user_id, $post_counter ){
        echo do_shortcode( '[fep_shortcode_message_to to="'. fep_get_userdata( $user_id, 'user_nicename', 'id') .'"]' );
    }, 10, 2);
    
    #13555
    goldstrikn
    Participant

    Thanks for your fast response. Indeed your replies did go to spam, but now they’re whitelisted.

    Your code worked, thank you. Now, I have a new place that I need to add the do_shortcode to, but it is not working for me.

    the following is needed to place a button.

    function custom_profile_content($user_object) {
    // My code …
    print_r($user_object);
    }
    add_action(‘asgarosforum_custom_profile_content’, ‘custom_profile_content’);

    How can I add the code?

    Please advise, and thanks again.

    #13567
    shamim
    Keymaster

    Please use following code in you theme’s (child theme’s if any) functions.php

    add_action('asgarosforum_custom_profile_content', function( $user_object ){
        echo do_shortcode( '[fep_shortcode_message_to to="'. $user_object->user_nicename .'"]' );
    });
    
    #13580
    goldstrikn
    Participant

    Thanks again for your great support.

Viewing 5 posts - 1 through 5 (of 5 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.