Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic YaMS 403_SP13 recommendation (Read 917 times)
Robert Peden
New Member
*
Offline


"Let's Get Dangerous!"
- Darkwing Duck

Posts: 25
Location: Torrance
Joined: Nov 11th, 2004
Gender: Male
YaMS 403_SP13 recommendation
Feb 28th, 2006 at 1:44am
Print Post  
Hi Carsten - or the current YAMS author:

Recommendation for 403:

I was having problems with idiot users registering false accounts - and putting foul information in the extended profile information (info required on signup - they never do log-in - this is for YaBB 1.4).  I delete these user accounts when I find them, but there is a specific user who is doing this over and over.  Since all the information (e-mail address, signup info, etc) is false, there is no true way to really "ban" the user. 

I have changed one line in Yams - a minor change - so that when they register, their ip address upon registration shows up in the list of IP addresses in the profile field.  This should make it easier for those who are having similar problems (as we will now know where they are coming from) to ban these morons!

search for:

Code
Select All
<add after>
	###### Start YaMS add-on Member-number ######
	fopen(FILE, "$memberdir/membernumb.txt");
	@membernumb = <FILE>;
	$membernumber = @membernumb;
	fclose(FILE);
	fopen(FILE, ">$memberdir/membernumb.txt", 1);
	foreach $curnum (@membernumb) {
		chomp $curnum;
		print FILE "$curnum\n";
	}
	print FILE "$membernumber|$member{'username'}\n";
	fclose(FILE);

	fopen(FILE, ">$memberdir/$member{'username'}.yam");
	print FILE "$membernumber\n";
	print FILE "0|0|0\n";
	fclose(FILE);
	chmod(0666,"$memberdir/$member{'username'}.yam");
	###### End YaMS add-on Member-number ######
</add after>
 



replace:

Code
Select All
<add after>
	###### Start YaMS add-on Member-number ######
	fopen(FILE, "$memberdir/membernumb.txt");
	@membernumb = <FILE>;
	$membernumber = @membernumb;
	fclose(FILE);
	fopen(FILE, ">$memberdir/membernumb.txt", 1);
	foreach $curnum (@membernumb) {
		chomp $curnum;
		print FILE "$curnum\n";
	}
	print FILE "$membernumber|$member{'username'}\n";
	fclose(FILE);

	fopen(FILE, ">$memberdir/$member{'username'}.yam");
	print FILE "$membernumber\n";
	print FILE "$user_ip|0|0\n";
	fclose(FILE);
	chmod(0666,"$memberdir/$member{'username'}.yam");
	###### End YaMS add-on Member-number ######
</add after>
 



It works great for me.

--Rob
  
Back to top
WWWAIM  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint