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.