Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Add a new field to register

Asked Modified Viewed 1,654 times
M
Maiky20
M
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions
asked
Newbie

Hello

I need to enroll in register.php one thing (the reward for registration). Only I can not find the code anywhere, where it writes the data to the database with registration. Also, something like this:
$sql = "INSERT INTO  useri (nickname ,password, email, activation, regdates) VALUES ('$ime', MD5('$pass'), '$email', '$activation', '$regdates')";

Example: Table user_reward VALUES 50 (received the reward for registration 50 points)
And I want to add a field that I mentioned (the reward for registration). I looked at UserFields.class.php, UserFieldsInput.class.php, but I did not find anything there. Therefore, I need you help.
0 replies

2 posts

D
douwe_yntema
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Answered 1 question
answered
Senior Member

In file UserFieldsInput.class.php line 603 I found:

      $result = dbquery("INSERT INTO ".DB_USERS." (".$this->_dbFields.") VALUES(".$this->_dbValues.")");
0 replies
M
Maiky20
M
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions
answered
Newbie

It works. Thank you very much. :)
0 replies

Category Forum

User Administration - 8

Labels

None yet

Statistics

  • Views 0 views
  • Posts 2 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

D
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Answered 1 question
M
M
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet