Notification of Admin action: ACTIVATION - Posted (2564 Views)
Junior Member
gary b
Posts: 267
267
When email validation is required, potential members submit an 'application' for membership. Like most Admins, I modified my page code so that an email is sent to Forum Admin when an application is submitted.
When Admin clicks link to view pending memberships (admin_accounts_pending.asp), he/she is presented three choices:
delete application, approve application, or activate application. The forum already provides for an email to the Applicant when the membership request is approved. I have found no Applicant notification if request is denied. (And I am not worried about it at this point.) Unfortunately, there was no "automatic" notification to the Applicant if the Admin "activates" the account. Previous posts suggested that Admin notify the Applicant of the action by emailing the Applicant using the Profile's email link. I propose an alternative.
I have inserted the following code in REGISTER.ASP:

'####### Notification of Admin activation Mod #### Line 192 #####
strSource = Request.ServerVariables("HTTP_REFERER")
If strSource = "http://www.YOURDOMAINNAME.com/forum/admin_accounts_pending.asp" Then
'Email to Applicant that registration is now active
strRecipients = strSender
strsubject = strForumTitle & " Registration "
strMessage = "Your application has been approved. You can now login using your username and password." & vbNewline & vbNewline
%>
<!--#INCLUDE FILE="inc_mail.asp" -->
<%
Else
'#Do nothing
End If
'####### End Notification of Admin activation ######## Line 205 ####

This code looks to see if register.asp is open by ADMIN_ACCOUNTS_PENDING.ASP If it was, it means Admin has "activated" the account and automatically sends an email to the Applicant.
DISCLAIMERS
I am NOT a forum guru, so you MUST test this code carefully. It works on my forum. Make backup copies of your file(s) before you test this code. And by all means... if you see a problem, please post so that I and others may learn!
I hope you try this... and hope more so that it works as expected!!
gary b
<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Starting Member
bonrea
Posts: 2
2
Originally posted by gary b
Like most Admins, I modified my page code so that an email is sent to Forum Admin when an application is submitted.<

Gary, where did you find the mod to do this? Notify admin of new registrations.
You Must enter a message