Thread Rating:
  • 4 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
503 for errors
#11
(2010-02-17, 03:45 PM)NetSage Wrote: I doubt it since 1.6 is featured locked. Although I'm not staff.

Technically not a feature.
#12
hmm, ya I wouldn't be surprised if it did. I know it's a small change but well idk Toungue.
#13
I completely agree with it
All my plugins are available for free at MyBB Extend and on my GitHub. MyBB-Plugins.com has been closed and none of my plugins are officially maintained or supported.
#14
This is a great idea. In my opinion this http code should also send when you close the board. Only 10 min and Google may index dozens of sites which just say that the board is closed...

Ok, this could also done with a plugin that hooks at global_start:

function offline_header()
{
	global $mybb,$current_page;
	$closed_bypass=array
	(
		'member.php'=>array
		(
			'login',
			'do_login',
			'logout',
		),
		'captcha.php',
	);
	if($mybb->settings['boardclosed']==1&&$mybb->usergroup['cancp']!=1&&!in_array($current_page,$closed_bypass)&&(!is_array($closed_bypass[$current_page])||!in_array($mybb->input['action'],$closed_bypass[$current_page])))
	{
		header('Status: 503 Service Unavailable');
		header('Retry-After: 600');
	}
}

But it would be nice to set the time in Admin CP and MyBB sends the 503 header.


Forum Jump:


Users browsing this thread: 1 Guest(s)