WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Use in RSVP form the WP profile data

[Resolved] Use in RSVP form the WP profile data

  • dreifus
    Member

    @dreifus

    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/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Franky
    Participant

    @liedekef

    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.

    dreifus
    Member

    @dreifus

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

    Plugin Author Franky
    Participant

    @liedekef

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

    dreifus
    Member

    @dreifus

    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

    Plugin Author Franky
    Participant

    @liedekef

    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.

    dreifus
    Member

    @dreifus

    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) {
    
    }
    Plugin Author Franky
    Participant

    @liedekef

    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.

    dreifus
    Member

    @dreifus

    thank you

    dreifus
    Member

    @dreifus

    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

    Plugin Author Franky
    Participant

    @liedekef

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Resolved] Use in RSVP form the WP profile data’ is closed to new replies.