1
preachur
emails for usernames problem
  • 2006/12/23 8:58

  • preachur

  • Just can't stay away

  • Posts: 525

  • Since: 2006/2/4 4


I am importing 9000 users from another non-xoops site to xoops.

People are currently registered with their emails as usernames. I just did a test import of the users. Some of the email addresses are too long to be used as login names. I changed the maximum username setting, but still the same problem.

Example:
webmaster@delnortesales.com
got cut down to:
webmaster@delnortesales.c

What can I do?
Magick can never be restrained, but when freely given is thrice regained!

2
preachur
Re: emails for usernames problem
  • 2006/12/23 18:47

  • preachur

  • Just can't stay away

  • Posts: 525

  • Since: 2006/2/4 4


anyone?
Magick can never be restrained, but when freely given is thrice regained!

3
Catzwolf
Re: emails for usernames problem
  • 2006/12/23 18:55

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


Sounds like the length of the field in the database table require extending. Look for email in the users table and extend it and match up the file in the /kernel/user.php file.

$this->initVar('email', XOBJ_DTYPE_TXTBOX, null, true, 60);

The value 60 is the figure to extend here.

hope that helps

4
vaughan
Re: emails for usernames problem
  • 2006/12/23 20:25

  • vaughan

  • Friend of XOOPS

  • Posts: 680

  • Since: 2005/11/26


and that brings another issue you will have..

on the forums, news postings & everything (online users etc) it's gonna display the email address because that would be the username..

i s'pose you could then add an if () statement to edituser.php tho, with a clause that says if uname = email then alert user that they have to change the username for a real username before proceeding..

5
preachur
Re: emails for usernames problem
  • 2006/12/23 20:43

  • preachur

  • Just can't stay away

  • Posts: 525

  • Since: 2006/2/4 4


Hey, thanks. I am going to send out an email to all users to login and change their usernames as soon as the new site is up. I extended the variables in the database and user.php for uname and it works. I just want them to be able to log in to the new system the first time the way they are used to logging in. Then I'm allowing them to change their usernames if they don't want their emails to be visible. Once again, thanks.
Magick can never be restrained, but when freely given is thrice regained!

6
Cuidiu
Re: emails for usernames problem
  • 2006/12/23 21:02

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


You might want to suggest to your users that they not save the login information in their computer (if they have the password manager feature enabled) or they might get confused the next time they login. Just a thought...
Quote:
Hey, thanks. I am going to send out an email to all users to login and change their usernames as soon as the new site is up.
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]

7
preachur
Re: emails for usernames problem
  • 2006/12/23 22:01

  • preachur

  • Just can't stay away

  • Posts: 525

  • Since: 2006/2/4 4


Good idea! I will mention that. Thank you!
Magick can never be restrained, but when freely given is thrice regained!

8
preachur
Re: emails for usernames problem
  • 2006/12/23 22:17

  • preachur

  • Just can't stay away

  • Posts: 525

  • Since: 2006/2/4 4


Okay, slight problem.... I cant seem to get it to allow users to change their usernames. Anyone know how I can do that?
Magick can never be restrained, but when freely given is thrice regained!

9
Briese
Off Topic !
  • 2007/1/27 16:47

  • Briese

  • Just popping in

  • Posts: 39

  • Since: 2002/1/3 1


Hello John!

What is with code-plus.org

Login

Who's Online

236 user(s) are online (153 user(s) are browsing Support Forums)


Members: 0


Guests: 236


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