1
fibag
inserting DB fields
  • 2005/5/7 10:27

  • fibag

  • Just popping in

  • Posts: 5

  • Since: 2005/5/6 1


Hi,

I've edited register.php & registerform.php in order to add the complete member address (with US states and countries lists) to the user information.

I also changed the xoops_user DB scheme to have those new fields in it.

The mail is sent to the user and just before clicking on the "finish" button, the right info is displayed, but only the original info (i.e. nickname, url, email) are written to the DB.

In the register.php, I've also add the lines
$newuser->setVar('fname', $fname);
$newuser->setVar('lname', $lname);
and so on.

What did I miss ?

Thanks in advance for hints

fibag

2
Mithrandir
Re: inserting DB fields

Probably the XoopsUserHandler::insert() method (kernel/user.php) is not adding the fields to the DB query

This will be mucho easier in XOOPS 2.2 where such elements can be added to registration, edit user form and user profile dynamically (not US states, though, but that might just be a matter of a small hack in the XoopsFormSelectCountry class)

3
fibag
Re: inserting DB fields
  • 2005/5/8 12:08

  • fibag

  • Just popping in

  • Posts: 5

  • Since: 2005/5/6 1


Thanks Mithrandir. I modified the user.php file accordingly and ... 't works fine.

fibag

Login

Who's Online

151 user(s) are online (94 user(s) are browsing Support Forums)


Members: 0


Guests: 151


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits