• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 Go to /unread post on forum_list (XF1)

Russ

Well-known member
#1
Maybe my morning coffee hasn't kicked in... but is there a way to link to the latest unread rather than the latest post.

Code:
<a href="{xen:link posts, $forum.lastPost}" title="{$forum.lastPost.title}">{$forum.lastPost.title}</a>
Did a
Code:
{xen:helper dump, $forum}
but not really seeing anything to adjust the URL.
 

Chris D

XenForo developer
Staff member
#2
Probably not. The unread data is only really available in the thread record itself. We do some preparation of the thread beforehand to ascertain its unread state, you can sort of see this in the thread_list_item template:
Code:
{xen:link "threads{xen:if '{$thread.isNew} AND {$thread.haveReadData}', '/unread'}", $thread}
 

Russ

Well-known member
#3
Probably not. The unread data is only really available in the thread record itself. We do some preparation of the thread beforehand to ascertain its unread state, you can sort of see this in the thread_list_item template:
Code:
{xen:link "threads{xen:if '{$thread.isNew} AND {$thread.haveReadData}', '/unread'}", $thread}
Coffee didn't fail me, thank you Chris I kind of assumed it wasn't available but wanted to check. Appreciate it.