2013-04-03, 07:04 PM
2013-12-07, 06:27 PM
It was working fine until the 1.6.11 update :/
Any solutions?
Any solutions?
2013-12-07, 06:32 PM
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-11, 12:39 AM
(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
2013-12-17, 06:45 PM
I've sent a Pull Request for this to be introduced into 1.8: #175
2015-04-02, 08:20 PM
Is this working on 1.8?
2015-11-06, 11:22 AM
changes this for 1.8.6
if((!isset($mybb->input['agree']) && !isset($mybb->input['regsubmit'])) && $fromreg == 0 || $mybb->request_method != "post")
{
if((!isset($mybb->input['agree']) && !isset($mybb->input['regsubmit'])) && $fromreg == 0 || $mybb->request_method != "post")
{
2015-11-14, 09:35 PM
For 1.8 need also add && $fromreg == 0? That is edit the line in this way:
Or $fromreg == 0 isn't a problem?
Thanks
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-12-06, 05:39 PM
(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

2019-07-27, 09:50 AM
1.8.21 Owners should delete this exact code. 

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