Announcement

Collapse
No announcement yet.

double thread views count

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • double thread views count

    I've just noticed on my forums,when i view a thread the "views" count for that thread goes up by two instead of one.
    This happens on all viewed threads.

    Any ideas guys.
    Techzonez - Tech News
    Techzonez Forums - Tech Community

  • #2
    Probably some kinda hack is messing up thread views
    You're my Prince of Peace
    And I will live my life for You

    Comment


    • #3
      Originally posted by nuno
      Probably some kinda hack is messing up thread views
      I've checked the forumdisplay.php for thread view entries and they are as the original file.

      Which templates are thread views called from?
      Techzonez - Tech News
      Techzonez Forums - Tech Community

      Comment


      • #4
        Would the mouse rollover template hack here possibly be affecting the views count.

        The reason i ask is because i have just visited some other boards,and i noticed ones using the hack have the same double count problem,whereas ones i visited that don't use the hack, are correctly counting the views.

        Just a thought.

        Can any of you who use the mouse rollover hack please try it to verify.
        Techzonez - Tech News
        Techzonez Forums - Tech Community

        Comment


        • #5
          yup, you're right, same thing happens at xiphoid's board, dump the rollover
          You're my Prince of Peace
          And I will live my life for You

          Comment


          • #6
            Originally posted by nuno
            yup, you're right, same thing happens at xiphoid's board, dump the rollover
            Hehe,i never did like it anyway.Only joking.

            Maybe someone will come up with a fix.
            Techzonez - Tech News
            Techzonez Forums - Tech Community

            Comment


            • #7
              Rev tells me our forums have the same problem
              So I guess we have to wait for a fix or vb3

              Comment


              • #8
                I have same problem, getting 2 views for only 1 actual. So 300 views count actually means 150 real views. Weird.

                Comment


                • #9
                  Simply remove the onclick="..." and the cursor:hand (or similar)-Part from the templates containing the mouseover and it should work.
                  Hints & Tips:
                  [[vB3] More Spiders / Indexers / Archives for vB3 - list]|[List of one-time-emails to ban]


                  http://sfx-images.mozilla.org/affili...efox_80x15.png

                  Comment


                  • #10
                    Have neither in any of the affected templates. I see onclick in a few, but they're related to the spellchecker which as been disabled and hence remarked out with the < ! -- etc.

                    I found 1 instance of "mouseover" when I search through all templates, in VBcode_buttons. Any other ideas? Keep 'em coming.

                    Comment


                    • #11
                      I don't have the mouseover hack installed. My showthread.php file does have the quick reply box variable added to it (firefly's hack), but no other changes.

                      Comment


                      • #12
                        I don't use the mouse roll over and I was still getting the double thread count and double "Top Viewed profile" count (from a hack) and well as my page counter was increasing by 2 with each page referesh. I finally tracked down what was causing it. It seems that if you change this in the header template:
                        <td valign="top" align="left" background="{imagesfolder}/menu_background.gif"><a href="index.php?s=$session[sessionhash]"><img src="{titleimage}" border="0" alt="$bbtitle"></a></td>
                        <td valign="bottom" align="right" nowrap background="{imagesfolder}/menu_background.gif">
                        To something else like this:
                        <td valign="top" align="left" background="{pagebgcolor}"><a href="index.php?s=$session[sessionhash]"><img src="{titleimage}" border="0" alt="$bbtitle"></a></td>
                        <td valign="bottom" align="right" nowrap background="{pagebgcolor}">
                        It starts double the thread views and other counters you may have on the site. I chnaged it to this:
                        <td valign="top" align="left"><a href="index.php?s=$session[sessionhash]"><img src="{titleimage}" border="0" alt="$bbtitle"></a></td>
                        <td valign="bottom" align="right" nowrap>
                        and my counters are now working exactly like they should. No more doubling of counts. [img]images/smilies/wink.gif[/img]
                        vBulletin - Sometimes, I'm just like, Wow, and then I'm like, Whoa, and then I'm like, Damn.

                        vBulletin.org's ol' Moderator

                        I have a lifetime terrorist hunting permit - #091101

                        chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden

                        Comment


                        • #13
                          How on earth should the rollover hack affect thread views? Your forumdisplay.php either queries the post table and gets the first post of the thread or the first post is already stored in the thread table (depends on how it has been implemented), it doesn't touch showthread.php , which would increase thread view count.

                          Comment


                          • #14
                            Originally posted by Icheb
                            How on earth should the rollover hack affect thread views? Your forumdisplay.php either queries the post table and gets the first post of the thread or the first post is already stored in the thread table (depends on how it has been implemented), it doesn't touch showthread.php , which would increase thread view count.
                            That's what I thought but there were reports that taking the mouseover hack out fixed their problem. Mine was fixed by the code above. As stupid as this sounds, taking the menu_background.gif out of those 2 lines stopped my double counting. I tested and re-tested it and that was where my problem was at. Go figure.
                            vBulletin - Sometimes, I'm just like, Wow, and then I'm like, Whoa, and then I'm like, Damn.

                            vBulletin.org's ol' Moderator

                            I have a lifetime terrorist hunting permit - #091101

                            chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden

                            Comment

                            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                            Working...
                            X