Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Discussions (General)
 Volunteer to write some Snitz code
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 02 July 2009 :  13:06:17  Show Profile  Visit HuwR's Homepage  Reply with Quote
I would like someone to write a mod (unless there is already something around) for the pending members page so that if select to delete someone's pending approval that it adds their email to an automatic banned list at the same time, which can then be checked during the registration process

I would do it myself, but just don't have the time at the moment.

Etymon
Advanced Member

United States
2385 Posts

Posted - 15 July 2009 :  03:13:46  Show Profile  Visit Etymon's Homepage  Reply with Quote
What kind of columns were you wanting for the banned list, Huw?
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 15 July 2009 :  04:33:25  Show Profile  Visit Etymon's Homepage  Reply with Quote
Hey Huw, what about something like an API? Like this:

http://www.stopforumspam.com/apis

Or, what about this?:

http://temerc.com/forums/viewtopic.php?f=71&t=6234&sid=3a6b83437b9047aa0488cb6e78940271

Well, what I mean is in addition to what you are requesting. As in, maybe it will help in making an informed decision. Perhaps, have an additional column to flag known spammers with a description like "Black Listed As SPAM Threat" i.e. BLAST or something like that. Just a thought.

Edited by - Etymon on 15 July 2009 04:53:07
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 15 July 2009 :  06:20:48  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
Huw, want to email me the details and I will code it?


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 15 July 2009 :  07:40:24  Show Profile  Visit HuwR's Homepage  Reply with Quote
quote:
Originally posted by Etymon

What kind of columns were you wanting for the banned list, Huw?



just the email address would be fine, I just want to prevent people re-registering with the same email address after I have deleted the pending registration, currently the only way is to allow the registration and then lock the account which is a bloody pain in the arse.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 15 July 2009 :  07:41:58  Show Profile  Visit HuwR's Homepage  Reply with Quote
I don't want an api, I just want to ban an email address if I delete it's pending registration.
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 15 July 2009 :  08:15:33  Show Profile  Visit Etymon's Homepage  Reply with Quote
I came across this today which might be of interest:

http://javascript.internet.com/forms/form-screener.html
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 31 July 2009 :  02:57:40  Show Profile  Reply with Quote
Here Huwr:

Save following as dbs_banmail.asp and run from Admin:

Banned Email 1.0

[DROP]
BANNED
[END]

[CREATE]
BANNED

BANNED#VARCHAR(75)###
[END]

Next, in "register.asp", look for the following lines (appx 406-409 after security fixes):

			if Request.Form("Email") <> Request.Form("Email3") then
				Err_Msg = Err_Msg & "<li>Your E-mail Addresses didn't match.</li>"
			end if
		end if


After them, insert the following:


		strSql="SELECT BANNED FROM " & strTablePrefix & "BANNED"
		set rsMailCheck=my_Conn.Execute(strSql)
		if not rsMailCheck.EOF then
			rsMailCheck.MoveFirst
			do until rsMailCheck.EOF
				if Request.Form("Email") = rsMailCheck("Banned") then
					'	Banned Account
					Err_Msg = Err_Msg & "<li>E-mail Address is Banned on this Server.</li>"
				end if
				rsMailCheck.MoveNext
			loop
			rsMailCheck.Close
		end if
		set rsMailCheck=Nothing


Finally, in "admin_accounts_pendng.asp", look for the following line (appx 187):

elseif strAction = "delete" then

After it, insert the following:


	strSql = "SELECT M_EMAIL FROM " & strMemberTablePrefix & "MEMBERS_PENDING WHERE M_STATUS = 0 AND M_LEVEL = -1"
	set rsBanned = my_Conn.Execute(strSql)
	if not rsBanned.EOF then
		rsBanned.MoveFirst
		do until rsBanned.EOF
			strSql = "INSERT INTO " & strTablePrefis & "BANNED (BANNED) VALUES ('" & rsBanned("M_EMAIL") & "')"
			rsFinished=my_Conn.Execute(strSql)
			rsBanned.MoveNext
		loop
		rsBanned.Close
	end if
	set rsBanned=Nothing



That should about do it.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 31 July 2009 :  04:31:34  Show Profile  Visit HuwR's Homepage  Reply with Quote
thanks carefree, I will take a look when I get home later
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 31 July 2009 :  06:57:04  Show Profile  Reply with Quote
You're welcome. Shout if there's something I missed. Posted to mods w/ code.

Edited by - Carefree on 01 August 2009 11:43:03
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 01 August 2009 :  11:53:51  Show Profile  Visit modifichicci's Homepage  Reply with Quote
You need to update pop profile also, in changing email

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 01 August 2009 :  12:15:05  Show Profile  Visit HuwR's Homepage  Reply with Quote
it's not necesary for what I want, I am only interested in preventing the same email address from repeat registrations if I do not approve them.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.16 seconds. Powered By: Snitz Forums 2000 Version 3.4.07