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: MOD Implementation
 Sending Re-verification email
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

kolucoms6
Average Member

845 Posts

Posted - 08 March 2007 :  04:44:15  Show Profile

Is it possible to send email verification reminder to only few select members instead of all ?If yes, how..Kindly guide me...

JJenson
Advanced Member

USA
2121 Posts

Posted - 12 March 2007 :  10:57:03  Show Profile  Visit JJenson's Homepage
I do not believe there is a way to do this right now. I have not come across or head about any mods that do this. You could always try and write you own?
Go to Top of Page

PPSSWeb
Junior Member

312 Posts

Posted - 14 March 2007 :  08:49:43  Show Profile
If what you want to do is be able to select certain members to "remind" about their pending registration, then the answer is yes. It is possible, I added it to my forums some time ago as I would have people register and then never finish the process for weeks.

If I remember correctly, the only changes you need to make are in admin_accounts_pending.asp.

around line 206 (before elseif strAction = "delete" then), add:

'#########################################

elseif strAction = "remindall" then
	Call EmailMembers("remindall")
			
		Response.Write	"      <br /><p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strHeaderFontSize & """><b>Members Reminded!</b></font></p>" & vbNewLine & _
				"      <meta http-equiv=""Refresh"" content=""5; URL=admin_accounts_pending.asp" & strPage & """>" & vbNewLine & _
				"      <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>All Pending Members have reminded! Their registration e-mails have been re-sent to them.</font></p>" & vbNewLine & _
				"      <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><a href=""admin_accounts_pending.asp" & strPage & """>Back To Members Pending</font></a></p><br />" & vbNewLine
		WriteFooter
		Response.End

elseif strAction = "remind" then
	Call EmailMembers("remind")
			
		Response.Write	"      <br /><p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strHeaderFontSize & """><b>Members Reminded!</b></font></p>" & vbNewLine & _
				"      <meta http-equiv=""Refresh"" content=""5; URL=admin_accounts_pending.asp" & strPage & """>" & vbNewLine & _
				"      <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Selected Pending Members have reminded! Their registration e-mails have been re-sent to them.</font></p>" & vbNewLine & _
				"      <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><a href=""admin_accounts_pending.asp" & strPage & """>Back To Members Pending</font></a></p><br />" & vbNewLine
		WriteFooter
		Response.End
'###########################################	

around line 619 (after the next), add:
	
'######################################################
'#################email reminder
	elseif who = "remindall" then
		'## Forum_SQL - Get all pending members
		strSql = "SELECT M_NAME, M_EMAIL, M_KEY, M_APPROVE, M_DATE"
		strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS_PENDING"
		strSql = strSql & " ORDER BY MEMBER_ID ASC"

		set rsApprove = Server.CreateObject("ADODB.Recordset")
		rsApprove.Open strSql, my_Conn, adOpenForwardOnly, adLockReadOnly, adCmdText

		if rsApprove.EOF then
			recApproveCount = ""
		else
			allApproveData = rsApprove.GetRows(adGetRowsRest)
			recApproveCount = UBound(allApproveData, 2)
		end if

		rsApprove.Close
		set rsApprove = Nothing

		if recApproveCount <> "" then
			mM_NAME = 0
			mM_EMAIL = 1
			mM_KEY = 2
			mM_APPROVE = 3
			mM_DATE = 4
			
			for RowCount = 0 to recApproveCount
				MP_MemberName = allApproveData(mM_NAME,RowCount)
				MP_MemberEMail = allApproveData(mM_EMAIL,RowCount)
				MP_MemberKey = allApproveData(mM_KEY,RowCount)
				MP_MemberApprove = allApproveData(mM_APPROVE,RowCount)
				MP_MemberDate = allApproveData(mM_Date,RowCount)

				if MP_MemberApprove = 1 then
					'## E-mails Message to all pending members.
					strRecipientsName = MP_MemberName
					strRecipients = MP_MemberEMail
					strFrom = strSender
					strFromName = strForumTitle
					strsubject = strForumTitle & " Registration "
					
					days = DateDiff("d",  StrToDate(MP_MemberDate),  strForumTimeAdjust)
					if days > 20 then 
					strMessage = "**********************" & vbNewline & vbNewline
					strMessage = strMessage & "*****FINAL NOTICE*****" & vbNewline & vbNewline
					strMessage = strMessage & "**********************" & vbNewline & vbNewline
					strMessage = strMessage & "Hello " & MP_MemberName & vbNewline & vbNewline
					else 
					strMessage = "Hello " & MP_MemberName & vbNewline & vbNewline
					end if 
					
					
					strMessage = strMessage & "You received this message from " & strForumTitle & " because you have registered for a new account which allows you to post new messages and reply to existing ones on the forums at " & strForumURL & vbNewline & vbNewline
									
					strMessage = strMessage & "Your registration has been approved for **" & days & "** days and is awaiting email validation." & vbNewline & vbNewline 


					if strAuthType="db" then
						strMessage = strMessage & "Please click on the link below to complete your registration." & vbNewline & vbNewLine
						strMessage = strMessage & strForumURL & "register.asp?actkey=" & MP_MemberKey & vbNewline & vbNewline
					end if
					strMessage = strMessage & "You can change your information at our website by selecting the ""Profile"" link." & vbNewline & vbNewline
					strMessage = strMessage & "Happy Posting!"
