WordPress.org

Forums

Events Made Easy
[resolved] Use in RSVP form the WP profile data (11 posts)

  1. dreifus
    Member
    Posted 1 year ago #

    Hi

    first, EME is a great plugin, i love it!

    I´m having some trouble, my site is gonna have lot´s of events and i don´t want the user to have to fill a form for every event he wants to be, so i would like to have him register in my WordPress (aswering some custom fields) and once he is logged he would have just to click in a button to book to an event without filling a form again

    i have looked around the documentation and this forum but i can´t find an answer, is this possible?

    thanks in advance

    http://wordpress.org/plugins/events-made-easy/

  2. Franky
    Member
    Plugin Author

    Posted 1 year ago #

    Yes this is possible: you can choose to allow bookings only for logged-in wp users, and then their name and email info is taken from their profile. You can also set the minimum number of seats to book to 1 (and the max also if wanted), so then they would just click on "Register" and done.

  3. dreifus
    Member
    Posted 1 year ago #

    but can i get some extra info from his profile so it shows in the event list, like his address?

  4. Franky
    Member
    Plugin Author

    Posted 1 year ago #

    That's currently not possible ... you can post a feature request for that at http://www.e-dynamics.be/bbpress

  5. dreifus
    Member
    Posted 1 year ago #

    no idea how i could solve that for now? even if i have to put the form with extras fields and put display:none to it...

    thanks for the reply

  6. Franky
    Member
    Plugin Author

    Posted 1 year ago #

    What you can try: create extra form-fields (see http://www.e-dynamics.be/wordpress/?cat=44 ) and then use the wordpress form filter eme_add_booking_form_filter (see http://www.e-dynamics.be/wordpress/?cat=41 ) to change the value of that field to be what you want (e.g. the address) and make it read-only.

  7. dreifus
    Member
    Posted 1 year ago #

    i´m sorry, how can i do that? i already have the custom fields in the profile

    so in my theme function.php i should put something like what?

    add_action('eme_add_booking_form_filter','eventrec');
    function eventrec($booking) {
    
    }
  8. Franky
    Member
    Plugin Author

    Posted 1 year ago #

    Read up on filters here:
    http://codex.wordpress.org/Plugin_API
    and
    http://www.e-dynamics.be/wordpress/?cat=41 links to filter info as well.

  9. dreifus
    Member
    Posted 1 year ago #

    thank you

  10. dreifus
    Member
    Posted 1 year ago #

    found a simple solution that doesn´t require much, i´m posting it here so it might help someone else

    this is how i done it:

    1- i´ve created the extra user profile fields and modified the registration page so it requires it when the person is registering

    2- i´ve created the extra fields on events made easy

    3- i installed the plugin User meta shortcodes

    4- last, on EME configuration > RSVP > RSVP: Form Format
    place there the 3 required fields like that #_NAME #_EMAIL #_SEATS
    but the extra fields, instead of placing like #_FIELD1, #_FIELD2...
    you place like this
    <input type='text' name='FIELD1' value='[userinfo field="last_name"]{{empty}}[/userinfo]'>

    replacing the "last_name" with the indentifier of the wp user profile field you want

  11. Franky
    Member
    Plugin Author

    Posted 1 year ago #

    Nice clean solution! I didn't know that plugin, but it seems to work nicely.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Made Easy
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.