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

XF 1.2 Show recent posts first

Discussion in 'XenForo Questions and Support' started by HenrikHansen, Feb 23, 2014.

  1. HenrikHansen

    HenrikHansen Well-Known Member

    Where is the setting that by default for all users show recent posts first in thread view (instead of oldest posts first). I cannot find the setting? :(
  2. Chris D

    Chris D XenForo Developer Staff Member

    There is no such setting.
    HenrikHansen likes this.
  3. HenrikHansen

    HenrikHansen Well-Known Member

    There is not? No wonder I could not find it. Maybe it is from vb i remember it. I am bit annoyed that thread discussions linked to from resource managers always go to first post in threads, which can be very old. That is not best solution for my new project.
  4. Chris D

    Chris D XenForo Developer Staff Member

    Change the template so that the discussion tab goes to the first unread post.

    Template: resource_view_tabs

    <a href="{xen:link threads, $thread}">{xen:phrase discussion}</a>
    Replace with:
    <a href="{xen:link threads/unread, $thread}">{xen:phrase discussion}</a>
    Admittedly, this will only work for registered members. For guests or someone who hasn't viewed the thread before it will still go to the first post on the first page.
    HenrikHansen likes this.
  5. HenrikHansen

    HenrikHansen Well-Known Member

    Thanks a lot. I wonder why this is also not used here at Xenforo.
  6. Chris D

    Chris D XenForo Developer Staff Member

    Dunno. Would be useful, actually :)

    Might be worth making an RM suggestion about it.
    wedgar likes this.
  7. HenrikHansen

    HenrikHansen Well-Known Member

  8. SoeHoe

    SoeHoe Active Member

    Thank you @Chris D , it is very useful. This function should be in core.

Share This Page