[2.0.18] 13 Or Older Only - Admin Options

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Post Reply

Rating:

Excellent!
1
100%
Very Good
0
No votes
Good
0
No votes
Fair
0
No votes
Poor
0
No votes
 
Total votes: 1

Extensions Robot
Extensions Robot
Extensions Robot
Posts: 28347
Joined: Sat Aug 16, 2003 7:36 am

[2.0.18] 13 Or Older Only - Admin Options

Post by Extensions Robot »

MOD Name: 13 Or Older Only - Admin Options
Author: Matt Ratcliff
MOD Description: This MOD will add options in the ACP to set the redirect website, delay, and message.

This MOD requires the 13 Or Older Only MOD v1.0.4 installed.


MOD Version: 1.0.1 (Updated 11/07/05)

Download File: 13_Or_Older_Only_-_Admin_Options_v1.0.1.zip
mods overview page: View
File Size: 6117 Bytes

Security Score: 0
Last edited by Extensions Robot on Mon Apr 30, 2007 12:29 am, edited 1 time in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)
User avatar
webmacster87
Former Team Member
Posts: 3758
Joined: Fri Jun 11, 2004 2:30 am
Location: San Mateo, CA
Name: Douglas Bell
Contact:

Post by webmacster87 »

MOD Validated/Released

Notes:
Lets you specify a website to redirect users under 13, as well as a custom message to such users. The 13 or Older Only MOD is required.
Matt Ratcliff
Registered User
Posts: 42
Joined: Sun Mar 27, 2005 8:48 am
Location: Yuma, Arizona (USA)
Contact:

Post by Matt Ratcliff »

Here are some screen shots:
  • After guest clicks, "I Agree to these terms and am under 13 years of age"
    Screenshot 1
  • ACP -> General Configuration
    Screenshot 2
Enjoy! :wink:

-----------------------------------------------------------------------------------------

EDIT: I just noticed I left my CH change in the tpl file, so if your not using Categories Hierarchy change this:

Open:

Code: Select all

templates/subSilver/13_or_older_body.tpl
Find:

Code: Select all

{NAVIGATION_BOX}
Replace With:

Code: Select all

<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
	<tr>
		<td align="left"><span class="nav"><a class="nav" href="{U_INDEX}">{L_INDEX}</a></span></td>
	</tr>
</table>
I will update the file soon.

-----------------------------------------------------------------------------------------

EDIT 2: MOD File Re-Submitted
Image
User avatar
3Di
Former Team Member
Posts: 15845
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Post by 3Di »

Matt Ratcliff wrote: ----------------------------------------------------------------------------------------
EDIT: I just noticed I left my CH change in the tpl file, so if your not using Categories Hierarchy change this:

Open:

Code: Select all

templates/subSilver/13_or_older_body.tpl
Find:

Code: Select all

{NAVIGATION_BOX}
Replace With:

Code: Select all

<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
	<tr>
		<td align="left"><span class="nav"><a class="nav" href="{U_INDEX}">{L_INDEX}</a></span></td>
	</tr>
</table>
I will update the file soon.
-----------------------------------------------------------------------------------------
EDIT 2: MOD File Re-Submitted


Shouldn't a MOD be deepen tested before approving? 8O
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
:studio_microphone: Looking for a specific feature or alternative option?
Matt Ratcliff
Registered User
Posts: 42
Joined: Sun Mar 27, 2005 8:48 am
Location: Yuma, Arizona (USA)
Contact:

Post by Matt Ratcliff »

Maybe this was tested on a board where CH was installed or it was just simply over looked.

Anyways the re-submitted file should be validated soon, by the way I submitted it 30 minutes ago.
Image
User avatar
webmacster87
Former Team Member
Posts: 3758
Joined: Fri Jun 11, 2004 2:30 am
Location: San Mateo, CA
Name: Douglas Bell
Contact:

Post by webmacster87 »

MOD Updated to version 1.0.1
See first post for Download Link
Darkwander
Registered User
Posts: 108
Joined: Mon Aug 23, 2004 5:15 pm

Post by Darkwander »

#-----[ FIND ]------------------------------------------------
#
include($phpbb_root_path . 'includes/page_header.'.$phpEx);

$template->set_filenames(array(
'body' => '13_or_older_body.tpl')
);

$template->assign_vars(array(
'U_REDIRECT' => ("http://disney.com/kids/"),
'L_REDIRECT_HEADER' => $lang['redirect_header'],
'L_REDIRECT_MESSAGE' => $lang['redirect_message'])
);


#
#-----[ REPLACE WITH ]---------------------------------------
#
//-- mod : 13 or older only - acp options --------------------------------------
//-- delete
/*
include($phpbb_root_path . 'includes/page_header.'.$phpEx);

$template->set_filenames(array(
'body' => '13_or_older_body.tpl')
);

$template->assign_vars(array(
'U_REDIRECT' => ("http://disney.com/kids/"),
'L_REDIRECT_HEADER' => $lang['redirect_header'],
'L_REDIRECT_MESSAGE' => $lang['redirect_message'])
);
*/
//-- add
$template->assign_block_vars('13_or_older', array(
'S_REDIRECT_DELAY' => $board_config['redirect_delay'],
'S_REDIRECT_WEBSITE' => $board_config['redirect_website'],
));

