1. 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?

Discussion in 'XenForo Questions and Support' started by jonsidneyb, May 5, 2013.

  1. jonsidneyb

    jonsidneyb Well-Known Member

    Is there a way to get Users Awaiting Approval in, chronological order rather than alphabetical order?
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member


    Add the red 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.
  3. jonsidneyb

    jonsidneyb Well-Known Member


Share This Page