Cupara
Well-known member
Ok I have multiple forum chooser for my Latest Threads block. The issue is once I have it pull the option it still only displays 1 result when it should display 5.
Here is my code:
I have done a print_r on $ltMatches, it is displaying like it should so I know its not in the option.
So any help would be much appreciated.
Thanks
Here is my code:
PHP:
$ltOption = XenForo_Application::get('options')->xportal_latestThreads;
$ltMatches = implode(',', $ltOption);
$lThreads = $this->limitQueryResults('
SELECT *
FROM xf_thread
WHERE node_id = ?
AND discussion_state = "visible"
AND discussion_open = "1"
ORDER BY thread_id DESC
', 5);
return $this->_getDb()->fetchAll($lThreads, $ltMatches);
So any help would be much appreciated.
Thanks