SmartFAQ is developed by The SmartFactory (https://www.smartfactory.ca), a division of InBox Solutions (https://www.inboxsolutions.net)

How can I make real name a required field for user registration?
For XOOPS 2.0.10 change following: include/registerform.php After line 69
$reg_form->addElement(new XoopsFormText(_US_NICKNAME"uname"$uname_size$uname_size$myts->htmlSpecialChars($uname)), true);
insert
$reg_form->addElement(new XoopsFormText(_US_REALNAME"name"2625$myts->htmlSpecialChars($name)), true);
register.php After line 59
$uname xoops_trim($uname);
insert
$namexoops_trim($name);
After line 143
echo _US_USERNAME.": ".$myts->htmlSpecialChars($uname)."<br />";
insert
echo _US_REALNAME.": ".$myts->htmlSpecialChars($name)."<br />";
After line 153
<input type='hidden' name='uname' value='".$myts->htmlSpecialChars($uname)."' />
insert
<input type='hidden' name='name' value='".$myts->htmlSpecialChars($name)."'/>
After line 183
$newuser->setVar('uname'$unametrue);
insert
$newuser->setVar('name'$nametrue);
--- Additional details submitted by Alanuk on 2006/2/23 13:26:53 I think there is a line missing in register.php: After line 119 $uname = isset($_POST['uname']) ? $myts->stripSlashesGPC($_POST['uname']) : ''; insert $name = isset($_POST['name']) ? $myts->stripSlashesGPC($_POST['name']) : ''; Without this, the user's real name is not posted to the database.


The comments are owned by the author. We aren't responsible for their content.
user

 It is integrated here too.


Hack: Remember Me + Login using Email + Register with Real Name

http://xoops.biz/x7/modules/myhacks/index.php?id=2

 
user

 Could someone update this for the latest release?


I'd love to have this in the latest release and can't find a system option to enable/disable this field, so I assume you have to do it in PHP. Anyone care to write the 2.2 version of this?

 
user

 register.php


I can't locate the register.php file with the lines you mentioned can you please specify its location thank you.

 
user

 how to this in xoops 2.0.13.2


does anyone know how to this in xoops-2.0.13.2

 
user

 Re: how to this in xoops 2.0.13.2


just ignore...problem solved

 
user

 Re: how to this in xoops 2.0.13.2


How can I make location a required field for user registration?

 
user

 How do we require location on registration?


The require real name works great, thank you. I also need to require location on registration. I see somebody has already asked, but no answer. The site I'm working on is a County Community site, and I want to make sure we don't have people registering that were never from here.

 
user

 Re: How do we require location on registration?


Never mind - I figured it out. I used the same code but replaced name with user_from & replaced _US_REALNAME with _US_LOCATION

It appears to be working just fine in my test. I am having trouble when I use my Yahoo e-mail, not getting the activation e-mail. But, that was a problem before the modifications so will look elsewhere for the solution.

Thanks for the code for this!

 


Login

Who's Online

120 user(s) are online (1 user(s) are browsing XOOPS FAQ)


Members: 0


Guests: 120


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!

Did you know ?

You can automatically send a welcome PM (Private Message) to your new members

Random question

How to make xoopsformhidden xhtml-valid?