MyBB Community Forums

Full Version: {Help, please} PHP + MyBB: How Can I Do This?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
.
Easy Goal: To prefill some custom user fields in the registration form

Simple Version:
If there was no user agreement.

1) Use A query string:
(For example)
/member.php?action=register&data1=example&data2=example2&data3=example3&data4=example4

2) I'm using the PHP In Templates plugin, so the template with the registration form can easily be modified to 'get' the data.

Easy Smile

#
Real Version:
There is a user agreement, and...
/member.php?action=register....
Obviously leads the the "Registration Agreement", which submits (and redirects) to "/member.php?action=register" where you finally see the sign-up form.

This extra step ruins the "easy version", the query string is gone.

PHP + MyBB: How Can I Do This?

a) I've described exactly what I'm trying to do.
b) I know I could waste time hacking the core file 'member.php' and figure it out...

Simple Question:
  • What is the best way to start with data in a query string and pass the data to the registration form?
Thank you



Looks like I can add hidden fields to the member_register_agreement template, anyone have a better idea?
Easiest = just edit the agreement template to pass the input query values onto the next page.
OK, thanks Yumi.