Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 pending or resending email validation mod
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

phoenixtaz13
Junior Member

129 Posts

Posted - 01 March 2009 :  20:01:32  Show Profile  Reply with Quote
hello, good day to all.... :)

i've notice, when a newly registered member or a pending member logs in,
and fails to receive an email validation.
it says:
"Your username and/or password were incorrect.
Please either try again or register for an account."


how can i change this to something, that would inform them that their registration
was successful and that they just need to confirm their registration,
like this:
"Your account username is not yet activated,
pls validate your email to activate ur account.
click here if u failed to receive email validation."

and then, if someone clicks "click here if u failed to receive email validation."
a new message will appear:
"your email validation was sent to mymail@mymail.com"

did anyone do this already?.... if not, how can i do this?.... what files should i be looking into?..... :)






Edited by - phoenixtaz13 on 01 March 2009 20:08:19

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 01 March 2009 :  20:36:50  Show Profile  Reply with Quote
If this doesn't do it, see the routine for "login.asp" in my next response. In "inc_header.asp", look for the following lines (appx 299-301):

		if strLoginStatus = 0 then
			Response.Write	"<p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strHeaderFontSize & """>Your username and/or password were incorrect.</font></p>" & vbNewLine & _
					"<p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strHeaderFontSize & """>Please either try again or register for an account.</font></p>" & vbNewLine


Change them to the following:

		if strLoginStatus = 0 then
			strSql="SELECT M_EMAIL, M_NAME, M_PASSWORD FROM " & strMemberTablePrefix & "MEMBERS_PENDING WHERE '" & strEncodedPassword & "'=M_PASSWORD AND '" & Request.Form("Name") & "'=M_NAME"
			set rsVerify=my_Conn.Execute(strSql)
			if not rsVerify.EOF then
				strVMail=rsVerify("M_EMAIL")
				rsVerify.Close
				Response.Write	"<p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strHeaderFontSize & """>Your Email verification has not been validated.</font></p>" & vbNewLine & _
					"<p align=""center"">Your EMail validation was sent to """ & strVMail & """></p>" & vbNewLine
			else
				Response.Write	"<p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strHeaderFontSize & """>Your username and/or password were incorrect.</font></p>" & vbNewLine & _
					"<p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strHeaderFontSize & """>Please either try again or register for an account.</font></p>" & vbNewLine
			end if
			set rsVerify=Nothing

Edited by - Carefree on 02 March 2009 02:05:22
Go to Top of Page

phoenixtaz13
Junior Member

129 Posts

Posted - 01 March 2009 :  21:05:36  Show Profile  Reply with Quote
thank carefree, no prob.... :)

Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 01 March 2009 :  21:11:04  Show Profile  Reply with Quote
OK - in "login.asp", look for the following line (appx 105):

if RequestMethod = "POST" and strLoginStatus = 0 then Response.Write("                      <font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHiLiteFontColor & """>Your username and/or password was incorrect.</font><br />" & vbNewLine) else Response.Write("<br />" & vbNewLine)

Change that to say:

	if RequestMethod = "POST" and strLoginStatus = 0 then 
		strSql="SELECT M_EMAIL, M_NAME, M_PASSWORD FROM " & strMemberTablePrefix & "MEMBERS_PENDING WHERE '" & strEncodedPassword & "'=M_PASSWORD AND '" & Request.Form("Name") & "'=M_NAME"
		set rsVerify=my_Conn.Execute(strSql)
		if not rsVerify.EOF then
			strVMail=rsVerify("M_EMAIL")
			rsVerify.Close
			Response.Write	"<p align=""left""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Your Email verification has not been validated.<br>" & vbNewLine & _
				"The EMail was sent to " & strVMail & "</font></p>" & vbNewLine
		else
			Response.Write("                      <font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHiLiteFontColor & """>Your username and/or password was incorrect.</font><br />" & vbNewLine)
		end if
		set rsVerify=Nothing
	else 
		Response.Write("<br />" & vbNewLine)
	end if

Edited by - Carefree on 01 March 2009 21:15:05
Go to Top of Page

phoenixtaz13
Junior Member

129 Posts

Posted - 01 March 2009 :  21:40:05  Show Profile  Reply with Quote
hi carefree,

i did the code above in login.asp, i think the code should be inserted somewhere else, its not working, im not using graphic button.....

from experimenting, i've notice that the message saying:
"Your username and/or password were incorrect.
Please either try again or register for an account."

the message above came from inc_header.asp

thanks again.... :)

Edited by - phoenixtaz13 on 01 March 2009 22:11:46
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 01 March 2009 :  22:26:08  Show Profile  Reply with Quote
I know where those lines are in "inc_header.asp" (if you'll look at the first post, that's what I originally changed).

For those who want to incorporate this routine:

If you have modified either/both "login.asp" and "inc_header.asp" so that the "inc_header.asp" fix in my first response doesn't work, use the one for "login.asp".
Go to Top of Page

phoenixtaz13
Junior Member

129 Posts

Posted - 02 March 2009 :  00:16:18  Show Profile  Reply with Quote
hello carefree...

i did the inc_header.asp insertion, still getting this:
"Your username and/or password were incorrect.
Please either try again or register for an account."

i entered the correct username and password.... it keeps directing me to ELSE "Your username and/or password were incorrect. Please either try again or register for an account."

any fix?...

thanks again.... :)

Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 02 March 2009 :  02:05:56  Show Profile  Reply with Quote
Yes, sorry. Change the instances of "M_USERNAME" in the strSql select statement to say "M_NAME".
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 02 March 2009 :  02:26:36  Show Profile  Visit HuwR's Homepage  Reply with Quote
try this MOD http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=38294 or http://www.snitzbitz.com/mods/details.asp?Version=All&mid=248
Go to Top of Page

phoenixtaz13
Junior Member

129 Posts

Posted - 04 March 2009 :  10:42:11  Show Profile  Reply with Quote
hello... good day to you.... :)

carefree,

finally got done with the code u gave me.... and added some email sending... and stored/save all of it in resendmail.asp file and then added this <!--#INCLUDE FILE="resendmail.asp" --> in inc_header.asp file.....

heres my file pls let me know if theres some issues to what i did, so far, its working.... :)

and also, before i forget, in firefox, if u click a link in my latest post to the left, the table seems to shrink and then expand again... if the link didnt work, u'll see the width shrunk, i cant seem to figure out whats wrong..... :(

so far im not getting any errors, hope u wont gey any errors too

thank u, thank u very much..... :)


Edited by - phoenixtaz13 on 09 March 2009 06:50:54
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.11 seconds. Powered By: Snitz Forums 2000 Version 3.4.07