MyBB Community Forums

Full Version: Age Restricted Thread Prefixes
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Restrict young users from viewing or posting threads with a certain prefix.

Description
- Makes users below a certain age unable to view threads with a certain prefix, depending on the forum.
- Makes users below a certain age unable to create threads with a certain prefix, depending on the forum.
- Age is calculated from birthday options. If these are not set in the user account, a prompt will show up in order to know whether the user wants to change his birthday. (See image at mods center)

Configuration options:
- IDs of prefixes that require a certain age. (Comma separated)
- Forum IDs in which this plugin is active
- Minimum age to view or post using prefix(es)
- A few language options

Screenshots
There are four detailed screenshots available at MyBB's Mods Center.

Download
Download this plugin at
- MyBB's Mods Center
- SignaWare.com
wow, awesome mod, +1
(2012-09-18, 04:56 AM)Solstice Wrote: [ -> ]wow, awesome mod, +1

Thanks for showing your appreciation Smile. Expect more plugins from me soon!
Seems very cool, it's a shame I adds no value to my forum otherwise I would definitely use it. Never seen a plugin with such an function/style before. Smoothly done
Fatal error: Call to a member function format() on a non-object in /virtual/crackcommunity.c0.pl/inc/plugins/prefixage.php on line 179

Please help me

My line 175 to 182 is

function prefixage_get_years_difference($day, $month, $year)
{
	$date = new DateTime($year . '-' . $month . '-' . $day); 
	$today = new DateTime("now"); 
	$interval = $date->diff($today); 
	$years = $interval->format('%y');

	return $years;
you wanted my address www???
I'm thinking that this mod would be useful for my sites for a NSFW tag.
(2012-10-12, 04:53 PM)starter Wrote: [ -> ]
Fatal error: Call to a member function format() on a non-object in /virtual/crackcommunity.c0.pl/inc/plugins/prefixage.php on line 179

Please help me

My line 175 to 182 is

function prefixage_get_years_difference($day, $month, $year)
{
	$date = new DateTime($year . '-' . $month . '-' . $day); 
	$today = new DateTime("now"); 
	$interval = $date->diff($today); 
	$years = $interval->format('%y');

	return $years;

I did read the doc and this seems like an invalid report. I might be wrong, though.

Maybe someone can report the same later for further analysis.
I went ahead and removed this mod from the Extend site because an issue was reported with it. This issue seems to be causing the plugin to be breaking some pages from working at all.

The issue is not serious, and the solution can be found in the following thread :
https://community.mybb.com/thread-240789.html

Because only the author can update the project page, I did attach the plugin in the OP for anyone interested.