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
 User Registration Email Notification
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

teacel
Starting Member

17 Posts

Posted - 16 April 2008 :  09:14:43  Show Profile
I am using forum 3.4.05 w/assecc DB

I found the mod for 'Email Notification for User Registration'

quote:
This mod simplies sends an email to the administrator when a user submits their registration. It works with 3.4.xx, don't know about earlier versions.

1. Add the following chunk of code to register.asp after line 602 (after the server-side include of inc_mail.asp):

quote:
'################################### Administrator Notification Mod ########################

strRecipientsName = strSender
strRecipients = strSender
strFrom = strSender
strFromName = strSender
strsubject = strForumTitle & " Registration "
strMessage = Request.Form("Name") & " (" & Request.Form("Email") & ") has registered at " & strForumURL
%>
<!--#INCLUDE FILE="inc_mail.asp" -->
<%
'######################################################################################


I have the email validation mod installed.
Here is where I placed the code (in red):


quote:
590 if strEmail = "1" and strRestrictReg = "0" then
591 '## E-mails Message to the Author of this Reply.
592 strRecipientsName = Request.Form("Name")
593 strRecipients = Request.Form("Email")
594 strFrom = strSender
595 strFromName = strForumTitle
596 strsubject = strForumTitle & " Registration "
597 strMessage = "Hello " & Request.Form("name") & vbNewline & vbNewline
598 strMessage = strMessage & "You received this message from " & strForumTitle & " because you have registered for a new account which allows you to post new messages and reply to existing ones on the forums at " & strForumURL & vbNewline & vbNewline
599 if strAuthType="db" then
600 '################################### E-mail Validation Mod #################################
601 if strEmailVal = "1" then
602 strMessage = strMessage & "Please click on the link below to complete your registration." & vbNewline & vbNewLine
603 strMessage = strMessage & "If the link is split or broken, you will need to copy and paste the entire link into your web browser." & vbNewline & vbNewLine
604 strMessage = strMessage & strForumURL & "register.asp?actkey=" & actkey & vbNewline & vbNewline
605 else
606 '######################################################################################
607 strMessage = strMessage & "Password: " & Request.Form("Password") & vbNewline & vbNewline
608 end if '<---- E-mail Validation Mod - 1 line #############
609 end if
610 strMessage = strMessage & "You can change your information at our website by selecting the ""Profile"" link." & vbNewline & vbNewline
611 strMessage = strMessage & "Happy Posting!"
612 %>
613 <!--#INCLUDE FILE="inc_mail.asp" -->
614 <%
615 '################################### Administrator Notification Mod ########################
616
617 strRecipientsName = strSender
618 strRecipients = strSender
619 strFrom = strSender
620 strFromName = strSender
621 strsubject = strForumTitle & " Registration "
622 strMessage = Request.Form("Name") & " (" & Request.Form("Email") & ") has registered at " & strForumURL
623 %>
624 <!--#INCLUDE FILE="inc_mail.asp" -->
625 <%
626'######################################################################################

627
628 end if
629 else
630 Response.Write " <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strHeaderFontSize & """ color=""" & strHiLiteFontColor & """>There Was A Problem With Your Details</font></p>" & vbNewLine & _
631 " <table align=""center"" border=""0"">" & vbNewLine & _
632 " <tr>" & vbNewLine & _
633 " <td><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHiLiteFontColor & """><ul>" & Err_Msg & "</ul></font></td>" & vbNewLine & _
634 " </tr>" & vbNewLine & _
635 " </table>" & vbNewLine & _
636 " <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><a href=""JavaScript:history.go(-1)"">Go Back To Enter Data</a></font></p>" & vbNewLine
637 WriteFooter
638 Response.End
639 end if


Would someone please let me know if I did the right thing?
Thanks a bunch.

Think! B-4-U start pounding on keyboard!

Snitz Forum Member

Edited by - teacel on 19 April 2008 11:42:34

gary b
Junior Member

USA
267 Posts

Posted - 18 April 2008 :  16:33:09  Show Profile  Visit gary b's Homepage
teacel...

I'm not sure what you want. It appears you start your post by explaining HOW to put a MOD in, but then ask if this is correct. What is it that you want to know?

There are several reasons why you should update to the latest Snitz version. Security... bug fixes... and working email notification to Admin upon User registration. Simply edit mail.asp to match your host and... Voila!

Lastly, if you haven't already... try searching for answer to your question.

HTH some...
Go to Top of Page

teacel
Starting Member

17 Posts

Posted - 19 April 2008 :  11:29:27  Show Profile
Sorry for any confusion, but maybe you didn't read my post correctly.

Notice after the first quote I stated:
quote:
Here is where I placed the code (in red):

Then I show where i placed the code.
At the end on the 2nd quote I ask if anyone can tell me if it I placed the code in red in the proper place.

I'm asking someone to please look at my first post in this thread and see if the code is in fact placed properly.

Thank you for your help.


Think! B-4-U start pounding on keyboard!

Snitz Forum Member

Edited by - teacel on 19 April 2008 11:45:47
Go to Top of Page

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 19 April 2008 :  12:41:55  Show Profile  Visit MaD2ko0l's Homepage
well have you tryed it to see if it works?

© 1999-2010 MaD2ko0l
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 20 April 2008 :  17:10:34  Show Profile
quote:
Originally posted by teacel

Sorry for any confusion, but maybe you didn't read my post correctly.

Notice after the first quote I stated:
quote:
Here is where I placed the code (in red):

Then I show where i placed the code.
At the end on the 2nd quote I ask if anyone can tell me if it I placed the code in red in the proper place.

I'm asking someone to please look at my first post in this thread and see if the code is in fact placed properly.

Thank you for your help.





Yes. The code is in the proper place.
Go to Top of Page
  Previous Topic Topic Next Topic  
 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.39 seconds. Powered By: Snitz Forums 2000 Version 3.4.07