The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
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?..... :)
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?..... :)
Sist redigert av
Postet den
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):
Change them to the following:
Code:
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:
Code:
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
Sist redigert av
Postet den
thank carefree, no prob.... :)
Postet den
OK - in "login.asp", look for the following line (appx 105):
Change that to say:
Code:
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)
Code:
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
Sist redigert av
Postet den
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.... :)
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.... :)
Sist redigert av
Postet den
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".
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".
Postet den
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.... :)
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.... :)
Postet den
Yes, sorry. Change the instances of "M_USERNAME" in the strSql select statement to say "M_NAME".
Postet den
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
Postet den
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..... :)
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.....
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..... :)
Sist redigert av
Email Member
Message Member
Post Moderation
Filopplasting
If you're having problems uploading, try choosing a smaller image.
Forhåndsvis post
Send Topic
Loading...