MyBB Community Forums

Full Version: Deny Users Under 18
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
There is going to be a lot of talk about sex on my forum so I would like to make it so people under the age of 18 are denied.

I think I might have to edit PHP files for this. If so what files do I have to edit and what program should I use to edit PHP?
Or
What other methods I can use to do this?

My website is badworld.org
Well, you can use COPPA, but people could make up their age and join.
You could use COPPA but just change the 13 to 18.

Line 352 of ./member.php:

// User is <= 13, we mark as a coppa user
if($bdaytime >= mktime(0, 0, 0, my_date('n'), my_date('d'), my_date('Y')-13))
{
	my_setcookie("coppauser", 1, -0);
	$under_thirteen = true;
}

Edit the two occurrences of '13' to '18'. Then there are some edits for the member.lang.php file. You may need to reword it and remove COPPA because it won't be COPPA anymore, but the code is there to deny users under X years old, just needs to be edited a bit to change the age limit. Also make sure the COPPA setting is set to deny users under 13. As for editing files, anything other than the standard windows notepad will be fine. I recommend notepad++

But yeah, as Jon said, they could still just lie about it.
But on legal grounds that's really all I could do about it. If some little kid referred to the website in any way then it legally wouldn't matter.