1
hiflyer
Require Real Name in registration
  • 2010/4/30 18:04

  • hiflyer

  • Not too shy to talk

  • Posts: 107

  • Since: 2006/3/7 3


I hacked my 2.0 to require Real Name for new registrations but can't find the right files/locations in 2.4.

Any suggestions on where to hack to require Real Name for new registrations? (This would be a nice Admin option, btw.)

Thanks!

2
ghia
Re: Require Real Name in registration
  • 2010/5/1 8:17

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Can you show your previous hack here (or a pointer to)?

3
hiflyer
Re: Require Real Name in registration
  • 2010/5/1 14:41

  • hiflyer

  • Not too shy to talk

  • Posts: 107

  • Since: 2006/3/7 3


Hmm, it was a couple years ago and that site is no longer running.
I edited include/registerform.php to add at line 143:

// Add Real name required

$reg_form->addElement(new XoopsFormText(_US_REALNAME, "name", 26, 25, $myts->htmlSpecialChars($name)), true);

// End Real Name


That file has completely changed in 2.4

I tried similar "name" additions in register.php and modules/profile/register.php and one other I can't remember now (sorry, late night experimenting with no documenting...)



4
Mazarin
Re: Require Real Name in registration
  • 2010/5/1 16:18

  • Mazarin

  • Just can't stay away

  • Posts: 533

  • Since: 2008/12/10


What about using the profiles module?

5
iHackCode
Re: Require Real Name in registration

every field had a yes or no radio option for it being required in the profile module's administration. fields tab.
CBB / LatestNews / Publisher / XM-Spotlight

(ノ◕ヮ◕)ノ*:・゚✧

6
hiflyer
Re: Require Real Name in registration
  • 2010/5/1 19:56

  • hiflyer

  • Not too shy to talk

  • Posts: 107

  • Since: 2006/3/7 3


Ah - found it.
Never used 2.2 and this is my first 2.4 site so Profile is new to me.

Thank you!

7
StacyPii
Re: Require Real Name in registration
  • 2010/5/12 13:17

  • StacyPii

  • Just popping in

  • Posts: 27

  • Since: 2010/4/6 1


I cannot add a "Last Name" field to the list.

It says "Error" but doesn't tell me what the error is.

Problem solved; debug mode revealed the error.

Login

Who's Online

55 user(s) are online (25 user(s) are browsing Support Forums)


Members: 0


Guests: 55


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