Author |
Topic  |
|
nmstough
Starting Member
7 Posts |
Posted - 04 January 2006 : 16:47:48
|
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
|
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 |
 |
|
nmstough
Starting Member
7 Posts |
Posted - 04 January 2006 : 19:34:35
|
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. |
 |
|
Classicmotorcycling
Development Team Leader
    
Australia
2085 Posts |
Posted - 05 January 2006 : 00:40:11
|
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 |
 |
|
nmstough
Starting Member
7 Posts |
|
Classicmotorcycling
Development Team Leader
    
Australia
2085 Posts |
Posted - 05 January 2006 : 01:38:51
|
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 |
 |
|
nmstough
Starting Member
7 Posts |
Posted - 05 January 2006 : 14:39:28
|
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. |
 |
|
Classicmotorcycling
Development Team Leader
    
Australia
2085 Posts |
Posted - 05 January 2006 : 16:15:03
|
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 |
 |
|
Classicmotorcycling
Development Team Leader
    
Australia
2085 Posts |
Posted - 06 January 2006 : 01:54:59
|
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 |
 |
|
|
Topic  |
|