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: General / Classic ASP versions(v3.4.XX)
 Email alert of pending registrations
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

smotsie
Starting Member

2 Posts

Posted - 06 January 2005 :  05:04:48  Show Profile
Hi all,
I am trying to find out if (and if so how) I can configure Snitz Forums to alert me (the forum admin) when a new user has registered and is waiting to be authenticated?

I operate a forum with very low usage, so I only check it once a week or so... but that means the users who register (one every two or three months) sometimes have to wait a week to get authenticated, which means they get cross! If I got an email saying "Hey - user awaiting validation!" (or some such) then I would know to log in and validate them.

If this is not an exsiting option / method, please could someone let me know?

Cheers
Smotsie

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 06 January 2005 :  05:50:11  Show Profile
Smotsie,

In register.asp just below the fist instance of <!--#INCLUDE FILE="inc_mail.asp" -->, add the following:
<%
				'################################### 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 & "Webmaster @ " & strForumTitle
%>
<!--#INCLUDE FILE="inc_mail.asp" -->
<%
				'######################################################################################
That will send you an e-mail once a new user registers on your forum. I hope it helps..

Cheers,

David Greening
Go to Top of Page

smotsie
Starting Member

2 Posts

Posted - 06 January 2005 :  07:42:27  Show Profile
Thanks for that ... it almost worked. Pasting where you said didn't work, as strRestrictReg is set to 1 and that code only fires if it is 0.
What I had to do was alter the code to replace the first instance of
<!--#INCLUDE FILE="inc_mail.asp" -->
<%
                  end if

with the following:
<!--#INCLUDE FILE="inc_mail.asp" -->
<%
			elseif strEmail = "1" and strRestrictReg = "1" then
			'################################### 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 & "Regards," & vbNewLine & vbNewLine & "Admin @ " & strForumTitle
%>
<!--#INCLUDE FILE="inc_mail.asp" -->
<%                  
                  end if


Cheers

Smotsie
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.59 seconds. Powered By: Snitz Forums 2000 Version 3.4.07