1
Fairweb
register form,
  • 2006/5/14 7:11

  • Fairweb

  • Just popping in

  • Posts: 4

  • Since: 2006/3/27


Hello,
I would like that people that register at my website by registation the icq, aim, yim en msnm fieds could fill in.

Who can help me to get icq, aim, yim and msnm in register.php.

I hope someone can help me!!!


EDIT: this question is for XOOPS version 2.2.

2
Fairweb
Re: register form,
  • 2006/5/14 17:04

  • Fairweb

  • Just popping in

  • Posts: 4

  • Since: 2006/3/27


NO ONE????


3
sabahan
Re: register form,
  • 2006/5/15 1:02

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


what version of XOOPS are you using 2.2 or 2.0

4
sabahan
Re: register form,
  • 2006/5/15 1:16

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


here's the way to do it in XOOPS 2.0.13.2...just found out how to this myself recently..hope this works for your site


just rememeber backup your files
register.php,include/registerform.php

Open up register.php
find this
$url = isset($_POST['url']) ? trim($myts->stripSlashesGPC($_POST['url'])) : '';


put this below the code
$icq = isset($_POST['user_icq']) ? $myts->stripSlashesGPC($_POST['user_icq']) : '';
$aim = isset($_POST['user_aim']) ? $myts->stripSlashesGPC($_POST['user_aim']) : '';
$yim = isset($_POST['user_yim']) ? $myts->stripSlashesGPC($_POST['user_yim']) : '';
$msnm = isset($_POST['user_msnm']) ? $myts->stripSlashesGPC($_POST['user_msnm']) : '';


in register.php
find this
$stop .= userCheck($uname$email$pass$vpass);
    if (empty(
$stop)) {
        echo 
_US_USERNAME.": ".$myts->htmlSpecialChars($uname)."<br />";

add just after
echo _US_ICQ.": ".$myts->htmlSpecialChars($icq)."<br />";
echo 
_US_AIM.": ".$myts->htmlSpecialChars($aim)."<br />";
echo 
_US_YIM.": ".$myts->htmlSpecialChars($yim)."<br />";
echo 
_US_MSNM.": ".$myts->htmlSpecialChars($msnm)."<br />";


in register.php
find this
<input type='hidden' name='email' value='".$myts->htmlSpecialChars($email)."' />";



add this above the the code
<input type='hidden' name='user_icq' value='".$myts->htmlSpecialChars($icq)."'/>
<
input type='hidden' name='user_aim' value='".$myts->htmlSpecialChars($aim)."'/>
<
input type='hidden' name='user_yim' value='".$myts->htmlSpecialChars($yim)."'/>
<
input type='hidden' name='user_msnm' value='".$myts->htmlSpecialChars($msnm)."'/>


find this in register.php
if ( empty($stop) ) {
        
$member_handler =& xoops_gethandler('member');
        
$newuser =& $member_handler->createUser();
        
$newuser->setVar('user_viewemail',$user_viewemailtrue);
        
$newuser->setVar('uname'$unametrue);


add this code below
$newuser->setVar('name'$nametrue);
$newuser->setVar('user_icq'$icqtrue);
$newuser->setVar('user_aim'$aimtrue);
$newuser->setVar('user_yim'$yimtrue);
$newuser->setVar('user_msnm'$msnmtrue);



next open up include/registerform.php
search for
$reg_form->addElement(new XoopsFormText(_US_NICKNAME"uname"$uname_size$uname_size$myts->htmlSpecialChars($uname)), true);


and add this code below
$reg_form->addElement(new XoopsFormText(_US_ICQ"user_icq"2625$myts->htmlSpecialChars($icq)), false);
$reg_form->addElement(new XoopsFormText(_US_AIM"user_aim"2625$myts->htmlSpecialChars($aim)), false);
$reg_form->addElement(new XoopsFormText(_US_YIM"user_yim"2625$myts->htmlSpecialChars($yim)), false);
$reg_form->addElement(new XoopsFormText(_US_MSNM"user_msnm"2625$myts->htmlSpecialChars($msnm)), false);

lastly update ur system modules...

5
Fairweb
Re: register form,
  • 2006/5/15 7:24

  • Fairweb

  • Just popping in

  • Posts: 4

  • Since: 2006/3/27


I'm using version 2.2

I never used 2.0.

Is the register.php in both versions the same?

Who can tel me???

6
bluenova
Re: register form,

With 2.2 it can be done be creating fields in extended profiles from the XOOPS administration, there is an option to display the field on the registration form.

7
Fairweb
Re: register form,
  • 2006/5/15 8:07

  • Fairweb

  • Just popping in

  • Posts: 4

  • Since: 2006/3/27


thanx for your reaction. I should look better.

I use XOOPS for a few weeks now, so I not now everything already...

Login

Who's Online

124 user(s) are online (84 user(s) are browsing Support Forums)


Members: 0


Guests: 124


more...

Donat-O-Meter

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

Latest GitHub Commits