After installing your SEO mod (+ Zero duplicate) users can't register anymore. If you click on "accept [terms & conditions]" in -http://www.domain.de/profile.php?mode=register, you will be redirected to -http://www.domain.de/http://www.domain.de
usercp_register.php:
- Code: Select all
(...)
if ( !defined('IN_PHPBB') )
{
die("Hacking attempt");
exit;
}
$unhtml_specialchars_match = array('#>#', '#<#', '#"#', '#&#');
$unhtml_specialchars_replace = array('>', '<', '"', '&');
// ---------------------------------------
// Load agreement template since user has not yet
// agreed to registration conditions/coppa
//
function show_coppa()
{
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'],
//[MOD]Remove COPPA
//"AGREE_OVER_13" => $lang['Agree_over_13'],
"AGREE" => $lang['Agree'],
//[MOD]Remove COPPA
//"AGREE_UNDER_13" => $lang['Agree_under_13'],
'DO_NOT_AGREE' => $lang['Agree_not'],
"U_AGREE" => append_sid("profile.$phpEx?mode=register&agreed=true"))
//[MOD]Remove COPPA
//"U_AGREE_UNDER13" => append_sid("profile.$phpEx?mode=register&agreed=true&coppa=true"))
);
$template->pparse('body');
}
//
// ---------------------------------------
$error = FALSE;
$error_msg = '';
$page_title = ( $mode == 'editprofile' ) ? $lang['Edit_profile'] : $lang['Register'];
if ( $mode == 'register' && !isset($HTTP_POST_VARS['agreed']) && !isset($HTTP_GET_VARS['agreed']) )
{
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
show_coppa();
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
}
$coppa = ( empty($HTTP_POST_VARS['coppa']) && empty($HTTP_GET_VARS['coppa']) ) ? 0 : TRUE;
//-- mod : calendar ------------------------------------------------------------
//-- add
include($config->url('includes/class_calendar_settings'));
$user->set();
$calendar_api->set();
$calendar_form = new calendar_profile_form('profile');
$calendar_form->read($userdata);
//-- fin mod : calendar --------------------------------------------------------
(...)
[/url]
[e] Another question: Did you remove the highlight tag after clicking on a search result deliberately?

English |
French
