Yep must be around this part just up look at the SQL query from Zoints index.php
Code:
$_threads = $db->query_read("
SELECT * FROM " . TABLE_PREFIX . "thread
WHERE forumid IN(" . implode(',', $visible) . ")
AND threadid IN(" . implode(',', $threadids) . ")
ORDER BY $orderby $direction
LIMIT $limitlower, $pp
");
the one made by forumdisplay.php catchs much datas
Code:
$threads = $db->query_read_slave("
SELECT $votequery $previewfield
thread.threadid, thread.title AS threadtitle, thread.forumid, pollid, open, replycount, postusername, postuserid, thread.iconid AS threadiconid,
$lastpost_info2, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, notes, thread.visible, sticky, votetotal, thread.attach,
hiddencount, deletedcount
" . (($vbulletin->options['threadsubscribed'] AND $vbulletin->userinfo['userid']) ? ", NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed" : "") . "
" . ($deljoin ? ", deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason" : "") . "
" . (($vbulletin->options['threadmarking'] AND $vbulletin->userinfo['userid']) ? ", threadread.readtime AS threadread" : "") . "
" . ($redirectjoin ? ", threadredirect.expires" : "") . "
$hook_query_fields
FROM " . TABLE_PREFIX . "thread AS thread
$deljoin
" . (($vbulletin->options['threadsubscribed'] AND $vbulletin->userinfo['userid']) ? " LEFT JOIN " . TABLE_PREFIX . "subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = " . $vbulletin->userinfo['userid'] . " AND canview = 1)" : "") . "
" . (($vbulletin->options['threadmarking'] AND $vbulletin->userinfo['userid']) ? " LEFT JOIN " . TABLE_PREFIX . "threadread AS threadread ON (threadread.threadid = thread.threadid AND threadread.userid = " . $vbulletin->userinfo['userid'] . ")" : "") . "
$previewjoin
$tachyjoin
$redirectjoin
$hook_query_joins
WHERE thread.threadid IN (0$ids) $hook_query_where
ORDER BY sticky DESC, $sqlsortfield $sqlsortorder
");
this is just supositions because I dunno really at coding but it looks like the zoints query doesn't retrieve what we do need the threadid. In function_forumdisplay.php included in the zoints index.php you see:
Code:
if ($thread['threadiconid'])
{
$thread['threadiconpath'] = $vbulletin->iconcache["$thread[threadiconid]"]['iconpath'];
$thread['threadicontitle'] = $vbulletin->iconcache["$thread[threadiconid]"]['title'];
}
// show poll icon
if ($thread['pollid'] != 0)
{
$show['threadicon'] = true;
$thread['threadiconpath'] = "$stylevar[imgdir_misc]/poll_posticon.gif";
$thread['threadicontitle'] = $vbphrase['poll'];
}
// show specified icon
else if ($thread['threadiconpath'])
{
$show['threadicon'] = true;
}
// show default icon
else if (!empty($vbulletin->options['showdeficon']))
{
$show['threadicon'] = true;
$thread['threadiconpath'] = $vbulletin->options['showdeficon'];
$thread['threadicontitle'] = '';
}
if ($thread['threadiconid']) is not defined I think and we land in the default post icon else if (!empty($vbulletin->options['showdeficon']))