%>
<!--#INCLUDE FILE="inc_mail.asp" -->
<%
				end if
			next
		end if
	
	
	
	
	
	
	
	

	elseif who = "remind" then
		aryID = split(selID, ",")
		for i = 0 to ubound(aryID)
			'## Forum_SQL - Get all pending members
			strSql = "SELECT M_NAME, M_EMAIL, M_DATE, M_KEY, M_APPROVE"
			strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS_PENDING"
			strSql = strSql & " WHERE MEMBER_ID = " & aryID(i)

			set rsApprove = my_Conn.Execute(strSql)

			if not(rsApprove.EOF) and not(rsApprove.BOF) and rsApprove("M_APPROVE") = 1 then
			
				'## E-mails Message to all pending members.
				strRecipientsName = rsApprove("M_NAME")
				strRecipients = rsApprove("M_EMAIL")
				strFrom = strSender
				strFromName = strForumTitle
				strsubject = strForumTitle & " Registration Reminder "
				
				days = DateDiff("d",  StrToDate(rsApprove("M_DATE")),  strForumTimeAdjust)
				if days > 20 then 
				strMessage = "**********************" & vbNewline & vbNewline
				strMessage = strMessage & "*****FINAL NOTICE*****" & vbNewline & vbNewline
				strMessage = strMessage & "**********************" & vbNewline & vbNewline
				strMessage = strMessage & "Hello " & rsApprove("M_NAME") & vbNewline & vbNewline
				else 
				strMessage = "Hello " & rsApprove("M_NAME") & vbNewline & vbNewline
				end if 
				
				strMessage = strMessage & "You received this message from " & strForumTitle & " because you have registered for a new account which allows you to post new messages and reply to existing ones on the forums at " & strForumURL & vbNewline & vbNewline
				

				
				strMessage = strMessage & "Your registration has been approved for **" & days & "** days and is awaiting email validation." & vbNewline & vbNewline 
				if strAuthType="db" then
					strMessage = strMessage & "Please click on the link below to complete your registration." & vbNewline & vbNewLine
					strMessage = strMessage & strForumURL & "register.asp?actkey=" & rsApprove("M_KEY") & vbNewline & vbNewline
				end if
				strMessage = strMessage & "You can change your information at our website by selecting the ""Profile"" link." & vbNewline & vbNewline
				strMessage = strMessage & "Happy Posting!"
