• Hello,

    I am looking for a way to send a new private message from a post. On my site, all the posts are created by users. Other users should be able to contact them about the actual post.

    Is there a way to set up the New Message form on the post so that it ultimately sends to the author of that post?

    Thanks

    Damien

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter damienoneill2001

    (@damienoneill2001)

    Hello,

    I have tried adding the following code to show a “Send Message” button:

    <?php echo '<div class="fep-column"><a href="' .fep_query_url( "newmessage", array( "to" => get_the_author_meta( 'user_nicename'))).'">'.__("Send a Message", "front-end-pm").'</a></div>'; ?>

    This results in ?fepaction=newmessage&to=username being appended to the URL, the page refreshes but nothing else happens.

    Ideally, I would like to see the form on the post page as I currently have a modal open when an “Ask A Question” button is clicked.

    On a side note, I have spotted the FEP Menu Widget and when I press the buttons, the same behaviour happens. There are no console errors.

    Damien

    • This reply was modified 7 years, 8 months ago by damienoneill2001. Reason: fixing typo
    Plugin Author Shamim Hasan

    (@shamim51)

    Please set “Front End PM Page” in Dashboard > Front End PM > settings > General.

    Also please note that Next version will have New Message Form which you can place anywhere. Also it can send message to post author directly.
    Next version is in testing stage. May be will be released end of this month.

    Next version will be a major version.
    There are lots of new features and many improvements in this version. So it need more testing. I will try to release this as beta version next week so that others can help me for testing.

    Regards
    Shamim

    Thread Starter damienoneill2001

    (@damienoneill2001)

    Hi Shamim,

    Thanks for the response, I appreciate it.

    What should I set the Page setting to? The page that I want to show this option on the posts within a CPT.

    That sounds great about the new option on the way. I would love to get a copy of the Beta version when you are ready with it and I can give my feedback on any issues I notice. Is there a place for me to sign up for it?

    Damien

    Plugin Author Shamim Hasan

    (@shamim51)

    Set page where you want to show message system ( must have front-end-pm shortcode in content of that page.)

    For some reasons this plugin is developed in a private repo. I will release here when ready. I may update https://github.com/shamim2883/front-end-pm (but not sure)

    Thread Starter damienoneill2001

    (@damienoneill2001)

    Hi Shamim,

    I was wondering if you had an update on the beta release you were working on? I would love to test it out!

    Thanks

    Thread Starter damienoneill2001

    (@damienoneill2001)

    Disregard! I just saw the Sticky post ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Send a new message from a post’ is closed to new replies.