• Dear developper,

    i am trying to set up the following page using your plugin:

    1) people register at wordpress to gain access to the page “crew” (√)
    2) once the gained access to “crew”, your plugin displays a formular (√)
    3) once they used your formular to register, the content of the page shall be replaced by a form so that they can update their profile ([pdb_record])?

    Thats means that i don’t wanna use the link which is send via email to complete the registration – all the fields are displayed at the first registration. But how can I display the [pdb_record] depending on which WordPress user is logged in?

    Since every user has to register with WordPress to access the “crew” page, i think the best would be to link the WP id with the id generated by your plugin but how can this be done?

    Thank you in advance!

    https://www.ads-software.com/extend/plugins/participants-database/

Viewing 1 replies (of 1 total)
  • Plugin Author xnau webdesign

    (@xnau)

    maximilian.oertel

    You can add a hidden field to the form that records the WordPress user ID of the current user. Just create the hidden field, make sure it’s included in the form, and give it a default value of “current_user->ID” When the form is presented to the user, the WordPress user ID is filled in and becomes part of the record.

    But you don’t need to do that to accomplish the sequence of events outlined above. What you would do is set up the “thank you” message to include a link to the editable form. It could even be on the same page. Put something like this into your “Signup Thanks Message” setting:

    <p>Thank you, [first_name] for signing up!</p><p>Click here to edit your form: <a href="[record_link]">edit</a></p>

    They click the link and then can edit the form.

    Now, it doesn’t just send them there automatically, but this will at least get them there.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Participants Database] Linking user ID with wordpress user ID’ is closed to new replies.