PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

amember hack

  1. Hi Guys,

    I need help with a hack. I had a developer make me a hack for contact form 7 but cf7 is just not good enough since I need conditional logic and better database access.

    a link to how the hack manifest itself in CF 7 is here
    http://careerjourney.co.uk/wp-content/uploads/2011/02/Picture-3.png

    once the member in logged in (using amember) his email is pre-populated as you can see here:
    http://careerjourney.co.uk/wp-content/uploads/2011/02/Picture-4.png
    this allows the member to submit info to me and gets a copy himself

    I am not a programmer so no idea on how to do this.

    anyone knows how to do this?
    Thanks,
    Nik

    Posted 9 years ago on Monday February 21, 2011 | Permalink
  2. There is a hook you can use to pre-populate fields using code. You would have to use this hook to pre-populate those 2 fields with the username and email of the aMember user. We don't have aMember and haven't used it so we couldn't write the code snippet for you, but it would be extremely easy for a developer who knows aMember to implement this for you.

    This post discusses how to populate a field dynamically using PHP that you add to your themes functions.php file. This is what you would want to use, only you would populate it with the values from aMember for the user and email:

    http://www.gravityhelp.com/forums/topic/using-custom-fields-to-populate-hidden-fields#post-17616

    It should be a simple implementation for any WordPress developer who knows how to use hooks/filters, and any good WordPress developer should.

    If we were familiar with aMember we could have provided a quick snippet for unfortunately we don't use it and aren't familiar with it enough to write the code for you.

    Posted 9 years ago on Monday February 21, 2011 | Permalink
  3. Anyone reading this willing to pick-up some work?

    email me your quote nik@careerjourney.co.uk

    Thank you,
    Nik

    Posted 9 years ago on Monday February 21, 2011 | Permalink
  4. wow, got it sorted myself.

    now time to get 40 forms created

    Thanks for pushing me in the right direction Carl.
    Nik

    Posted 9 years ago on Tuesday February 22, 2011 | Permalink

This topic has been resolved and has been closed to new replies.