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

Cannot Reproduce latest/unread posts issue

Discussion in 'Resolved Bug Reports' started by ichpen, Jun 12, 2015.

  1. ichpen

    ichpen Well-Known Member

    Hi all, apologies if this has been mentioned before. Running XF 1.4.7.

    I've received complaints that when users navigate to latest unread posts the following behaviour occurs (I've seen this on a few occasions):

    1. New Posts -> click on thread title (uri: /unread) -> this routes to ....#post-xxxxx
    - the problem is that the page scrolls to the presumably anchor of #post-xxxx meaning it goes to the end of that post so user believes the post in front of him is the latest when in fact it is the previous post. Basically in my limited mind it should really go to the post before the latest in order to truly display the latest post in a thread.

    Is there anyway to address this?

    2. New Posts -> occasionally things get lost and it ends up going 2 or 3 posts past the latest. This one is tricky to recreate so can't provide more info other than the fact I've seen it happen.

  2. imthebest

    imthebest Formerly Super120

    Ads or other stuff inserted in your templates can alter the way in how the browser "scrolls" down to the specific post.
  3. ichpen

    ichpen Well-Known Member

    Definitely not running any ads and I'm about to try to replicate on this forum. From what I see it scrolls to the permalink anchor #post-941966 (example). The permanlink anchor is at the bottom of the message box so it will obviously scroll position it at the top. On a page with many posts this means the last post will be scrolled out of view so user has to scroll up. It's not intuitive at all.

    Anyway, will try it out here but from what I've seen even on the default template that's the behaviour.

    I have a sneaking suspicion that problem 2 is down to some caching, memcached maybe? Whereby if the user lingers on the new posts list and clicks on the thread title it somehow doesn't take into consideration posts made in the interim, but this is just a guess.
    Last edited: Jun 12, 2015
  4. Amaury

    Amaury Well-Known Member

    Are you able to reproduce this issue here?
  5. ichpen

    ichpen Well-Known Member

    Trying to as we speak, might use this thread as a test bed...

    I need to add some content filler....



  6. Mike

    Mike XenForo Developer Staff Member

    So you know, there's a test forum: https://xenforo.com/community/forums/test-messages.6/ That's the ideal place to test.

    However I would note that jumping to a particular part of the page via an anchor/hash is generally done by the browser and it is supposed to put it at the top of the page -- it always does for me. Browser information and a demonstration URL would be useful (it should just need to be link with a hash part).
    Amaury likes this.
  7. ichpen

    ichpen Well-Known Member

    Thanks sir, shall go away and try to recreate in the other forum.

Share This Page