MyBB Community Forums

Full Version: Redirecting after login?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
While MyBB is supposed to automatically redirect to it's referring page, I am using the MyBB integrator, located at http://phpdave.com/MyBBIntegrator/, and it doesn't seem to work.

<?
	define('IN_MYBB', NULL);
	global $mybb, $lang, $query, $db, $cache, $plugins, $displaygroupfields;
	require_once '/home/arflux-rpg/public_html/forum/global.php';
	require_once 'class.MyBBIntegrator.php';
	$MyBBI = new MyBBIntegrator($mybb, $db, $cache, $plugins, $lang, $config); 
	if (!$MyBBI->isLoggedIn())
	{
		header( 'Location: http://arflux-rpg.com/forum/member.php?action=login' );
	}
?>

Is there something I can change, or a manual parameter I can add to the url in order to force redirect?