%>
<!--#INCLUDE FILE="inc_mail.asp" -->
<%
				rsApprove.movenext
			end if
			rsApprove.Close
			set rsApprove = nothing
		next
'####################################################	
	


Try this and let me know if I forgot anything.
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 14 March 2007 :  10:02:07  Show Profile
I added code at "around line 206 " but 619 line number not there.

Can you give me the exact 3-4 lines code at line number 619 in yours ?

Do I need add the code after these below lines ? :

%>
<!--#INCLUDE FILE="inc_mail.asp" -->
<%
rsApprove.movenext
end if
rsApprove.Close
set rsApprove = nothing
next


Also, I believe we need to add few code after below code :

" <li><a href=""javascript:del_all()"">Delete All Pending Members</a></li>" & vbNewLine & _
" <li><a href=""javascript:del_selected()"">Delete Selected Pending Members</a></li>" & vbNewLine & _
" <li><a href=""admin_accounts_pending_reminder.asp"">Send Reminder</a></li></font></td>" & vbNewLine & _

Edited by - kolucoms6 on 14 March 2007 10:56:55
Go to Top of Page

PPSSWeb
Junior Member

312 Posts

Posted - 14 March 2007 :  10:27:14  Show Profile
Line 619 see below:
	elseif who = "selected" then
		aryID = split(selID, ",")
		for i = 0 to ubound(aryID)
			'## Forum_SQL - Get all pending members
			strSql = "SELECT M_NAME, M_EMAIL, M_KEY, M_APPROVE"
			strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS_PENDING"
			strSql = strSql & " WHERE MEMBER_ID = " & aryID(i)

			set rsApprove = my_Conn.Execute(strSql)

			if not(rsApprove.EOF) and not(rsApprove.BOF) and rsApprove("M_APPROVE") = 0 then
				'## E-mails Message to all pending members.
				strRecipientsName = rsApprove("M_NAME")
				strRecipients = rsApprove("M_EMAIL")
				strFrom = strSender
				strFromName = strForumTitle
				strsubject = strForumTitle & " Registration "
				strMessage = "Hello " & rsApprove("M_NAME") & vbNewline & vbNewline
				strMessage = strMessage & "You received this message from " & strForumTitle & " because you have registered for a new account which allows you to post new messages and reply to existing ones on the forums at " & strForumURL & vbNewline & vbNewline
				if strAuthType="db" then
					strMessage = strMessage & "Please click on the link below to complete your registration." & vbNewline & vbNewLine
					strMessage = strMessage & strForumURL & "register.asp?actkey=" & rsApprove("M_KEY") & vbNewline & vbNewline
				end if
				strMessage = strMessage & "You can change your information at our website by selecting the ""Profile"" link." & vbNewline & vbNewline
				strMessage = strMessage & "Happy Posting!"
%>
<!--#INCLUDE FILE="inc_mail.asp" -->
<%
				rsApprove.movenext
			end if
			rsApprove.Close
			set rsApprove = nothing
		next
!!!!!!!!!!!!!!!!!!!!!!!!LINE #619 after other code added already
	end if
end sub
%>
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 14 March 2007 :  10:27:52  Show Profile
Kolucoms, please do not post multiple replies in quick succession, if you need to make additions or changes to reply you've just made, edit it instead.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

PPSSWeb
Junior Member

312 Posts

Posted - 14 March 2007 :  10:28:29  Show Profile
quote:
Originally posted by kolucoms6

Also, I believe we need to add few code after below code :

" <li><a href=""javascript:del_all()"">Delete All Pending Members</a></li>" & vbNewLine & _
" <li><a href=""javascript:del_selected()"">Delete Selected Pending Members</a></li>" & vbNewLine & _
" <li><a href=""admin_accounts_pending_reminder.asp"">Send Reminder</a></li></font></td>" & vbNewLine & _




