Code: Select all
#
#-----[ FIND ]------------------------------------------
#
$emailer->reset();
}
$db->sql_freeresult($result);
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
//BEGIN Invite Only MOD
if ($board_config['invite_only'] && !empty...
Code: Select all
## Files To Edit:
## admin/admin_board.php
## groupcp.php
## includes/emailer.php
## includes/usercp_register.php
## includes/usercp_sendpasswd.php
## language/lang_english/lang_admin.php
## language/lang_english/lang_main.php
## posting.php
## privmsg.php
## templates/subSilver/admin/board_config_body.tpl
## templates/subSilver/profile_add_body.tpl
sonyboy wrote: I installed this MOD to my forum with a lot of MODs installed so I thought this may be cause by them, but then I installed this MOD to the original phpBB and the same problem happens, so from this, it tells me that the problem comes from the MOD itself.
Code: Select all
// ---------------------------------------
// Load agreement template since user has not yet
// agreed to registration conditions/coppa
//
function show_coppa($invite_code, $email)
{
global $userdata, $template, $lang, $phpbb_root_path, $phpEx;
$template->set_filenames(array(
'body' => 'agreement.tpl')
);
$template->assign_vars(array(
'REGISTRATION' => $lang['Registration'],
'AGREEMENT' => $lang['Reg_agreement'],
"AGREE_OVER_13" => $lang['Agree_over_13'],
"AGREE_UNDER_13" => $lang['Agree_under_13'],
'DO_NOT_AGREE' => $lang['Agree_not'],
"U_AGREE_OVER13" => append_sid("profile.$phpEx?mode=register&agreed=true" .$invite_code . $email),
"U_AGREE_UNDER13" => append_sid("profile.$phpEx?mode=register&agreed=true&coppa=true" .$invite_code . $email))
);
$template->pparse('body');
}
//
// ---------------------------------------
Code: Select all
"U_AGREE_OVER13" => append_sid("profile.$phpEx?mode=register&agreed=true .$invite_code . $email"),