9yN75.png
Resource icon

Add preview text for first post in thread list

XenForo Rocks

Team Member
Administrator
Moderator
+Lifetime VIP+
Contributor
ViP
True Member
+Member+
Registered
#1
XenForo Rocks submitted a new resource:

Add preview text for first post in thread list - Rather than a popup preview, it is inline in the thread listing.

library/XenForo/ControllerPublic/Forum.php

Replace code:

Code:
protected function _getThreadFetchElements(array $forum, array $displayConditions)
{
$threadModel = $this->_getThreadModel();
$visitor = XenForo_Visitor::getInstance();

$threadFetchConditions = $displayConditions + $threadModel->getPermissionBasedThreadFetchConditions($forum);

if ($this->_routeMatch->getResponseType() != 'rss')
{
$threadFetchConditions += array('sticky' => 0);
}

$threadFetchOptions = array(
'join' =>...
Read more about this resource...
 

Similar threads

Similar threads

Top