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)
 members pending notification
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

nmstough
Starting Member

7 Posts

Posted - 04 January 2006 :  16:47:48  Show Profile
I have a question about the members pending process. I have require registration turned on and email validation also turned on. When a member tries to register, how do I find out about the need to authorize them? The system does not seem to send me an email notifying me that someone has requested approval. Do I have to keep checking the web site manually?

Classicmotorcycling
Development Team Leader

Australia
2085 Posts

Posted - 04 January 2006 :  17:01:59  Show Profile
Normally you do have to check it as it is not a function built in to the forum, but there is a MOD for the register.asp file that you can setup to send the forum admin an e-mail each time a new user registers:

if strEmailNewReg = "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 & "Cheers," & vbNewLine & vbNewLine & "Webmaster @ " & strForumTitle
%>
<!--#INCLUDE FILE="inc_mail.asp" -->
<%
				'######################################################################################
end if
Just place the above code after the following code in register.asp:
%>
<!--#INCLUDE FILE="inc_mail.asp" -->
<%
You will then get a notification e-mail each time a new registration happens on your forum.

I hope that helps.

Cheers,

David Greening
Go to Top of Page

nmstough
Starting Member

7 Posts

Posted - 04 January 2006 :  19:34:35  Show Profile
Thanks very much for this helpful modification. I inserted it into the file as directed, but it doesnt seem to work. I even tried removing the "if" and "end if" statements but that didnt work either. No email is being generated that I can see.
Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2085 Posts

Posted - 05 January 2006 :  00:40:11  Show Profile
You have left the original:
%>
<!--#INCLUDE FILE="inc_mail.asp" -->
<%
In the register.asp file so you have 2 instances of it now?

I do not have any issues with it on all my forums. Do you want to post a link to a text version of your register.asp file so I can have a look at it for you?


Cheers,

David Greening
Go to Top of Page

nmstough
Starting Member

7 Posts

Posted - 05 January 2006 :  01:03:30  Show Profile
Thanks for the offer to help. Yes, I still have two instances of the include file statement. Here is the link to the file:

http://www.fortune.ucalgary.ca/register.txt
Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2085 Posts

Posted - 05 January 2006 :  01:38:51  Show Profile
There doesn't seem to be anything wrong apart from that if statement of mine for a mod I have done for a site, but I would change it to be:
if strEmail = "1" and strRestrictReg = "0" then
from the following:
if strEmailNewReg = "1" then
Let me know how you go with that, but the rest should stay the same.

Cheers,

David Greening
Go to Top of Page

nmstough
Starting Member

7 Posts

Posted - 05 January 2006 :  14:39:28  Show Profile
Thanks again. I substituted the line you suggested and once again, no email seems to be sent out. I even tried strRestrictReg=1 since I have restrict registrations turned on for the forums, but no go. Shouldnt this email be going out to the administrator address as configured on the email server settings? The authorize emails are indeed sent out from this email to the users, so I think the email system on the server is functioning properly.
Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2085 Posts

Posted - 05 January 2006 :  16:15:03  Show Profile
I have just added the code to the following location:
				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
				else
					Response.Write	"      <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Please follow the instructions in the e-mail that has been sent to <b>" & ChkString(Request.Form("Email"),"email") & "</b> to complete your registration.</font></p>" & vbNewLine
				end if
to the following:
				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 ########################

				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" -->
<%
				'######################################################################################

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

Cheers,

David Greening
Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2085 Posts

Posted - 06 January 2006 :  01:54:59  Show Profile
This is working with the original code and the other code as well. The junk mail filter was stopping the notifactions from being delivered. Glad I could help you on it.

Cheers,

David Greening
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.48 seconds. Powered By: Snitz Forums 2000 Version 3.4.07