Support » Plugin: Front End PM » Automatically fill in "To" field in message

  • Resolved msgme

    (@msgme)


    I have a “Send a Message” link on my webpage to message the user who made the post. When clicking on the “username”, it links to the “Create New Message” form on the Front End PM page.

    Is there code I can add to the “link” that will automatically fill in the “username” in the “To” field on the “Create New Message” form, so that the person sending the message does not need to type in the “username” (name of recipient)?

    If not, is there code that can be added in the “edit” PHP file? If so, what is the code and where (what PHP file) do I add it to?

    Thank you.

    https://wordpress.org/plugins/front-end-pm/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Shamim Hasan

    (@shamim51)

    See http://wordpress.org/support/topic/pm-with-author?replies=20 you will get idea.

    You need to pass username along with url.

    Thread Starter msgme

    (@msgme)

    That did it. Here is the code used:

    <a href="http://(wprul)/(Front End PM page slug)/?fepaction=newmessage&to=(username, or Placeholder)">Send Message to (username, or Placeholder)</a>

    Thank you.

    Hello,
    Please let me know how to configure fep-class.php so that it will automatically fill in the “username” in the “To” field on the “Create New Message” form, so that the person sending the message does not need to type in the “username” (name of recipient)? I seen this posted by someone else but what was posted didn’t work for me. I have the latest version of WordPress with the latest version of the ClassiPress plugin. Please help me with this and be clear about exactly what I need to do as I am a beginner. Your help will be very much appreciated.
    My new site is http://www.okeechobeebartering.com .
    Thank you.
    rhowal2014@gmail.com
    Rhonda

    BetsC

    (@betsc)

    Hi there!

    I want my “to” field to automatically be filled with admin as the recipient so that ALL of the messages will automatically be sent to me without a user having to type in admin in the to field.

    I think the code mentioned above will do the trick, so where exactly do I place this code:

    Send Message to (username, or Placeholder)

    Thread Starter msgme

    (@msgme)

    Hi BetsC

    So, if you (admin), are going to be the only “contact” name on your form, then the code would be:

    <a href="http://(wprul)/(Front End PM page slug)/?fepaction=newmessage&to=#_CONTACTUSERNAME">Send Message to #_CONTACTUSERNAME</a>

    #_CONTACTUSERNAME:(this is the Placeholder)

    Alternatively, you could replace (#_CONTACTUSERNAME) with whatever your (username) is for “admin”.

    Best regards.

    BetsC

    (@betsc)

    Thanks msgme!

    That’s what I thought, but I can’t figure out “where” to place this code?

    Any suggestions???

    Betsy

    Thread Starter msgme

    (@msgme)

    Hi Besty,

    I misunderstood what you were asking.

    I placed this code under Settings > Formatting > Events > Single Event Page, and pasted it into the “Default single event format” box. You can place the code anywhere you like before or after other code you might have there, such your location information, etc.

    Michael

    BetsC

    (@betsc)

    Sorry, not trying to make this simple thing hard, …BUT, : )

    I don’t see a “formatting” option when I click on Settings under Front End PM in my WP dashboard? Or under Settings in WP?

    Am I looking in the wrong place?

    Thanks so much!!!

    Betsy

    Thread Starter msgme

    (@msgme)

    Sorry, I am using Front End PM with the Events Manager plug in, so I was referring to the Settings of Events Manager with where to place the code.

    However, if you are using Front End PM as a stand alone plug in, take a look under the “Instruction” section. Here it states the following:

    “Paste following code under the HTML tab of the page/post editor[fep-contact-form]”.

    Try pasting the code we are speaking of under the HTML tab, in addition to the [fep-contact-form], and see if that works.

    Best,

    Michael

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Automatically fill in "To" field in message’ is closed to new replies.