MyBB Community Forums
Removing member register agreement? - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: MyBB 1.6 (https://community.mybb.com/forum-138.html)
+------ Forum: 1.6 General Support (https://community.mybb.com/forum-127.html)
+------ Thread: Removing member register agreement? (/thread-102956.html)



Removing member register agreement? - tizdaz - 2011-09-02

hi Smile

as topic says i want to remove this agreement so users just go straight to form, what files do i need to delete/change ?


RE: Removing member register agreement? - Spencer - 2011-09-02

This would require a core edit. Download the attached member.php and replace it with the current one in your forum's root directory.


.php   member.php (Size: 57.8 KB / Downloads: 81)


RE: Removing member register agreement? - Yaldaram - 2011-09-02

Or if you've already modified member.php file and do not want to lose those edits, here is how to do it yourself.

If you want to disable registration Agreement, and want to redirect users directly to user Details page then here is how;

Open member.php and find and remove the following;
	if((!isset($mybb->input['agree']) && !isset($mybb->input['regsubmit'])) || $mybb->request_method != "post")
	{
		// 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



RE: Removing member register agreement? - tizdaz - 2011-09-02

thanks alot Smile