phpbb2 question

Any off topic discussions should go in this forum. Post count is not increased by posting here.
FTP Access status is required to post in this forum. Find out how to get it
Forum rules
Any off topic discussions should go in this forum. Post count is not increased by posting here.
FTP Access status is required to post in this forum. Find out how to get it
Post Reply
mdogg
User avatar
Donator
Posts: 954
Joined: Fri May 18, 2007 9:39 am
Location: My house

phpbb2 question

Post by mdogg »

Here's my problem, I'm going to make a forum for my school using phpbb2 (because it's free! ). The only problem is that when you sign up, the COPPA question appears asking if you are exactly or over 13 or are under 13. Since it's a primary school, there's no doubt that most students are under 12 years of age so I want the question to not appear when you click Register. Is there a way you can edit the php to do this?
Image

longview
User avatar
FTP Access
Posts: 732
Joined: Mon Sep 04, 2006 1:45 pm
Location: Norway
Contact:

Post by longview »

Yes, you edit the appropriate file.

Andy
User avatar
Administrator
Posts: 12628
Joined: Fri Aug 18, 2006 11:47 am
Location: United Kingdom
Contact:

Post by Andy »

Plain guess but try this:

In includes/usercp_register.php

find

Code: Select all

		"U_AGREE_OVER13" => append_sid("profile.$phpEx?mode=register&agreed=true"),
		"U_AGREE_UNDER13" => append_sid("profile.$phpEx?mode=register&agreed=true&coppa=true"))
and replace with

Code: Select all

		"U_AGREE_OVER13" => append_sid("profile.$phpEx?mode=register&agreed=true"),
		"U_AGREE_UNDER13" => append_sid("profile.$phpEx?mode=register&agreed=true"))
This makes both under and over 13 go to the normal registration page, at least this is the theory.

Try it and see, you can always put it back if it doesn't work.

Like I say, this was just a plain guess at making it work, so it might not.

mdogg
User avatar
Donator
Posts: 954
Joined: Fri May 18, 2007 9:39 am
Location: My house

Post by mdogg »

This won't skip the question though, will it?
Image

Andy
User avatar
Administrator
Posts: 12628
Joined: Fri Aug 18, 2006 11:47 am
Location: United Kingdom
Contact:

Post by Andy »

mdogg wrote:This won't skip the question though, will it?
It will ask your age but never take you to the COPPA page. At least it shouldn't if this works...

mdogg
User avatar
Donator
Posts: 954
Joined: Fri May 18, 2007 9:39 am
Location: My house

Post by mdogg »

Is there a way to stop it asking? e.g. Which file contains the question.
Image

hounsell

Post by hounsell »

Would it be OK if you just edited the 13 year old question out, rather than just skip the agreement?

If it is:
1. Open the agreement.tpl in the theme folder of the default theme.
2. Find the text below and delete:
agreement.tpl wrote:<a href="{U_AGREE_OVER13}" class="genmed">{AGREE_OVER_13}</a><br />
3. Open usercp_register.php in the includes folder and delete the following lines:
usercp_register.php wrote:"AGREE_UNDER_13" => $lang['Agree_under_13'],
"U_AGREE_UNDER13" => append_sid("profile.$phpEx?mode=register&agreed=true&coppa=true"))
4. Open the lang_main.php located in the language\lang_xxx\ folder. Find the line below and edit it:
$lang['Agree_over_13'] = 'I Agree to these terms and am <b>over</b> or <b>exactly</b> 13 years of age';
to
$lang['Agree_over_13'] = 'I Agree to these terms and conditions';
Also, Delete:
$lang['Agree_under_13'] = 'I Agree to these terms and am <b>under</b> 13 years of age';
If you have any problems, just reply. I havn't tested this, and im not exactly an expert in php, but i think this should work, and if some one who does know what they are doing could confirm this, that would be great.
Also, if you want, i can test it myself later...

Post Reply