1
ukandrewf
register.php form fill problem
  • 2007/1/29 15:24

  • ukandrewf

  • Friend of XOOPS

  • Posts: 198

  • Since: 2002/12/2


as an annoymous user trying to register on my site..

http://www.colournation.com/register.php

I CAN'T fill in the username field (but can type in other fields) this means users can't register.

I've tried this under firefox and latest IE but neither browser work.

I think the reason is the the text box size and max characters are both set to '0' ... BUT where do i change that? I thought maybe in register.php but i can't find it in there.

thanks

Andrew

2
ukandrewf
Re: register.php form fill problem
  • 2007/1/29 16:08

  • ukandrewf

  • Friend of XOOPS

  • Posts: 198

  • Since: 2002/12/2


Quote:
$reg_form = new XoopsThemeForm(_US_USERREG, "userinfo", "register.php", "post", true);
$uname_size = $xoopsConfigUser['maxuname'] < 25 ? $xoopsConfigUser['maxuname'] : 25;
$reg_form->addElement(new XoopsFormText(_US_NICKNAME, "uname", $uname_size, $uname_size, $myts->htmlSpecialChars($uname)), true);
$reg_form->addElement($email_tray);
$reg_form->addElement(new XoopsFormText(_US_WEBSITE, "url", 25, 255, $myts->htmlSpecialChars($url)));


the solution appears to be in here /include/registerform.php

but i can't work out where. It appears that a text box is created with size 25 and max characters 25 too which all seems fine but then when it actually loads in a browser it's 0,0 ??

help

3
vaughan
Re: register.php form fill problem
  • 2007/1/29 16:32

  • vaughan

  • Friend of XOOPS

  • Posts: 680

  • Since: 2005/11/26


the obvious place to start is user info settings in the system preferences menu

Maximum length of username

4
ukandrewf
Re: register.php form fill problem
  • 2007/1/29 17:58

  • ukandrewf

  • Friend of XOOPS

  • Posts: 198

  • Since: 2002/12/2


doh!! thanks for that wonder how long it was like that for ;)

Login

Who's Online

118 user(s) are online (59 user(s) are browsing Support Forums)


Members: 0


Guests: 118


more...

Donat-O-Meter

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

Latest GitHub Commits