Disable Registration Agreement
#20
1.8.21 Owners should delete this exact code.  Big Grin

	if((!isset($mybb->input['agree']) && !isset($mybb->input['regsubmit'])) && $fromreg == 0 || $mybb->request_method != "post")
	{
		$coppa_agreement = '';
		// Is this user a COPPA user? We need to show the COPPA agreement too
		if($mybb->settings['coppa'] != "disabled" && ($mybb->cookies['coppauser'] == 1 || $under_thirteen))
		{
			if($mybb->settings['coppa'] == "deny")
			{
				error($lang->error_need_to_be_thirteen);
			}
			$lang->coppa_agreement_1 = $lang->sprintf($lang->coppa_agreement_1, $mybb->settings['bbname']);
			eval("\$coppa_agreement = \"".$templates->get("member_register_agreement_coppa")."\";");
		}

		$plugins->run_hooks("member_register_agreement");

		eval("\$agreement = \"".$templates->get("member_register_agreement")."\";");
		output_page($agreement);
	}
	else
Reply


Messages In This Thread
Disable Registration Agreement - by Yaldaram - 2011-04-19, 06:30 PM
RE: Disable Registration Agreement - by ViniH - 2011-11-15, 06:15 PM
RE: Disable Registration Agreement - by Yaldaram - 2011-11-15, 07:56 PM
RE: Disable Registration Agreement - by haytoch - 2011-11-17, 11:03 PM
RE: Disable Registration Agreement - by Yaldaram - 2011-11-18, 01:51 AM
RE: Disable Registration Agreement - by mrdon515 - 2012-10-18, 06:38 PM
RE: Disable Registration Agreement - by FBI - 2013-01-18, 10:15 AM
RE: Disable Registration Agreement - by alv4 - 2013-01-26, 06:24 PM
RE: Disable Registration Agreement - by Yaldaram - 2013-01-27, 01:45 AM
RE: Disable Registration Agreement - by Breixo - 2013-04-03, 07:04 PM
RE: Disable Registration Agreement - by jayy - 2013-12-07, 06:27 PM
RE: Disable Registration Agreement - by Yaldaram - 2013-12-07, 06:32 PM
RE: Disable Registration Agreement - by jayy - 2013-12-11, 12:39 AM
RE: Disable Registration Agreement - by alv4 - 2015-04-02, 08:20 PM
RE: Disable Registration Agreement - by fredzy - 2015-11-06, 11:22 AM
RE: Disable Registration Agreement - by niere8 - 2015-11-14, 09:35 PM
RE: Disable Registration Agreement - by alv4 - 2015-12-06, 05:39 PM
RE: Disable Registration Agreement - by Løque - 2019-07-27, 09:50 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)