include($phpbb_root_path . 'includes/page_header.'.$phpEx);

$template->set_filenames(array(
'body' => '13_or_older_body.tpl')
);

$template->assign_vars(array(
'L_REDIRECT_HEADER' => $lang['redirect_header'],
'L_REDIRECT_MESSAGE' => $board_config['redirect_message'])
);
//-- fin mod : 13 or older only - acp options ----------------------------------


My file includes/usercp_register.php dosnt have that section, what am i suppose to edit..
Darkwander
Registered User
Posts: 108
Joined: Mon Aug 23, 2004 5:15 pm

Post by Darkwander »

// BEGIN 13 or Older Only MOD
$lang['redirect_header'] = 'Registration Agreement Terms Not Met';
$lang['redirect_message'] = 'We\'re sorry. You must be over 13 years old to register. You are being redirected to a more suitable website.';
// END 13 or Older Only MOD

#
#-----[ REPLACE WITH ]----------------------------------------
#
//-- mod : 13 or older only - acp options --------------------------------------
//-- delete
/*
// BEGIN 13 or Older Only MOD
$lang['redirect_header'] = 'Registration Agreement Terms Not Met';
$lang['redirect_message'] = 'We\'re sorry. You must be over 13 years old to register. You are being redirected to a more suitable website.';
// END 13 or Older Only MOD
*/
//-- add
$lang['redirect_header'] = 'Registration Agreement Terms Not Met';
//-- fin mod : 13 or older only - acp options ----------------------------------


Also in file language/lang_english/lang_main.php is missing as well..
Darkwander
Registered User
Posts: 108
Joined: Mon Aug 23, 2004 5:15 pm

Post by Darkwander »

Dosnt matter, i crashed the forum , have to restart it anyway.
User avatar
noth
Registered User
Posts: 2483
Joined: Fri Jan 07, 2005 7:10 pm
Location: North Surrey
Contact:

Post by noth »

I loved the original 13 or Older Only MOD and installed it way back

it redirects all under 13s to a disney site and I can't see any site being better than that

I like the original mod and can't see it's worth adding this control panel system, to tamper with what was put in place already

:wink: just my two pence! :P
Matt Ratcliff
Registered User
Posts: 42
Joined: Sun Mar 27, 2005 8:48 am
Location: Yuma, Arizona (USA)
Contact:

Post by Matt Ratcliff »

@ DarkWander:
This MOD requires the 13 Or Older Only MOD v1.0.4 installed.


If you haven't installed that then you will not be able to properly edit the files.

@ noth: I was the same way about this too, but there were a few who wanted this, so I made it. :razz:
Image
jbreiding
Registered User
Posts: 79
Joined: Sun Feb 05, 2006 2:44 pm

Post by jbreiding »

i am getting the following errors:

Parse error: syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /home/.okee/xxxxx/xxxx.org/cache/tpl_subSilver.overall_header.php on line 14

the x's were included to remove information.
jbreiding
Registered User
Posts: 79
Joined: Sun Feb 05, 2006 2:44 pm

Post by jbreiding »

here is the error with xs mod caching turned off,


Parse error: syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /home/.okee/jbreiding/cfbmw.org/includes/template.php(929) : eval()'d code on line 10
CartoonGirl
Registered User
Posts: 31
Joined: Sun Jun 25, 2006 2:35 pm
Contact:

Post by CartoonGirl »

jbreiding wrote: i am getting the following errors:

Parse error: syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /home/.okee/xxxxx/xxxx.org/cache/tpl_subSilver.overall_header.php on line 14

the x's were included to remove information.


Yep, I am getting that same error too on line 13... grr. Anyone have a clue?


EDIT:

It seems to be this bit of code:
<!-- BEGIN 13_or_older -->
<meta http-equiv="refresh"
content="{13_or_older.S_REDIRECT_DELAY}; url={13_or_older.S_REDIRECT_WEBSITE}">
<!-- END 13_or_older -->


When placed in my /template/comicBook/overall_header.tpl file that causes the problem every time. But if that bit ISNT in there then the 'under 18' page wont redirect, it just does nothing.
Camulas
Registered User
Posts: 13
Joined: Mon Dec 01, 2008 8:39 pm

Re: [2.0.18] 13 Or Older Only - Admin Options

Post by Camulas »

Greetings,

I am currently looking for a MOD, to require users to confirm an age of 18 or older.
Should such a MOD be available for PHPBB 2.0 thru 2.9, the download or link, would be appreciated.

Thank you,
Post Reply

Return to “[2.0.x] MOD Database Releases”