Good catch. I always seem to forget something. :)
This should give you the links to activate it:
	if strRestrictReg = "1" then
    		Response.Write	"                <td bgcolor=""" & strForumCellColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & vbNewLine & _
				"                <li><a href=""javascript:appr_all()"">Approve All Pending Members</a></li>" & vbNewLine & _
				"                <li><a href=""javascript:appr_selected()"">Approve Selected Pending Members</a></li></font></td>" & vbNewLine & _

				"                <td bgcolor=""" & strForumCellColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & vbNewLine & _
				"                <li><a href=""javascript:remind_all()"">Remind All Pending Members</a></li>" & vbNewLine & _
				"                <li><a href=""javascript:remind_selected()"">Remind Selected Pending Members</a></li></font></td>" & vbNewLine

	end if
    	Response.Write	"                <td bgcolor=""" & strForumCellColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & vbNewLine & _
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 14 March 2007 :  10:38:36  Show Profile
Ok Shaggy.

quote:
Originally posted by Shaggy

Kolucoms, please do not post multiple replies in quick succession, if you need to make additions or changes to reply you've just made, edit it instead.



Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 14 March 2007 :  10:55:42  Show Profile
When I click on Remind Selected Pending Members, I get an error :

Object expected.

Seems like some Javascript Error.
Go to Top of Page

PPSSWeb
Junior Member

312 Posts

Posted - 14 March 2007 :  13:54:11  Show Profile
Right, next forgotten piece coming your way. Sorry about that...
I really should have commented this one better. :)

Insert at line # 67 before ( " function remind_all(){" & vbNewLine & _):
'#################email reminder
		"    function remind_all(){" & vbNewLine & _
		"    	var where_to= confirm(""Do you really want to Remind all Pending Members?"");" & vbNewLine & _
		"       if (where_to== true) {" & vbNewLine & _
		"		document.delMembers.action.value = 'remindall';" & vbNewLine & _
		"    		document.delMembers.submit();" & vbNewLine & _
		"       }" & vbNewLine & _
		"    }" & vbNewLine & _	
		"    function remind_selected(){" & vbNewLine & _
		"    	var where_to= confirm(""Do you really want to Remind the Selected Pending Members?"");" & vbNewLine & _
		"       if (where_to== true) {" & vbNewLine & _
		"		document.delMembers.action.value = 'remind';" & vbNewLine & _
		"    		document.delMembers.submit();" & vbNewLine & _
		"       }" & vbNewLine & _
		"    }" & vbNewLine & _
'#############################


I am adding comments as we go.
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 14 March 2007 :  14:16:05  Show Profile

Gr8..Its working...Thanks a lot...

One more small question :Below options are NOT available.How to make them avaialble to Admin ?

Approve All Pending Members
Approve Selected Pending Members

What is strRestrictReg ?
Go to Top of Page

PPSSWeb
Junior Member

312 Posts

Posted - 15 March 2007 :  13:22:38  Show Profile
Glad it is working.

strRestrictReg is set when you have restrict registration turned on in admin options.

for the options not showing, look for
	if strRestrictReg = "1" then scolspan = " colspan=""

what is the value after colspan?
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 15 March 2007 :  13:59:23  Show Profile
if strRestrictReg = "1" then scolspan = " colspan=""2"""
Go to Top of Page

PPSSWeb
Junior Member

312 Posts

Posted - 15 March 2007 :  14:24:12  Show Profile
increase colspan by 1
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 15 March 2007 :  14:31:56  Show Profile
means if strRestrictReg = "1" then scolspan = " colspan=""3""" ??

Did it, but no difference..

Edited by - kolucoms6 on 15 March 2007 14:35:20
Go to Top of Page

PPSSWeb
Junior Member

312 Posts

Posted - 15 March 2007 :  14:49:37  Show Profile
Please verify that you have "Restrict Registration: " selected in the admin options -> E-mail Server Configuration.
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 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.49 seconds. Powered By: Snitz Forums 2000 Version 3.4.07