MyBB Community Forums

Full Version: {$awaitingusers} visible to users with Mod CP Access
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How would I be able to accomplish making the index message visible to users with Mod CP access as opposed just admins?
[Image: 653ad548e57b48a48751508bec2861b6.png]
Where in the language files would I edit the awaiting users message also?

Thanks in advance.  Smile
global.php file needs to be modified for the first requirement
if($admincplink) can be changed to if($modcplink)

for the second requirement see ~/inc/languages/global.lang.php language file
Thanks for the response, although I did change global.php to what's below and it didn't work: (only still displays for admins)
if($awaitingusers > 0)
	{
		if($awaitingusers == 1)
		{
			$awaiting_message = $lang->awaiting_message_single;
		}
		else
		{
			$awaiting_message = $lang->sprintf($lang->awaiting_message_plural, $awaitingusers);
		}

		if($modcplink)
		{
			$awaiting_message .= $lang->sprintf($lang->awaiting_message_link, $mybb->settings['bburl'], $admin_dir);
		}

		eval('$awaitingusers = "'.$templates->get('global_awaiting_activation').'";');
	}
	else
	{
		$awaitingusers = '';
	}
}
^ oops! that was incorrect. please change it back to original code.
global.php => $mybb->usergroup['cancp'] == 1 can be changed to $mybb->usergroup['canmodcp'] == 1
That did the trick, thank you.