1
codyf
Adding realname field to registration form
  • 2005/5/27 2:44

  • codyf

  • Just popping in

  • Posts: 24

  • Since: 2005/5/6 4


Hello again.

I'm trying to add the realname field to the registration form in 2.0.10

I followed the instruction fromhttps://xoops.org/modules/newbb/viewtopic.php?forum=7&topic_id=15514

The field appears in the form but it dosn't save it. The field is blank when you view the users profile. Any suggestions?

2
codyf
Re: Adding realname field to registration form
  • 2005/5/27 20:04

  • codyf

  • Just popping in

  • Posts: 24

  • Since: 2005/5/6 4


Any ideas on this?

I've been playing around with it but still haven't be able to find a solution.

I added $reg_form->addElement(new XoopsFormText(_US_REALNAME, "name", 26, 25, $name), true); to registerform.php

And <input type='hidden' name='name' value='".$myts->makeTboxData4PreviewInForm($name)."' /> to register.php

I get the realname field in the registration form but when you fill it out and register is dosen't save it. I've seen different variations on the edit to registerform.php but non of them seem to work for me. I'm thinking this change in code was for a previous version of XOOPS and thats why it isn't working in 2.0.10

3
catalin12345
Re: Adding realname field to registration form

wait until 2.2 and you will have this option!

4
codyf
Re: Adding realname field to registration form
  • 2005/5/27 22:31

  • codyf

  • Just popping in

  • Posts: 24

  • Since: 2005/5/6 4


It's nice to see that this will be included in 2.2

I feel stupid, I was looking through all the posts for the answers that I overlooked the faq.

For thoughs of you years from now reading this post wondering the samething the answer is here

https://xoops.org/modules/smartfaq/faq.php?faqid=478

So, in short I got it working and just in time as I have to leave for dreaded work in about one minute...

Thanks
Cody

Login

Who's Online

155 user(s) are online (102 user(s) are browsing Support Forums)


Members: 0


Guests: 155


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