• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Users Awaiting Approval, chronological order?

Jake Bunce

XenForo moderator
Staff member
#2
library/XenForo/ControllerAdmin/User.php

Add the red code:

Code:
	/**
	 * Shows a list of moderated users and allows them to be managed.
	 *
	 * @return XenForo_ControllerResponse_Abstract
	 */
	public function actionModerated()
	{
		$users = $this->_getUserModel()->getUsers(array(
			'user_state' => 'moderated'
		), array('order' => 'register_date', 'direction' => 'ASC'));
		if (!$users)
		{
			return $this->responseMessage(new XenForo_Phrase('no_users_awaiting_approval'));
		}

		$viewParams = array(
			'users' => $users
		);

		return $this->responseView('XenForo_ViewAdmin_User_Moderated', 'user_moderated', $viewParams);
	}
That should do it.
 

jonsidneyb

Well-known member
#3
library/XenForo/ControllerAdmin/User.php

Add the red code:

Code:
/**
* Shows a list of moderated users and allows them to be managed.
*
* @return XenForo_ControllerResponse_Abstract
*/
public function actionModerated()
{
$users = $this->_getUserModel()->getUsers(array(
'user_state' => 'moderated'
), array('order' => 'register_date', 'direction' => 'ASC'));
if (!$users)
{
return $this->responseMessage(new XenForo_Phrase('no_users_awaiting_approval'));
}
 
$viewParams = array(
'users' => $users
);
 
return $this->responseView('XenForo_ViewAdmin_User_Moderated', 'user_moderated', $viewParams);
}
That should do it.
Thanks