Email 'to' field not populating


Home Forums Front End PM PRO Email 'to' field not populating

This topic is: Resolved
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #5541
    Chanell
    Participant

    Hello

    I have recently started having problems with being able to populate the ‘to’ field from a link. The link is displaying correctly with the appropriate user name, but the to field remains empty. This is the case in Safari, Chrome and Firefox.

    An example is in the attachment.

    Attachments:
    You must be logged in to view attached files.
    #5545
    Chanell
    Participant
    This reply has been marked as private.
    #5549
    Shamim Hasan
    Keymaster

    Thank you for contacting.
    Can you type your user name and select? Is it filled when you type and click?

    Regards
    Shamim

    #5552
    Chanell
    Participant

    Yes. When you type the name in the URL it appears.

    #5555
    Shamim Hasan
    Keymaster

    what are you passing as “to” is url? Is it user nicename (slug)?
    Can you please go to “Directory” and click “Send Message” and see if that working?
    Let me know.

    #5558
    Chanell
    Participant

    Now I am using the nicename and it is working. After your message I checked and realised the url did not have nicename specified, so was using the display name.

    Thanks for your help!

    #5673
    Chanell
    Participant

    hello

    So my plugin updated today, and since I am no longer able to have the nicename appear in the ‘to’ field.

    I have noticed that the url now includes a message number, but when i delete the message number from the url it works fine.

    Is there an option to disable the message number from appearing?

    Attached are two screen shots showing the url with the message number and the url without.

    Attachments:
    You must be logged in to view attached files.
    #5679
    Shamim Hasan
    Keymaster

    I think you have sent same screenshot. In Both screenshot it is showing “To” field is filled.
    Please let me know which one not working.

    Also please see updated doc for more info. https://www.shamimsplugins.com/docs/front-end-pm/customization/user-name-pre-populate-new-message/

    Please let me know.

    #5682
    Chanell
    Participant

    Apologies. see attached.

    Attachments:
    You must be logged in to view attached files.
    #5686
    Shamim Hasan
    Keymaster

    Your “&” is url encoded. How are you adding your link? Where are you adding your link? Did you follow my mentioned doc?

    Regards
    Shamim

    #5689
    Chanell
    Participant

    The link is fep_query_url(‘newmessage’, array(‘fep_to’ => get_the_author_meta( ‘user_nicename’) ))

    I added the & to the url manually just now test it. The point is, populating the ‘to’ field works when i replace “/?fepaction=newmessage#038;fep_to=hechanell” (generated with the link above) with “/?fepaction=newmessage&fep_to=hechanell”.

    The message number seems to only have appeared in the link after I updated the plugin today. When I remove it manually and type ‘&’, it works.

    #5692
    Shamim Hasan
    Keymaster

    for security reason url is passed through esc_url but this should not break the link. Are you adding full <a href="<?php echo fep_query_url('newmessage', array('fep_to' => get_the_author_meta( 'user_nicename') ) ); ?>">Send Message</a> or something else? Please give me code what you are adding.

    #5695
    Chanell
    Participant

    success: function(response) {
    <?php
    $url = fep_query_url(‘newmessage’, array(‘fep_to’ => get_the_author_meta( ‘user_nicename’) );
    ?>

    #5698
    Shamim Hasan
    Keymaster

    So you are using in ajax?
    Please use following

    
    $args = array(
        'fepaction' => 'newmessage',
        'fep_to' => get_the_author_meta( 'user_nicename')
    );
    $url = add_query_arg( $args, get_permalink( fep_page_id() ) );
    

    Let me know.

    #5701
    Chanell
    Participant
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 15 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.