Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
I'm asking how the views in a forum works?
As i have a forums with sponsors Topics,
there all locked topics.

And as a test i clicked on 1 several times to see if
the views count would increase?

It didnt?

I tried a few others and they didnt either.
So i closed my browser window and went and revisited.

They only increased once?

I'm not understanding how and when they update?
If they require a post in that forum to trigger
a update of total's then i'm goosed as its all the
topics in there are locked no one can post?

Update
Since ive been writing this.
The one in question has now updated but only by 3
i visited it 6 times?


How does it work?
Cheers

Mark.


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
There is a bit of caching going on with the view counter. With version 6 we used to update it everytime a post was viewed which caused the table to be locked every time it was updated. They were quick locks, but on a busy forum they would add up. With version 7 the views are tracked in a seperate table. When a new post is made on the forum it triggers a script that updates the view counters.

Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
Cheers for the feed back smile


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Joined: Nov 2006
Posts: 3,097
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,097
Likes: 1
Rick,

That might be okay for some posts but I would like to have a method (SQL or PHP or ?? ) where I can manually trigger the view update.

We often review posts (view - activity) to determine if we need to update code or explanation in the post. The post may not ever get another post for a long time in some forums but doesn't mean their not being viewed.

Or does the trigger update ALL forums when a post is made in ANY forum?




Last edited by ntdoc; 11/28/2006 1:18 AM.
Joined: Nov 2006
Posts: 3,097
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,097
Likes: 1
Okay well I think my question was just answered. Someone posted in another forum and now that post in question has been updated for the amount of views. I can live with that.

Thanks.


Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
Originally Posted by ntdoc
Or does the trigger update ALL forums when a post is made in ANY forum?


That one wink


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
8.0.1 Patch Changelog Discussion
by isaac - 11/26/2025 1:34 PM
Upgraded to ver8 - now can't login
by phoenix011235 - 10/24/2024 8:50 AM
Who's Online Now
3 members (mmem700, 2 invisible), 569 guests, and 117 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)