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 MOD-Group
 MOD Add-On Forum (W/O Code)
 Minimum number of posts for signatures
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

bobby131313
Senior Member

USA
1163 Posts

Posted - 29 December 2008 :  11:48:56  Show Profile  Visit bobby131313's Homepage  Reply with Quote
I've searched and can't find this addressed anywhere.

I'm starting to get a lot of signature spam. Members are signing up, putting thier link in their signature and making BS posts just so it shows. It's really starting to tick me off.

I would like to not have signatures available till a user reaches say, 100 posts. Then these numbnuts would probably just go away.

Has this been done before and I just can't find it?<

Switch the order of your title tags

SiSL
Average Member

Turkey
671 Posts

Posted - 29 December 2008 :  13:36:21  Show Profile  Visit SiSL's Homepage  Reply with Quote
I don't think it has been done, however, easy to do with a few steps :)<

CHIP Online Forum

My Mods
Select All Code | Fix a vulnerability for your private messages | Avatar Categories W/ Avatar Gallery Mod | Complaint Manager
Admin Level Revisited | Merge Forums | No More Nested Quotes Mod
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 29 December 2008 :  22:09:18  Show Profile  Reply with Quote
This should do what you want:

In "inc_profile.asp", look for the following (appx lines 512-515):


			Response.Write	"                      </select></font></td>" & vbNewLine & _
					"                    </tr>" & vbNewLine
		end if
	end if


Change them to say:


			Response.Write	"                      </select></font></td>" & vbNewLine & _
				"                    </tr>" & vbNewLine
		end if
	'	######## Signature On Post Count ########
	else
		Response.Write "Signature disabled until you have posted at least "& intPosts & "."
	end if
	'	######## Signature On Post Count ########
	end if



Next, look for the following (appx line 457):


	if strSignatures = "1" then


After it, insert the following:


		'	######## Signature On Post Count ########
		intTotalPosts = 0
		strSql="SELECT M_POSTS FROM  " & strMemberTablePrefix & "MEMBERS WHERE MEMBER_ID=" & MEMBERID
		Set rsPosts = Server.CreateObject("ADODB.Recordset")
		rsPosts.open strSql, my_Conn
		if rsPosts.EOF or rsPosts.BOF then
			'do nothing
		else
			intTotalPosts = rsPosts("M_POSTS")
		end if
		rsPosts.close
		set rsPosts = Nothing
		if intTotalPosts > intPosts then
		'	######## Signature On Post Count ########



Finally, look for the following (appx line 38):


Sub DisplayProfileForm


Above it, insert the following:


'	######## Signature On Post Count ########
intPosts=100
'	######## Signature On Post Count ########


Simply change the 100 to whatever quantity of posts are going to be required.<

Edited by - Carefree on 29 December 2008 22:10:02
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 29 December 2008 :  22:46:11  Show Profile  Visit bobby131313's Homepage  Reply with Quote
Awesome! Seems to be working great. I've been playing with it with no luck so this is greatly appreciated!

Thanks!<

Switch the order of your title tags
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 29 December 2008 :  23:02:26  Show Profile  Reply with Quote
You're welcome.<
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.1 seconds. Powered By: Snitz Forums 2000 Version 3.4.07