public function actionIndex()
{
$conversationId = $this->_input->filterSingle('conversation_id', XenForo_Input::UINT);
if ($conversationId)
{
return $this->responseReroute(__CLASS__, 'view');
}
$visitor = XenForo_Visitor::getInstance();
$conversationModel = $this->_getConversationModel();
$conditions = $this->_getListConditions();
$fetchOptions = $this->_getListFetchOptions();
$totalConversations = $conversationModel->countConversationsForUser($visitor['user_id'], $conditions);
$conversations = $conversationModel->getConversationsForUser($visitor['user_id'], $conditions, $fetchOptions);
$conversations = $conversationModel->prepareConversations($conversations);
$viewParams = array(
'conversations' => $conversations,
'page' => $fetchOptions['page'],
'conversationsPerPage' => $fetchOptions['perPage'],
'totalConversations' => $totalConversations,
'ignoredNames' => $this->_getIgnoredContentUserNames($conversations),
'canStartConversation' => $conversationModel->canStartConversations(),
'search_type' => $conditions['search_type'],
'search_user' => $conditions['search_user'],
'pageNavParams' => array(
'search_type' => ($conditions['search_type'] ? $conditions['search_type'] : false),
'search_user' => ($conditions['search_user'] ? $conditions['search_user'] : false),
),
);
// return $this->responseView('XenForo_ViewPublic_Conversation_List', 'conversation_list', $viewParams);
return $this->_getWrapper(
'conversations', 'view',
$this->responseView('XenForo_ViewPublic_Conversation_List', 'conversation_list', $viewParams)
);
}
// return $this->responseView('XenForo_ViewPublic_Conversation_List', 'conversation_list', $viewParams);
return $this->_getWrapper(
'conversations', 'view',
$this->responseView('XenForo_ViewPublic_Conversation_List', 'conversation_list', $viewParams)
);
/**
* @return XenForo_Model_Conversation
*/
protected function _getConversationModel()
{
return $this->getModelFromCache('XenForo_Model_Conversation');
}
/**
* @return XenForo_Model_Attachment
*/
protected function _getAttachmentModel()
{
return $this->getModelFromCache('XenForo_Model_Attachment');
}
/**
* Gets the account pages wrapper.
*
* @param string $selectedGroup
* @param string $selectedLink
* @param XenForo_ControllerResponse_View $subView
*
* @return XenForo_ControllerResponse_View
*/
protected function _getWrapper($selectedGroup, $selectedLink, XenForo_ControllerResponse_View $subView)
{
return $this->getHelper('Account')->getWrapper($selectedGroup, $selectedLink, $subView);
}
}

/**
* @return XenForo_Model_Attachment
*/
protected function _getAttachmentModel()
{
// return $this->getModelFromCache('XenForo_Model_Attachment');
return $this->_getWrapper(
'conversations', 'view',
$this->responseView('XenForo_ViewPublic_Conversation_List', 'conversation_list', $viewParams)
);
}
/**
* Gets the account pages wrapper.
*
* @param string $selectedGroup
* @param string $selectedLink
* @param XenForo_ControllerResponse_View $subView
*
* @return XenForo_ControllerResponse_View
*/
protected function _getWrapper($selectedGroup, $selectedLink, XenForo_ControllerResponse_View $subView)
{
return $this->getHelper('Account')->getWrapper($selectedGroup, $selectedLink, $subView);
}
}
Thanks Jake, I tried doing it again and made it worse so re-uploaded the original file. Request posted: http://xenforo.com/community/threads/account-settings-sidebar-in-conversations.47483/Review my directions again. You did it wrong. You need to modify the return values in the various actions, like actionIndex(). You have modified the _getAttachmentModel() function which is wrong.
This does require that you be able to identify which actions to modify. This can be done more cleanly with an addon.
We use essential cookies to make this site work, and optional cookies to enhance your experience.