11
Mithrandir
Re: username size error

-> bug tracker

12
Dave_L
Re: username size error
  • 2004/4/6 12:00

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


tracker

There may be other problems, though. I tried increasing that value, and I still couldn't register a user with a long name. One of these checks in register.php is failing:

if (!$member_handler->insertUser($newuser)) {
   echo 
_US_REGISTERNG;
   include 
'footer.php';
   exit();
}
$newid $newuser->getVar('uid');
if (!
$member_handler->addUserToGroup(XOOPS_GROUP_USERS$newid)) {
   echo 
_US_REGISTERNG;
   include 
'footer.php';
   exit();
}


I glanced at those functions, and didn't see anything obvious, so more debugging is needed.

13
Mithrandir
Re: username size error

OK, all three steps made?

1) Increase value in database table?
2) Increase value in input user form?
3) Increase value in User info settings?

14
Dave_L
Re: username size error
  • 2004/4/6 12:28

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Yes. I doubt if I'll spend any more time on it, since I don't expect to have any need for usernames > 25 characters, and I have more important things to work on.

15
irmtfan
Re: username size error
  • 2004/4/6 13:14

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Quote:

Mithrandir wrote:
OK, all three steps made?

1) Increase value in database table?
2) Increase value in input user form?
3) Increase value in User info settings?


what is input user form?

i change the line in registerform.php but nothing happend
still the same error display

16
irmtfan
Re: username size error
  • 2004/4/10 22:37

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


i have a role playing game in my site that users want to have long username (more than 25 characters).

where is this error?

i cant find this error in the source?

a little guide plz

17
HopeL
Re: username size error
  • 2011/5/20 0:37

  • HopeL

  • Just popping in

  • Posts: 29

  • Since: 2009/8/21


irmtfan,
Did you resolve this issue? I am also trying to increase the amount of characters.

Has anyone been successful increasing the number of characters in the username field using XOOPS 2.2.4?

Thanks,
Hope

Quote:
irmtfan wrote:
i have a role playing game in my site that users want to have long username (more than 25 characters).

where is this error?
i cant find this error in the source?

18
irmtfan
Re: username size error
  • 2012/6/10 5:44

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


After [size=xx-large]8[/size] years still this problem remains unsolved in xoops 2.5.5
but i just found one of the hardcoded lines in Kernel/user.php line 61:

$this->initVar('uname'XOBJ_DTYPE_TXTBOXnulltrue25);


It should be corrected in the next versions.

xoops is full of these kind of hardcoded lines that is painful for utf8 non latin websites to resolve them. because mainly there is no error.
for example in the above mentioned issue, xoops said "the user is successfully modified" but the uname has been cut off after 25 character (latin) and 12-13 characters (multi-byte languages)

the other limits in xoops user table are as below:

the 'bio' field size should be changed to "text" . now it is "tinytext" (127 characters in multi-bytes languages).

the 'user_sig' field size should be changed to "text". Also is "tinytext"

19
Mamba
Re: username size error
  • 2012/6/10 5:56

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


I have reopened the issue in our bug tracker

Please submit Core issues to our bug tracker, or if needed, please reopen old issues, otherwise there is always a chance that if posted here, they might be overlooked.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

20
irmtfan
Re: username size error
  • 2012/6/10 6:43

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Thank you mamba for the reopening of that bug.
i explain more there.
All these kind of limitations should be handled from admin profile module configuration.



Login

Who's Online

195 user(s) are online (108 user(s) are browsing Support Forums)


Members: 0


Guests: 195


more...

Donat-O-Meter

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

Latest GitHub Commits