Zubrag.com :: Forum

zubrag.com => Password Protect Advanced => Topic started by: baysidegraphics on February 07, 2010, 12:01:15 PM



Title: Adding more fields at signup
Post by: baysidegraphics on February 07, 2010, 12:01:15 PM
Hope someone is out ther to help fix these issues for me - Thanks in advance!

1) I read an article that explained how to add fields since field 4 is assigned to the redirect, however, even though the new fields are entered in the signup.php page, they are not populating the manager.php page.

2) I would like to have the Redirect URL field auto populate in manager.php with the same address in the settings. Here is the code for the changes so far.

Here is a link to the code changes in text format for review:

http://www.baysidegraphics.com/kings/signup.txt


Title: Re: Adding more fields at signup
Post by: 1ststop on March 14, 2010, 05:29:02 AM
What you've done so far seems to be correct, but you haven't mentioned if you have modified the users.def file to include the new fields.

Use notepad to open the .def file and add the new field parameters to it.
e.g.

Login,STRING,30
Password,STRING,15
Email,STRING,15
Redirect URL,STRING,20
Prescriber,STRING,20
npi,STRING,20
dea,STRING,20

The above will add the new fields and display them in manager.php