امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
I change the order in which posts are displayed in a thread by extending the class:
PHP:
The display of posts in threads has met my wishes...
Read more
PHP:
کد:
<?php
use XF\Mvc\Entity\Finder;
use XF\Mvc\Entity\Repository;
namespace HT\ForumImplement\Repository;
class Thread extends XFCP_Thread
{
public function getDefaultPostListSortOptionsRd(): array
{
return [
'post_date' => [
['position', 'DESC'],
['post_date', 'DESC'],
]
];
}
}
Read more
