Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Behind the Scenes
  3. Qt.io webservices
  4. New posts counter is wrong sometimes
QtWS25 Last Chance

New posts counter is wrong sometimes

Scheduled Pinned Locked Moved Qt.io webservices
31 Posts 7 Posters 12.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DenisKormalev
    wrote on last edited by
    #1

    Just noticed that new posts counter added yesterday shows wrong value.
    I'd visited DevNet hour ago and read all new posts. Now I've open DevNet again and saw that there are 3 new posts. New posts list showed me 2 topics and each of them contains only one new comment. So counter should be 2.

    1 Reply Last reply
    0
    • ? This user is from outside of this forum
      ? This user is from outside of this forum
      Guest
      wrote on last edited by
      #2

      Confirmed. Just opened new posts which showed 6 new posts, but listed just 5 in the page

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DenisKormalev
        wrote on last edited by
        #3

        Chetankjain, can you also count number of new comments (as I think they are countered in this counter, not threads number) to confirm?

        1 Reply Last reply
        0
        • ? This user is from outside of this forum
          ? This user is from outside of this forum
          Guest
          wrote on last edited by
          #4

          tried it just now, and hope I got the count right :P
          showed 12 new posts, listed 8, including replies there were 9
          will recheck this once more when I login next

          1 Reply Last reply
          0
          • D Offline
            D Offline
            DenisKormalev
            wrote on last edited by
            #5

            Counted again. 3 new posts, one topic in list and only one new comment in this topic.

            1 Reply Last reply
            0
            • D Offline
              D Offline
              DenisKormalev
              wrote on last edited by
              #6

              Can't find what does it count instead of number of new posts. Now it showed me 9 new posts with 2 topics on list and each contains one new comment. One contains 5 comments and other 3 comments totally. So can't make 9 here (either 8 if only comments are counted or 10 if comments and initial posts counted). It is a good quiz for curious brain :) Please, when you fix it tell us what was the problem.

              1 Reply Last reply
              0
              • ? This user is from outside of this forum
                ? This user is from outside of this forum
                Guest
                wrote on last edited by
                #7

                ok to spice this up a bit, just saw 5 new posts, 4 threads listed, but threads+comments = 5 ...
                so is it working or not working :P

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  mgran
                  wrote on last edited by
                  #8

                  Note that the front page can be the victim of some caching and that will throw of the math by a bit.

                  In summary the code says $total_new = $post_count + $topic_count; based on a time stamp from the last visit.

                  Project Manager - Qt Development Frameworks

                  1 Reply Last reply
                  0
                  • F Offline
                    F Offline
                    Franzk
                    wrote on last edited by
                    #9

                    Does that mean a new topic is counted both as a post and a topic?

                    "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

                    http://www.catb.org/~esr/faqs/smart-questions.html

                    1 Reply Last reply
                    0
                    • ? This user is from outside of this forum
                      ? This user is from outside of this forum
                      Guest
                      wrote on last edited by
                      #10

                      hi Marius, today morning I saw some like 41 as the count for new posts, I had to close browser and reboot, when I logged back in, it was down to like 4 posts :( think I missed a whole bunch of posts... something to be looked into? I managed to open a few replies (13) from my subscriptions via mail, but lost the rest ...

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        mgran
                        wrote on last edited by
                        #11

                        Not sure I can do anything to help out with that :|

                        Project Manager - Qt Development Frameworks

                        1 Reply Last reply
                        0
                        • ? This user is from outside of this forum
                          ? This user is from outside of this forum
                          Guest
                          wrote on last edited by
                          #12

                          but isnt that a bug? Unless one opens a post, it shuld continue to be listed...

                          1 Reply Last reply
                          0
                          • M Offline
                            M Offline
                            mgran
                            wrote on last edited by
                            #13

                            It's "Posts since last visit" not "Unread" I'm afraid.

                            Project Manager - Qt Development Frameworks

                            1 Reply Last reply
                            0
                            • ? This user is from outside of this forum
                              ? This user is from outside of this forum
                              Guest
                              wrote on last edited by
                              #14

                              [quote author="mariusg" date="1288701988"]It's "Posts since last visit" not "Unread" I'm afraid.[/quote]

                              I did this,

                              1. Login to devnet, 7 new posts, read one post
                              2. Now devnet home page shows 6 new posts
                              3. From a totally new browser logged into devnet and still see 6 new posts

                              So if this were posts since last visit, it should have shown 0 ?

                              1 Reply Last reply
                              0
                              • ? This user is from outside of this forum
                                ? This user is from outside of this forum
                                Guest
                                wrote on last edited by
                                #15

                                more issues ...
                                just now went to the devnet home, and saw that there were 4 unread posts, I clicked on it and saw a single post with 2 replies, and I already had viewed this post with the same 2 replies ...

                                1 Reply Last reply
                                0
                                • M Offline
                                  M Offline
                                  mgran
                                  wrote on last edited by
                                  #16

                                  [quote author="chetankjain" date="1291047786"]more issues ...
                                  just now went to the devnet home, and saw that there were 4 unread posts, I clicked on it and saw a single post with 2 replies, and I already had viewed this post with the same 2 replies ...[/quote]

                                  Could be that your browser cached the page since last time? Do you remember if you had a page view on the front page earlier with 4 unread posts? If so we need to tweak the cache headers to be stricter.

                                  Project Manager - Qt Development Frameworks

                                  1 Reply Last reply
                                  0
                                  • ? This user is from outside of this forum
                                    ? This user is from outside of this forum
                                    Guest
                                    wrote on last edited by
                                    #17

                                    nope I was in a thread and then navigated to the home page and saw the new posts

                                    1 Reply Last reply
                                    0
                                    • U Offline
                                      U Offline
                                      ucomesdag
                                      wrote on last edited by
                                      #18

                                      Just wanted to know if it's possible to set the "new post counter" back to zero without having to open all forum posts? Pretty anoying and loging in and out doesn't help either

                                      Write “Qt”, not “QT” (QuickTime).

                                      1 Reply Last reply
                                      0
                                      • V Offline
                                        V Offline
                                        vsorokin
                                        wrote on last edited by
                                        #19

                                        Sometimes site clear old unread messages, but only sometimes... :)

                                        --
                                        Vasiliy

                                        1 Reply Last reply
                                        0
                                        • U Offline
                                          U Offline
                                          ucomesdag
                                          wrote on last edited by
                                          #20

                                          Would be nice to be able to reset the counter manually or by loging out/in, as they are supposed to be the posts since my last visit.... I'aint going to open all 1053 forum posts!!! :-)

                                          Write “Qt”, not “QT” (QuickTime).

                                          1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved