1. add an entry to the string_param table
describing the variable you want to create
(I learned to do this by reading the comment
for getOtherUserParams in users.pl).
Here's my insert:
insert into string_param set
type='otherusersparam',
code='newuserzip',
name='User\'s zipcode';
2. Edit the default -> users -> newUserForm
template. Specifically, add an input
that references the new variable you created.
Here's my input tag:
<input TYPE="TEXT" NAME="newuserzip"
VALUE="">
3. Create a new user, and verify that something
was entered into the users_param table
My entry looks something like this:
param_id 1
uid 6
name newuserzip
value 90210
How I did it (Score:1)
1. add an entry to the string_param table
describing the variable you want to create
(I learned to do this by reading the comment
for getOtherUserParams in users.pl).
Here's my insert:
insert into string_param set
type='otherusersparam',
code='newuserzip',
name='User\'s zipcode';
2. Edit the default -> users -> newUserForm
template. Specifically, add an input
that references the new variable you created.
Here's my input tag:
<input TYPE="TEXT" NAME="newuserzip"
VALUE="">
3. Create a new user, and verify that something
was entered into the users_param table
My entry looks something like this:
param_id 1
uid 6
name newuserzip
value 90210
HTH
Re:How I did it (Score:2)
It'll help out the next person that comes along...
lottadot [lottadot.com]