Member 3639
Active member
Easily possible will whip something up later today for you
Easily possible will whip something up later today for you
You can always cache it out to a static file every fifteen minutes are so too -Does this put a burden on the server to keep pulling these threads?
Thanks a lot!!!! Now everything works just perfect! Cheers, mate.Check the first post, have updated it with new code that is tested here working fine: http://www.gamingonlinux.info/test.php
Ok, so if anybody is interested I have a working code that gets you to the last post of the thread, displays the last post author, last post date, post count, view count
$user = XenForo_Model::create('XenForo_Model_User')->getUserById(1);
echo '<img src="' . XenForo_Template_Helper_Core::helperAvatarUrl($user, 's') . '" />';
$node_id_list = implode($nodes_get, ',');
$sql_forum = "SELECT `title`, `thread_id`, `view_count`, `reply_count` FROM `xf_thread` WHERE `node_id` IN ($node_id_list) ORDER BY `last_post_date` DESC LIMIT {$limit}";
It doesn't work if the script is not in the forum root. $forum_url has no effect now on how XenForo_Link::buildPublicLink builds links.
$threadUrl =$forum_url. XenForo_Link::buildPublicLink('threads', $thread);
We use essential cookies to make this site work, and optional cookies to enhance your experience.