MyBB Community Forums

Full Version: Disable Registration Agreement
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Thanks both! It worked to me following the first comment. MyBB 1.6.9
It was working fine until the 1.6.11 update :/
Any solutions?
Since you've updated your forum, probably the old member.php file has been overwritten with the new one. You need to re-edit it again.
(2013-12-07, 06:32 PM)Yaldaram Wrote: [ -> ]Since you've updated your forum, probably the old member.php file has been overwritten with the new one. You need to re-edit it again.

Yeah you were right, also a mod should probably edit the 2nd post because the code that's needed to be edited is now on line 427 and not 374
I've sent a Pull Request for this to be introduced into 1.8: #175
Is this working on 1.8?
changes this for 1.8.6
if((!isset($mybb->input['agree']) && !isset($mybb->input['regsubmit'])) && $fromreg == 0 || $mybb->request_method != "post")
{
For 1.8 need also add && $fromreg == 0? That is edit the line in this way:

 if($mybb->settings['reg_agreement'] && ((!isset($mybb->input['agree']) && !isset($mybb->input['regsubmit'])) && $fromreg == 0 || $mybb->request_method != "post"))

Or $fromreg == 0 isn't a problem?

Thanks
(2015-11-14, 09:35 PM)niere8 Wrote: [ -> ]For 1.8 need also add && $fromreg == 0? That is edit the line in this way:

 if($mybb->settings['reg_agreement'] && ((!isset($mybb->input['agree']) && !isset($mybb->input['regsubmit'])) && $fromreg == 0 || $mybb->request_method != "post"))

Or $fromreg == 0 isn't a problem?

Thanks

I did the edit with the && $fromreg == 0 (Exactly how you have it in the code box) and works perfect Smile
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
Pages: 1 2 3