Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
1 + 8 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     
getVar('uname').""; [/code] add after: [code] echo _PROFILE_MA_REALNAME.": ".$newuser->getVar('name').""; [/code] save & close open profile/include/forms.php find on line 259/260: [code] $elements[0][] = array('element' => new XoopsFormText(_PROFILE_MA_DISPLAYNAME, "uname", $uname_size, 75, $user->getVar('uname', 'e')), 'required' => true); $weights[0][] = 0; [/code] add after: [code] $elements[0][] = array('element' => new XoopsFormText(_PROFILE_MA_REALNAME, "name", $uname_size, 75, $user->getVar('name', 'e')), 'required' => true); $weights[0][] = 0; [/code] (if you don't want the max size of the name to be controlled by the username size then change $uname_size to a numeric value ie. 30 will make it max of 30 characters) *EDIT* as SLEO says, but he used $name_size in his, which isn't defined anywhere so will not function right. u have to use $uname_size or enter a numeric number like i mentioned. if you do actually want to use $name_size instead you would have to define a value for it and do more hacking in xoops_version and language files to add an option to set the max amount and minimum amount in admin.. (not worth the effort i don't think)[/quote]" />

Re: How do I make "Real Name" required on registration?
by tzvook on 2006/10/24 14:26:53

Thanks m0nty & Sleo, you saved me a lot of time ... I began doing it myself and decided to go to the forum first and .... well ... found this

Actually one feature is missing, I did that in the past, but may be a nice feature to be in the profile module ...
in each field, along with the "required field" ability, to have also "send in confirmation/activetion mail.
Re: How do I make "Real Name" required on registration?
by sabahan on 2006/5/3 16:11:13

Quote:

just ignore...problem solved
Re: How do I make "Real Name" required on registration?
by sabahan on 2006/5/3 15:54:01

Quote:

does anyone how to do this in xoops-2.0.13.2
Re: How do I make "Real Name" required on registration?
by massacre on 2005/12/5 18:51:14

Phew... Had to read that a few times. Seems like I have it setup now. Hopefully it works! Thanks m0nty

Oops! you too Sleo!
Re: How do I make "Real Name" required on registration?
by CiberEspia on 2005/11/16 17:06:46

I go to test now?

Who's Online

176 user(s) are online (154 user(s) are browsing Support Forums)


Members: 0


Guests: 176


more...

Donat-O-Meter

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

Latest GitHub Commits