MyBB Community Forums

Full Version: [Recent Threads On Index] Go to last post when click to thread title
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
I just have installed the Recent Threads On Index plugin. 
It's possible to make a little hack? When users click on the title of threads (in the Recent Posts area in index) would be perfect if they would arrive at the latest post in topic or better at the first unread post, not at the begining of the thread (page 1, first post). 

There is possible to fix it?

Thanks,
exactly which plugin you have installed for the recent threads ?
recent threads table already includes link to the last post of the thread.

yet, if you like to change the thread title link then

template : recentthread_thread

find
<a href="{$mybb->settings['bburl']}/showthread.php?tid={$thread['tid']}">{$thread['subject']}</a></span>
replace with
<a href="{$lastpostlink}">{$thread['subject']}</a></span>
It works, thank you!
Just like a curiosity - there is a different code to link to the latest post unread by user in topic or the code above is the only solution?
‌^ recent threads title is prefixed by an icon/image with link to first unread post.

[Image: wyIjO4z.gif]

if you like to use first unread post link for the thread title then
you can change earlier suggested code to
<a href="{$thread['newpostlink']}">{$thread['subject']}</a></span>
Very helpful. Thanks.