- Joined
- May 31, 2022
- Messages
- 166
- Points
- 28
Reputation:
Reputation:
Reputation:
What mod or code can add sort threads by view in forum? I have this only.
Reputation:
How does the filter look like if you are in a forum overview, do you see views there?
Because as default option I do not see views too
Reputation:
Yes in forum there is views filter ascending/descending...But in node options not...
'sortOptions' => $forumType->getThreadListSortOptions($forum, true),
$sortOrders = $this->TypeHandler->getThreadListSortOptions($this, true);
if (!isset($sortOrders[$this->default_sort_order]))
if ($forAdminConfig)
{
unset($options['view_count'], $options['first_post_reaction_score']);
}
Reputation:
This seems to be explicitly removed by XenForo inside the code in two locations. All of them are protected functions.
PHP:'sortOptions' => $forumType->getThreadListSortOptions($forum, true),
the true is the option, where these two sort options will be removed, this is a public function and could be modified:PHP:$sortOrders = $this->TypeHandler->getThreadListSortOptions($this, true); if (!isset($sortOrders[$this->default_sort_order]))
Anyway it looks like that the sorting function for views do not work as expected, maybe that the reason that they removed it from the admin section.PHP:if ($forAdminConfig) { unset($options['view_count'], $options['first_post_reaction_score']); }
Reputation:
Does it work for you correctly? You mentioned you have it
Reputation: