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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 email random password mod (Davio's)
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 3

Giapai
New Member

92 Posts

Posted - 02 April 2001 :  11:42:02  Show Profile  Visit Giapai's Homepage  Send Giapai an ICQ Message
thnx i cam accross something else now...
i registered with a new name..
and.. it worked i got the welcome page with the message to check my email for the password.. but when i was redirected ( like when the messageboard automaticly sends you to another page) I got a page telling me this..
There Was A Problem With Your Details

You must choose a UserName
You Must give an email address
You Must enter a valid email address

Which is kinda weird cause i did received the email with the password
And when i logged in with that name and password i came to welcome page and i sucesfull logged in but when when that page redirected me to another page i ended up at the same page
There Was A Problem With Your Details

You must choose a UserName
You Must give an email address
You Must enter a valid email address


Go Back To Enter Data

no other errors soo its working but i guess some lines are not pretty well communicating with eachother (perhaps missed an "end if" ? just guessing and trying to think)
but dang dude your fast

I tried it a third time and i ended up on a page where i could fill in all the info again?
All Fields marked with * are required

If you change your email address, a new password will be sent to your new address. Please make sure it is a valid address.

+ i receive one email with the password and 1 email with a new password telling me
You received this message from Giapai Message Board because someone has changed your email address on the forums at http://www.websamba.com/mindvision/Giapai/

and yes in case yo wonder i used three different email addresses and three different names

Edited by - Giapai on 02 April 2001 11:48:30

Edited by - Giapai on 02 April 2001 11:50:01
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 02 April 2001 :  11:55:33  Show Profile
Yeah, I can identify the errors you are getting. I was just testing this thing and realized there is a bug in the mod. And I can't beleive no one has reported it.
*looks for the bug spray*

I'm working on it now.

Go to Top of Page

Giapai
New Member

92 Posts

Posted - 02 April 2001 :  12:06:34  Show Profile  Visit Giapai's Homepage  Send Giapai an ICQ Message
quote:

Yeah, I can identify the errors you are getting. I was just testing this thing and realized there is a bug in the mod. And I can't beleive no one has reported it.
*looks for the bug spray*

I'm working on it now.


*hands Davio the bug spray*
See knew i could help out some way

Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 02 April 2001 :  17:41:16  Show Profile
*sprays*
Ok, I got them.
Send me your inc_profile.asp, pop_profile.asp, and your register.asp files. And since I want to get you involved again () I'm gonna give you a function that you need to replace with the one in your inc_functions.asp.
Copy the following code:
function emailPassword(sendemail)
'// Create an array of characters to choose from for the passwords.
'// If you would like to add uppercase letters or high ASCII characters,
'// simply add them to the array, just remember to modify intNumChars
'// variable to match number of characters in the array.

intNumChars = 35

pwArray = Array("a","b","c","d","e","f","g","h","i","j","k","l", _
"m","n","o","p","q","r","s","t","u","v","w","x", _
"y","z","1","2","3","4","5","6","7","8","9")

'// This picks 6 random numbers and pulls corresponding letters from the
'// array. If you want a larger, or smaller, password simply adjust the
'// number of characters you grab.

Randomize
pwd1 = (Int(((intNumChars - 1) * Rnd) + 1))
pwd2 = (Int(((intNumChars - 1) * Rnd) + 1))
pwd3 = (Int(((intNumChars - 1) * Rnd) + 1))
pwd4 = (Int(((intNumChars - 1) * Rnd) + 1))
pwd5 = (Int(((intNumChars - 1) * Rnd) + 1))
pwd6 = (Int(((intNumChars - 1) * Rnd) + 1))

'// Make the password!

strPassword = pwArray(pwd1) & pwArray(pwd2) & pwArray(pwd3) & _
pwArray(pwd4) & pwArray(pwd5) & pwArray(pwd6)

emailPassword = strPassword

if sendemail = "yes" then
'## Emails Password to the new email address.
strRecipientsName = Request.Form("Name")
strRecipients = Request.Form("Email")
strFrom = strSender
strFromName = strForumTitle
strsubject = strForumTitle & "- Your Email Address Has Been Changed "
strMessage = "Hello " & Request.Form("name") & vbCrLf & vbCrLf
if Request.QueryString("mode") <> "EditIt" then
strMessage = strMessage & "You received this message from " & strForumTitle & " because someone has changed your email address on the forums at " & strForumURL & vbCrLf & vbCrLf
else
strMessage = strMessage & "You received this message from " & strForumTitle & " because you have changed your email address on the forums at " & strForumURL & vbCrLf & vbCrLf
end if
if strAuthType="db" then
strMessage = strMessage & "Your New Password is: " & strPassword & vbCrLf & vbCrLf
end if
strMessage = strMessage & "You can change your information and password at our website by selecting the ""Profile"" link." & vbCrLf & vbCrLf
strMessage = strMessage & "Happy Posting!"
%>
<!--#INCLUDE FILE="inc_mail.asp" -->
<%
end if
end function
And paste it over the emailPassword() function you have in your inc_functions.asp file. You're just replacing it with this one. Or you can just delete the one from your inc_functions.asp file first, then paste this one in it's place. Whichever is easier for you.

And I'll fix the other files for you.
Doesn't that sound great?

Go to Top of Page

Giapai
New Member

92 Posts

Posted - 02 April 2001 :  17:48:47  Show Profile  Visit Giapai's Homepage  Send Giapai an ICQ Message
quote:

*sprays*

And I'll fix the other files for you.
Doesn't that sound great?




oh my god aint you the best?
owk am going to work on that and send you the files after i replaced the code with what you just posted here



Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 02 April 2001 :  17:56:26  Show Profile
Gee, you got yer eye on this topic don't you?

Go to Top of Page

Giapai
New Member

92 Posts

Posted - 02 April 2001 :  18:01:03  Show Profile  Visit Giapai's Homepage  Send Giapai an ICQ Message
quote:

Gee, you got yer eye on this topic don't you?




err no i have a nose for bugspray

Go to Top of Page

Giapai
New Member

92 Posts

Posted - 02 April 2001 :  18:18:30  Show Profile  Visit Giapai's Homepage  Send Giapai an ICQ Message
Ok done, send, and away.
the asp files are the way they was when i uploaded last time with the "bad" email mod implemented





Edited by - Giapai on 02 April 2001 18:25:57
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 02 April 2001 :  18:33:06  Show Profile
quote:
err no i have a nose for bugspray
LoL!!

Sent them back!

Go to Top of Page

Giapai
New Member

92 Posts

Posted - 02 April 2001 :  18:41:01  Show Profile  Visit Giapai's Homepage  Send Giapai an ICQ Message
Microsoft VBScript compilation error '800a0401'

Expected end of statement

/mindvision/Giapai/inc_functions.asp, line 1886

intNumChars = 35pwArray = Array("a","b","c","d","e","f","g","h","i","j","k","l", _
woopsie guess i made a mistake copy paste it......
gonna check and i let ya know how it went
lol


Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 02 April 2001 :  18:56:00  Show Profile
It should be separated, like this:

intNumChars = 35

pwArray = Array("a","b","c","d","e","f","g","h","i","j","k","l", _


Go to Top of Page

Giapai
New Member

92 Posts

Posted - 02 April 2001 :  18:56:23  Show Profile  Visit Giapai's Homepage  Send Giapai an ICQ Message
ok i checked it out and saw what i did wrong but... than i got another error invalid character error?
please go there and see the error
http://www.websamba.com/mindvision/giapai/

btw the first error was a thing i over looked after pasting the code
i told ya it wasnt pasting the text same way as it was posted here so i had to put everything back on the right lines lol and i forgot one..
intNumChars = 35pwArray =
i forgot to put pwarray line on a new line


Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 02 April 2001 :  18:58:51  Show Profile
Just look at how I posted the function in the other post. It should be just like that.

The error you are getting is basiccally the same reason for the first error. They need to be on a new line. After the underscore _, you need to have a break.

Go to Top of Page

Giapai
New Member

92 Posts

Posted - 02 April 2001 :  18:58:55  Show Profile  Visit Giapai's Homepage  Send Giapai an ICQ Message
quote:

It should be separated, like this:

intNumChars = 35

pwArray = Array("a","b","c","d","e","f","g","h","i","j","k","l", _


gosh ya just beat me with that lol
before you look into the other error think i found it ;-)

Go to Top of Page

Giapai
New Member

92 Posts

Posted - 02 April 2001 :  18:59:52  Show Profile  Visit Giapai's Homepage  Send Giapai an ICQ Message
grrrrrrrrrrrrrrrr you just way too fast for me lol


Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.38 seconds. Powered By: Snitz Forums 2000 Version 3.4.07