New message form autopopulated specific to user


Home Forums Front End PM PRO New message form autopopulated specific to user

This topic is: Not Resolved
Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #9728
    David
    Participant

    Hi, me again!

    I want to generate a new message form via php which will be autopopulated with recipient and message title. However, I only want to make it show for a specific user. All other users will not see the form.

    Appreciate any help you can offer.

    Thanks very much!

    #9731
    David
    Participant

    Sorry, not a specific user but a specific user role “business”.

    Thanks

    #9742
    Shamim Hasan
    Keymaster
    #9745
    David
    Participant

    Hi, thanks for that.

    I tried the fep_shortcode new_message_form in php but couldn’t display the form. So I tried all the shortcodes in a new page and got the following results:

    [fep_shortcode_new_announcement_count] – not displaying
    [fep_shortcode_new_message_count] – not displaying
    [fep_shortcode new_message_form] – not displaying
    [front-end-pm] – working ok
    [fep_shortcode_message_to] – working ok

    Am I missing something?

    #9748
    David
    Participant

    Sorry for the mistype. I confirm I have tried [fep_shortcode_new_message_form] and it is not working. Also tried it on another site and no display.

    #9766
    Shamim Hasan
    Keymaster

    As you not supplying any “to” argument with this shortcode, by default this will send message to page author where you added this shortcode.
    Please not that if you are not logged in or same as “to” user, no form will show. So if you are that page author no form will show. Try create a test user account and log in with that account to see the form in action.

    #9772
    David
    Participant

    Yes, sorry you are right, and now I have read the note at the bottom of that page. Sorry about that.

    Anyway, I am trying to make it work using an input from another plugin. At the moment I am using the following link:

    href=”https://mysite.com/offer/?fepaction=newmessage&to=$adcontact_name&message_title=Re: $title

    where $adcontact_name gives the user nicename generated by the plugin.

    Unfortunately if I use it in the shortcode as follows it doesn’t work;

    echo do_shortcode(“[fep_shortcode_new_message_form to=$adcontact_name subject=Re: $title]”);

    Any ideas or help would be appreciated.

    #9785
    Shamim Hasan
    Keymaster

    What it shows?Does it shows any error? Does form showed up?

    #9788
    David
    Participant

    If I use the first link:

    href=”https://mysite.com/offer/?fepaction=newmessage&to=$adcontact_name&message_title=Re: $title

    everything works great.

    But if I use the shortcode:

    echo do_shortcode(“[fep_shortcode_new_message_form to=$adcontact_name subject=Re: $title]”);

    the form does not show.

    #9791
    Shamim Hasan
    Keymaster

    Are you logged in when visit that page? are you logged in same as $adcontact_name?

    #9794
    David
    Participant

    No, I’m logged in as Administrator. I want the form to be prepopulated with the name of the ad contact name. So it will change for every ad.

    #9798
    Shamim Hasan
    Keymaster

    Can you give me access to your website so that i can try?

    #9801
    David
    Participant

    I’ll keep trying and let you know. I think I may have figured it out.

    #9809
    David
    Participant

    No still not working. $adcontact_name from the other plugin works ok in the link but does not work in the shortcode. I have asked the other plugin guys if they can offer any help.

    I don’t really want to give access to the site at the moment. Thanks for the offer but I will see if I get anything from the other plugin first.

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