Advertisement:

Author Topic: topic views bug?  (Read 4095 times)

Offline danhhh

  • Newbie
  • *
  • Posts: 6
topic views bug?
« on: April 04, 2004, 04:55:41 AM »
the "views" column in a forum screen doesn't seem to work properly :-\.  I've got one topic atm that's got 26 replies and 6 views.  from a quick search i can't see any mention of this previously.

hxxp:www.itsunbelievablejeff.com/test_bb/index.php?board=1.0 [nonactive] for an example

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: topic views bug?
« Reply #1 on: April 04, 2004, 05:11:29 AM »
This is to avoid "double counting".  You see, this topic is a good example:

http://www.itsunbelievablejeff.com/test_bb/index.php?topic=193.0

Notice that only two people are posting in this topic.  Because this is the only topic these two people are reading, the view is not going up.

Currently, if you view a topic... wait.... go back to it... *without* going to any other topics in between, the view count will NOT increase.  This seems logical, because it's really not "another view" so to speak.

-[Unknown]

Offline danhhh

  • Newbie
  • *
  • Posts: 6
Re: topic views bug?
« Reply #2 on: April 04, 2004, 06:14:00 AM »
I see.  cheers.  is there an easy edit to the code I could make to go back to the way it was with yabb?

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: topic views bug?
« Reply #3 on: April 04, 2004, 08:30:42 AM »
I've changed it so that when you post in a topic, it will let you increase the view count again... this way the views will never be lower than the replies.

But what does it really matter anyway?

-[Unknown]

Offline danhhh

  • Newbie
  • *
  • Posts: 6
Re: topic views bug?
« Reply #4 on: April 04, 2004, 08:59:37 AM »
I don't know, I guess it just looks untidy when there's a topic with 90 replies and 12 views ;)