Am nevoie ca forumul sa fie 18+
In mod normal pagina de inregistrare intreaba daca utilizatorul are 13 ani sau mai putin.
Ma intereseaza ca in loc de cele 3 link-uri din pagina de inregistrare( I agree and I am over 13, I agree and I am under 13, I don't agree), sa apara doar "I am over 18 years of age" si "I don't agree".
Cum fac sa fie doar 18+ ?
-
- Utilizator înregistrat
- Mesaje: 117
- Membru din: 16-Mai-2005, 23:05:09
- Ext: Nu
- Server: Windows
- Nivel phpBB: Mediu
- Nivel php: Mediu
- Localitate: Bucuresti
- Contact:
Ce fisiere trebuie sa schimb? fisierul de limba si modcp_register.php din includes?
In modcp_register.php am codul asta:
Trebuie sa-l schimb cu asta:
Am schimbat codul corect?
In modcp_register.php am codul asta:
Cod: Selectaţi tot
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'],
"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"),
"U_AGREE_UNDER13" => append_sid("profile.$phpEx?mode=register&agreed=true&coppa=true"))
);
$template->pparse('body');
}
Trebuie sa-l schimb cu asta:
Cod: Selectaţi tot
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'],
"AGREE_OVER_13" => $lang['Agree_over_13'],
'DO_NOT_AGREE' => $lang['Agree_not'],
"U_AGREE_OVER13" => append_sid("profile.$phpEx?mode=register&agreed=true");
$template->pparse('body');
}
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 12 vizitatori