Home › Forums › Front End PM PRO › Email 'to' field not populating
- This topic has 14 replies, 2 voices, and was last updated 8 years, 4 months ago by Chanell.
-
AuthorPosts
-
August 1, 2017 at 9:39 pm #5541ChanellParticipant
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.August 1, 2017 at 10:02 pm #5545ChanellParticipantThis reply has been marked as private.August 1, 2017 at 10:19 pm #5549Shamim HasanKeymasterThank you for contacting.
Can you type your user name and select? Is it filled when you type and click?Regards
ShamimAugust 1, 2017 at 11:49 pm #5552ChanellParticipantYes. When you type the name in the URL it appears.
August 2, 2017 at 12:20 am #5555Shamim HasanKeymasterwhat 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.August 2, 2017 at 3:51 am #5558ChanellParticipantNow 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!
August 6, 2017 at 7:59 pm #5673ChanellParticipanthello
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.August 6, 2017 at 8:41 pm #5679Shamim HasanKeymasterI 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.
August 6, 2017 at 9:15 pm #5682ChanellParticipantAugust 6, 2017 at 9:26 pm #5686Shamim HasanKeymasterYour “&” is url encoded. How are you adding your link? Where are you adding your link? Did you follow my mentioned doc?
Regards
ShamimAugust 6, 2017 at 9:32 pm #5689ChanellParticipantThe 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.
August 6, 2017 at 9:45 pm #5692Shamim HasanKeymasterfor 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.August 6, 2017 at 9:47 pm #5695ChanellParticipantsuccess: function(response) {
<?php
$url = fep_query_url(‘newmessage’, array(‘fep_to’ => get_the_author_meta( ‘user_nicename’) );
?>August 6, 2017 at 9:54 pm #5698Shamim HasanKeymasterSo 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.
August 6, 2017 at 10:18 pm #5701ChanellParticipantThis reply has been marked as private. -
AuthorPosts
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.