Cum fac sa fie doar 18+ ?

Pentru întrebări legate de facilităţile forumului phpBB 2.0.x, acest loc este cel mai potrivit.
Închis
Scream
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:

Cum fac sa fie doar 18+ ?

Mesaj de Scream »

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".
Eugen
Utilizator înregistrat
Mesaje: 19
Membru din: 14-Aug-2007, 00:14:57

Mesaj de Eugen »

Pai modifici pe ala de "I agree and i am over 13" in "i agree and i am over 18" si pe celalalt il stergi :wink:
Simplu huh?
Avatar utilizator
seelview
Fost coleg
Mesaje: 2146
Membru din: 13-Apr-2005, 21:24:50
Versiune: 3.x
Ext: Da
Server: UNIX/Linux
Nivel phpBB: Foarte experimentat
Localitate: Cu curu' pe scaun
Contact:

Mesaj de seelview »

Eu am 12... ce ma impiedica sa dau click pe "i am over 18" ? ;)
"Don't have fear, I is here"
Seelview Photography / Blog this
Eugen
Utilizator înregistrat
Mesaje: 19
Membru din: 14-Aug-2007, 00:14:57

Mesaj de Eugen »

Cine stie ce forum vrea sa faca omu`... :oops:
Scream
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:

Mesaj de Scream »

Ce fisiere trebuie sa schimb? fisierul de limba si modcp_register.php din includes?


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');

}
Am schimbat codul corect?
Else
Utilizator înregistrat
Mesaje: 11
Membru din: 27-Iul-2007, 16:13:48

Mesaj de Else »

Eugen scrie:Pai modifici pe ala de "I agree and i am over 13" in "i agree and i am over 18" si pe celalalt il stergi :wink:
Simplu huh?
Da, dar de unde îl şterg?
Avatar utilizator
seg168
Utilizator înregistrat
Mesaje: 150
Membru din: 05-Mai-2007, 20:23:24

Mesaj de seg168 »

lang_main.php :)
Închis

Înapoi la “2.0.x Cum pot să...?”

Cine este conectat

Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 12 vizitatori