user name pre-populated when click link


Home Forums Front End PM PRO user name pre-populated when click link

This topic is: Not Resolved
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1566
    kalinki
    Participant

    Hi
    If I use the php code, the author is not entered in the “To field”
    https://www.shamimsplugins.com/docs/front-end-pm/customization/user-name-pre-populate-new-message/

    The difference from your link
    _my-website.com/message.html?fepaction=newmessage&to=author_name

    My Link
    _my-website.com/message.html?fepaction=newmessage

    I am not a php programmer, what I must enter exactly, so that the author (user) is displayed in the To field?
    Thank you so much! 😉
    Karin

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

    Thank you for contacting.
    where did you add code and what code you added? did you changed USER with User Slug (nicename) (recommended) or
    user id or user email or user login?

    #1574
    kalinki
    Participant

    Hi
    my request is a “private message Bottom” to the author of the post, which I can paste into any php page. is that possible?
    Look in my file sketch please.
    Thank you
    Karin

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

    any php page? post can have author but every php page does not have author, So how will you get author if do not have one?
    Do you want to send message to a constant author?

    If i understand you correctly can you put what suggested here https://www.shamimsplugins.com/docs/front-end-pm/customization/user-name-pre-populate-new-message/

    Change USER with get_the_author_meta( 'user_nicename')

Viewing 4 posts - 1 through 4 (of 4 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.