Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: danhhh on April 04, 2004, 04:55:41 AM

Title: topic views bug?
Post by: danhhh 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.

http://www.itsunbelievablejeff.com/test_bb/index.php?board=1.0 for an example
Title: Re: topic views bug?
Post by: [Unknown] 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]
Title: Re: topic views bug?
Post by: danhhh 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?
Title: Re: topic views bug?
Post by: [Unknown] 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]
Title: Re: topic views bug?
Post by: danhhh 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 ;)