ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!



[TUT] Disable Registration Agreement

by YASAKA, 2019-06-24 - 12:22:15

#1
 2019-06-24, 12:22:15  Last Modified: 2019-06-24, 12:23:10 by YASAKA.
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;

Code:
    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
[Image: yasaka.png]

 
#2
 2019-06-29, 18:54:11
thanks bro for thr tutorial been looking for this

Warned reason: spam content

  Reply
Reply