Modify user's email address

Post here to discuss topics relate to the 4.x version for the ASP Football Pool software program. All support topics should go here.
Post Reply
kingmullet
Posts: 59
Joined: Thu Sep 05, 2013 3:21 pm

Modify user's email address

Post by kingmullet »

Does anyone know how I could modify a user's email address or add an additional email address?
User avatar
raider_nation
Posts: 34
Joined: Mon Aug 26, 2013 8:10 pm

Re: Modify user's email address

Post by raider_nation »

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.
User avatar
Stutgrtguy
Posts: 167
Joined: Sun Oct 20, 2013 3:54 pm
Location: Colorado

Re: Modify user's email address

Post by Stutgrtguy »

hover over administration, click edit profiles, select user, edit email in the box, not sure if the comma works, havent tried multiples
kingmullet
Posts: 59
Joined: Thu Sep 05, 2013 3:21 pm

Re: Modify user's email address

Post by kingmullet »

Thanks guys. Looks like you can't have multiple email addresses in that field. I was able to change the email address though.
User avatar
Bam
Posts: 34
Joined: Sun Sep 14, 2014 1:55 pm

Re: Modify user's email address

Post by Bam »

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.
"It is nice to be important, but more important to be nice"~~~ The Rock (Dwayne Johnson)
User avatar
Bam
Posts: 34
Joined: Sun Sep 14, 2014 1:55 pm

Re: Modify user's email address

Post by Bam »

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

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
replace with

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
this allows for more than 1 email to be stored/entered

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
replace with

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
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.
"It is nice to be important, but more important to be nice"~~~ The Rock (Dwayne Johnson)
kingmullet
Posts: 59
Joined: Thu Sep 05, 2013 3:21 pm

Re: Modify user's email address

Post by kingmullet »

You are the man, that worked perfectly.
User avatar
Bam
Posts: 34
Joined: Sun Sep 14, 2014 1:55 pm

Re: Modify user's email address

Post by Bam »

Awesome!! Glad to help.
"It is nice to be important, but more important to be nice"~~~ The Rock (Dwayne Johnson)
Post Reply