User & Groups Module - Blank Page?
#3
Don't use create_function() - it has been deprecated in PHP 7.1 and will be removed in 7.2. Instead, use a proper function:

$plugins->add_hook('admin_user_menu', 'myplugin_admin_user_menu');
function myplugin_admin_user_menu(&$sub_menu)
{
	$sub_menu[] = array(
		'id' => 'ranks',
		'title' => 'Manage Ranks',
		'link' => 'index.php?module=user-ranks',
	);
}

$plugins->add_hook('admin_user_action_handler', 'myplugin_admin_user_action_handler'); 
function myplugin_admin_user_action_handler(&$actions)
{
	$actions['ranks'] = array(
		'active' => 'ranks',
		'file' => 'ranks.php',
	);
}

That should also give some better error logs if there is a problem.
Reply


Messages In This Thread
User & Groups Module - Blank Page? - by Lewis L - 2017-07-19, 02:39 PM
RE: User & Groups Module - Blank Page? - by fizz - 2017-07-19, 02:41 PM
RE: User & Groups Module - Blank Page? - by Euan T - 2017-07-19, 04:49 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)