BetaArchive Logo
Navigation Home Screenshots Image Uploader Server Info FTP Servers Wiki Forum RSS Feed Rules Please Donate
UP: 26d, 0h, 32m | CPU: 44% | MEM: 5756MB of 12227MB used
{The community for beta collectors}

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 new topic Reply to topic  [ 7 posts ] 
Author Message
 PostPost subject: phpbb2 question        Posted: Thu Aug 09, 2007 9:15 pm 
Reply with quote
Donator
User avatar
Offline

Joined
Fri May 18, 2007 9:39 am

Posts
953

Location
My house
Here's my problem, I'm going to make a forum for my school using phpbb2 (because it's free! :D ). 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


Top  Profile
 PostPost subject:        Posted: Thu Aug 09, 2007 9:34 pm 
Reply with quote
FTP Access
User avatar
Offline

Joined
Mon Sep 04, 2006 1:45 pm

Posts
732

Location
Norway

Favourite OS
HP keystroke RPL
Yes, you edit the appropriate file.


Top  Profile  WWW
 PostPost subject:        Posted: Thu Aug 09, 2007 9:41 pm 
Reply with quote
Administrator
User avatar
Offline

Joined
Fri Aug 18, 2006 11:47 am

Posts
12460

Location
Merseyside, United Kingdom

Favourite OS
Microsoft Windows 7 Ultimate x64
Plain guess but try this:

In includes/usercp_register.php

find

Code:
      "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:
      "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.

_________________
Image

BetaArchive Discord: https://discord.gg/epK3r6A


Top  Profile  WWW
 PostPost subject:        Posted: Fri Aug 10, 2007 9:11 am 
Reply with quote
Donator
User avatar
Offline

Joined
Fri May 18, 2007 9:39 am

Posts
953

Location
My house
This won't skip the question though, will it?

_________________
Image


Top  Profile
 PostPost subject:        Posted: Fri Aug 10, 2007 9:11 am 
Reply with quote
Administrator
User avatar
Offline

Joined
Fri Aug 18, 2006 11:47 am

Posts
12460

Location
Merseyside, United Kingdom

Favourite OS
Microsoft Windows 7 Ultimate x64
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...

_________________
Image

BetaArchive Discord: https://discord.gg/epK3r6A


Top  Profile  WWW
 PostPost subject:        Posted: Fri Aug 10, 2007 9:45 am 
Reply with quote
Donator
User avatar
Offline

Joined
Fri May 18, 2007 9:39 am

Posts
953

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

_________________
Image


Top  Profile
 PostPost subject:        Posted: Fri Aug 10, 2007 11:21 pm 
Reply with quote
Donator
Offline

Joined
Sat Feb 24, 2007 4:14 pm

Posts
6612

Location
United Kingdom

Favourite OS
Server 2012 R2
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&amp;agreed=true&amp;coppa=true"))

4. Open the lang_main.php located in the language\lang_xxx\ folder. Find the line below and edit it:
Quote:
$lang['Agree_over_13'] = 'I Agree to these terms and am <b>over</b> or <b>exactly</b> 13 years of age';

to
Quote:
$lang['Agree_over_13'] = 'I Agree to these terms and conditions';


Also, Delete:
Quote:
$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...

_________________
BuildFeed - the ultimate collaborative NT build list - Windows Longhorn - a look at a defining Microsoft project


Top  Profile  WWW
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 




Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  

All views expressed in these forums are those of the author and do not necessarily represent the views of the BetaArchive site owner.

Powered by phpBB® Forum Software © phpBB Group

Copyright © 2006-2018

 

Sitemap | XML | RSS