Problem when creating new user from mailing list [message #26359] |
Sun, 17 July 2005 22:48 |
ligesh
Messages: 63 Registered: July 2005
Karma: 0
|
Member |
|
|
Currently when fudforum creates a new user based on the mail from the mailing list, it uses the REAL NAME (instead of the mail-id) as the new username. Is there a reason for this. SHouldn't the mail-id be used?
The problem is that the real name will contain capital letters, and also spaces, which isn't what a person would normally use as a forum login. So is it possible to change the code so that mail-id is used to create the new user?
Thanks.
|
|
|
|
|
|
|
|
Re: Problem when creating new user from mailing list [message #26426 is a reply to message #26414] |
Thu, 21 July 2005 17:14 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
It is not quite as simple as that, the way the forum builds associations is:
Check if posters e-mail is used by existing forum member. If the 1st check fails try to match the user by their name (real name, not mail-id).
If this fails to return data as well then the forum will try to create a new account for the user.
This means if the "login" part of the e-mail was used for the persons name there would be a lot of false positives. If you want to modify the code for yourself look into the match_user_to_post() function inside include/scripts_common.inc
FUDforum Core Developer
|
|
|
Re: Problem when creating new user from mailing list [message #26600 is a reply to message #26426] |
Thu, 28 July 2005 18:23 |
ligesh
Messages: 63 Registered: July 2005
Karma: 0
|
Member |
|
|
Actually i think the current method does have its advantages. WHen fud forum sends out mails on behalf of the forum users, it uses the fudform-id as the REAL NAME.
That would mean that i can recreate the whole forum from scratch by sending the mails in the mailing list back to the fudforum. I am trying to write a script to do that. The only problem is that the passwords would be reset. So you need another function to send mails to all the members the notice that their passwords have changed and also their new passwords.
I am talking about a way to recreate the forum in case everything else fails, but u have all the posts in the forum as mails in the mailing list.
Thanks.
|
|
|