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)
 Registration alerts
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

CSUjr
Starting Member

USA
16 Posts

Posted - 04 September 2006 :  16:30:27  Show Profile  Visit CSUjr's Homepage  Reply with Quote
I am trying to find the correct code that will send me an alert via email when a new member registers in the forum.

I was sent the following code, inserted in the the place specified, saved it and then uploaded it, but it doesn't work.
################################### Administrator Notification Mod ########################

 

                                                strRecipientsName = strSender

                                                strRecipients = strSender

                                                strFrom = strSender

                                                strFromName = strSender

                                                strsubject = strForumTitle & " Registration "

strMessage = "The new registration of: " & Request.Form("Name") & " 
(" & Request.Form("Email") & ") has occured at " & strForumTitle & " 
(" & strForumURL & ")." & vbNewLine & vbNewLine & "Go and check 
out: " & strForumURL & "admin_accounts_pending.asp to get their full 
details." & vbNewLine & vbNewLine & "Cheers," & vbNewLine & 
vbNewLine & "Forum Administrator @ " & strForumTitle

%>

<!--#INCLUDE FILE="inc_mail.asp" -->

<%

Can anyone help me with code that will work for me to receive an email alert when a new member signs up?

Thanks,
Charles<

Philippians 2:10

Edited by - CSUjr on 04 September 2006 16:33:25

leatherlips
Senior Member

USA
1838 Posts

Posted - 04 September 2006 :  16:49:26  Show Profile  Visit leatherlips's Homepage  Reply with Quote
It doesn't look like you've added all of the code.

I found this at SnitzBitz (.02 beta):

Insert this at line 579:
			'################################### 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" -->
<%
			'#############################End of Administrator Notification Mod ########################


Modify the code around line 637 (after inserting the above) to look like this:

				if strRestrictReg = "1" then 
					Response.Write	"      <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>The Administrator has restricted registration on this forum. You will receive an e-mail as soon as the Administrator approves your request.</font></p>" & vbNewLine
				
				'################################### Administrator Notification Mod ########################
					Response.Write	"      <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>An Email has been forwarded to the Administrator</font></p>" & vbNewLine & _
					"      <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>You will be contacted shortly"
				'#############################End of Administrator Notification Mod ########################

				else
					Response.Write	"      <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Please follow the instructions in the e-mail that has been sent to " & ChkString(Request.Form("Email"),"email") & " to complete your registration.</font></p>" & vbNewLine
				end if
<

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

CSUjr
Starting Member

USA
16 Posts

Posted - 04 September 2006 :  17:20:32  Show Profile  Visit CSUjr's Homepage  Reply with Quote
Thank you, I have followed the instructions and I'll test it and see if it now works.<

Philippians 2:10
Go to Top of Page

CSUjr
Starting Member

USA
16 Posts

Posted - 04 September 2006 :  17:50:44  Show Profile  Visit CSUjr's Homepage  Reply with Quote
Well, It appears that I did not do this correct.

This is what I am receiving when I attempt to register as a new member;
Microsoft VBScript compilation error '800a03f6'

Expected 'End'

/SzForum/inc_mail.asp, line 361

I have uploaded a zipped copy of my register.asp file to a free file sharing site here;
http://rapidshare.de/files/31978953/My_Register.asp_file.rar.html

Can you or someone take a look at it and help me get this so it works?

Thank you,
Charles<

Philippians 2:10
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 04 September 2006 :  18:23:37  Show Profile  Visit leatherlips's Homepage  Reply with Quote
I can't read the file you posted. Can you post it as a .txt file instead?<

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

CSUjr
Starting Member

USA
16 Posts

Posted - 05 September 2006 :  04:04:39  Show Profile  Visit CSUjr's Homepage  Reply with Quote
This is my register.asp file in text format
http://rapidshare.de/files/32014671/register.aspFile.rar.html
Please help if you can
Thanks,
Charles<

Philippians 2:10
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.16 seconds. Powered By: Snitz Forums 2000 Version 3.4.07