Modify user's email address
-
- Posts: 59
- Joined: Thu Sep 05, 2013 3:21 pm
Modify user's email address
Does anyone know how I could modify a user's email address or add an additional email address?
- raider_nation
- Posts: 34
- Joined: Mon Aug 26, 2013 8:10 pm
Re: Modify user's email address
I know you can modify the email with the "Edit Profile" page. I am not sure if it will handle multiple emails. You can try adding more than one separated by a comma and see if that works.
- Stutgrtguy
- Posts: 167
- Joined: Sun Oct 20, 2013 3:54 pm
- Location: Colorado
Re: Modify user's email address
hover over administration, click edit profiles, select user, edit email in the box, not sure if the comma works, havent tried multiples
-
- Posts: 59
- Joined: Thu Sep 05, 2013 3:21 pm
Re: Modify user's email address
Thanks guys. Looks like you can't have multiple email addresses in that field. I was able to change the email address though.
Re: Modify user's email address
I am looking into this as well. The trick will be to allow ";" to be added in the email fiels as the script parses this in the send function.
I shall report back directly.
I shall report back directly.
"It is nice to be important, but more important to be nice"~~~ The Rock (Dwayne Johnson)
Re: Modify user's email address
I have solved this for those interested. A few changes had to be made to the email.asp page and good to go.
in email.asp find
replace with
this allows for more than 1 email to be stored/entered
next
find
replace with
This allows ";" to be put in the email field and also allows for more than one instance of "@" in the email field.
When you edit the email do not put a space between emails, just put the ; between the emails. With this work around you can have as many emails per person as you wish. Now this can be taken a bit further with more coding if you wish.
You can make it where only admin can add extra email addresses and not players.
in email.asp find
Code: Select all
'Split email address into the user and domain names.
list = Split(addr, "@")
if UBound(list) <> 1 then
IsValidEmailAddress = false
exit function
end if
Code: Select all
'Split email address into the user and domain names.
list = Split(addr, "@")
if UBound(list) < 1 then
IsValidEmailAddress = false
exit function
end if
next
find
Code: Select all
'Make sure only valid characters appear in the name.
for i = 1 to Len(item)
c = Lcase(Mid(item, i, 1))
if InStr("abcdefghijklmnopqrstuvwxyz&_-.", c) <= 0 and not IsNumeric(c) then
IsValidEmailAddress = false
exit function
end if
next
Code: Select all
'Make sure only valid characters appear in the name.
for i = 1 to Len(item)
c = Lcase(Mid(item, i, 1))
if InStr("abcdefghijklmnopqrstuvwxyz&_-.;", c) <= 0 and not IsNumeric(c) then
IsValidEmailAddress = false
exit function
end if
next
When you edit the email do not put a space between emails, just put the ; between the emails. With this work around you can have as many emails per person as you wish. Now this can be taken a bit further with more coding if you wish.
You can make it where only admin can add extra email addresses and not players.
"It is nice to be important, but more important to be nice"~~~ The Rock (Dwayne Johnson)
-
- Posts: 59
- Joined: Thu Sep 05, 2013 3:21 pm
Re: Modify user's email address
You are the man, that worked perfectly.
Re: Modify user's email address
Awesome!! Glad to help.
"It is nice to be important, but more important to be nice"~~~ The Rock (Dwayne Johnson)