1
Mystikal
Adding messenger fields to registration
  • 2004/5/15 2:04

  • Mystikal

  • Just popping in

  • Posts: 4

  • Since: 2004/5/12


I did a search and did not find anything. I managed to get the boxes and text up on the registration page but when you input.. say.. the AIM SN, it does not post to the database. However, after registered these fields can be populated and it does post to the database. This is what i added so far...

include/registerform.php
lines 78-82
$reg_form->addElement(new XoopsFormText(_US_WEBSITE"url"26255$url));
$reg_form->addElement(new XoopsFormText(_US_YIM"user_yim"2625$user_yim), true); 
$reg_form->addElement(new XoopsFormText(_US_MSNM"user_msnm"2625$user_msnm), true); 
$reg_form->addElement(new XoopsFormText(_US_AIM"user_aim"2625$user_aim), true); 
$reg_form->addElement(new XoopsFormText(_US_ICQ"user_icq"2625$user_icq), true);


and in register.php
lines 158-161

<input type='hidden' name='user_yim' value='".$myts->makeTboxData4PreviewInForm($user_yim)."' />
<
input type='hidden' name='user_msnm' value='".$myts->makeTboxData4PreviewInForm($user_msnm)."' />
<
input type='hidden' name='user_aim' value='".$myts->makeTboxData4PreviewInForm($user_aim)."' />
<
input type='hidden' name='user_icq' value='".$myts->makeTboxData4PreviewInForm($user_icq)."' />


then obviously the lang/user.php file. Are there other places I need to add code or do I need to add anything to these lines? TIA

2
Mystikal
Re: Adding messenger fields to registration
  • 2004/5/15 17:18

  • Mystikal

  • Just popping in

  • Posts: 4

  • Since: 2004/5/12


Anyone? Bueller?

3
Mystikal
Re: Adding messenger fields to registration
  • 2004/5/15 17:37

  • Mystikal

  • Just popping in

  • Posts: 4

  • Since: 2004/5/12


Disregard.. I figured it out. Had to add these lines to register.php, lines 203-206 to set the values in place.

$newuser->setVar('user_yim',$user_yim); 
$newuser->setVar('user_icq',$user_icq);
$newuser->setVar('user_aim',$user_aim);
$newuser->setVar('user_msnm',$user_msnm);

Login

Who's Online

309 user(s) are online (68 user(s) are browsing Support Forums)


Members: 0


Guests: 309


more...

Donat-O-Meter

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

Latest GitHub Commits