2011-04-21, 08:30 AM
.
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
#
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:
Looks like I can add hidden fields to the member_register_agreement template, anyone have a better idea?
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
#
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?
Looks like I can add hidden fields to the member_register_agreement template, anyone have a better idea?