Support » Plugin: Cartpauj PM » Autofill feild using URL

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Rod Roark

    (@sunsetsystems)

    Not sure what you mean?

    Thanks for the feedback!

    Thread Starter hardislander

    (@hardislander)

    Hi Rod,

    What I mean is it possible to prefill feilds (to or subject) in the ‘New Message’ form, based on the URL used to access the ‘New Message’ page.

    For example, http://www.domain.tld/your_cartpaujpm_page/?pmaction=newmessage opens a plain ‘New Message’ form with no feilds filled

    Is it possible to do something like http://www.domain.tld/your_cartpaujpm_page/?pmaction=newmessage?to=myusername to open the ‘New Message’ form with the ‘To’ feild prefilled with the value ‘myusername’

    Please Let me know in case the above is still not clear

    hardislander

    Plugin Author Rod Roark

    (@sunsetsystems)

    Thanks for the clarification. No that does not seem to be supported. If someone is motivated to code a solution I’ll be happy to include it in a future release.

    It can be done, by combining “Custom Content Shortcode” plugin and then make a url for example of the format Contact author.

    Works just fine.

    It can be done, by combining “Custom Content Shortcode” plugin and then make a url for example of the format <a class="art-button" href="http://website.com/my-inbox/?pmaction=newmessage&to=[content field="author" meta="ID"]">Offer support to this person via private message</a>.

    Works just fine.

    Hi karel772,
    I know you’ve found the solution to this but I can’t make it work. I’ve installed ‘custom content shortcode’. Would you be able to walk me through it – it’s taken me months to find this solution and I know it will work. It’s the last bit I need to make my site work…
    Many thanks

    Here are the steps:

    – install “Custom Content Shortcode” plugin
    – create article using admin or a user profile
    – put IN THE ARTICLE ITSELF following url for example of the format
    <a class="art-button" href="http://website.com/my-inbox/?pmaction=newmessage&to=[content field="author" meta="ID"]">Offer support to this person via private message</a>
    [content field="author" meta="ID"] will now call the ID of the AUTHOR of the ARTICLE and create the message with the TO field completed with the username of the Author, thus enabling the direct mailing to the author. If this does not work, then the “Custom Content Shortcode” plugin is most likely in conflict with another plugin.

    I hope this helps?

    Hi karel772,
    Thank you. I must be doing something wrong! If I describe what I am doing would you be able to point me in the right direction?
    I am using ‘participants database’. Each user has their own page and a unique ID (private_id). I have put the Cartpauj code on this page [cartpauj-pm]. Custom Content Shortcode is installed. I then adapted your code, changing the url and replacing “author” with “private_id”. I just get a 404 code when I click on the link. Any ideas? Have I set it up correctly. Any help is really appreciated, thanks.

    Ok, but first try these steps:
    1. Put http://website.com/my-inbox/?pmaction=newmessage&to=1 in any post (adjust where needed for url and the page where you have put [cartpauj-pm]). If that link brings up the message template to be sent to the admin of the WordPress installation generated by Cartpauj, then the above step in explained should work in EVERY post. If however you already get here an issue with 404 error message, then there is something wrong with your Cartpauj instance itself.
    2. In case an error occurs, put [content field="author" meta="ID"] in an article post. What do you get, do you get an ID number? If you do this in a post you wrote as admin, then you should get the number 1. If not (no number shown or simply shows the code itself, then you have an issue with the “Custom Content Shortcode” plugin.

    Hi,
    The first step worked, thank you! And you’re correct – it seems as though the problem is due to where I put [cartpauj-pm]. If I place [cartpauj-pm] on the same page as the post it works, if I put [cartpauj-pm] on it’s own page (ie. not on the post page) I get the 404 error. Do you know if I need to add something to [cartpauj-pm] to get it to ‘find’ the separate message page? I’m sure I’m missing something very basic here… many thanks for your help.

    [cartpauj-pm] must be put on its own page, and the url I mentioned before needs to call that page from the post in which you put that url.

    It seems you have not created the actual CartPauj pages. Please do this first. Then you will see all will work.

    Sorted!!! My fault – dyslexic today!
    Many, many thanks. I realise you are not the plugin author but you seemed to have more of a clue than anyone else so I really appreciate you spending time on this 🙂

    You are welcome.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Autofill feild using URL’ is closed to new replies.