PDA

View Full Version : Summarized Counter?


23 May 2000, 05:32
How is it possible to display a total counter (added counters from the single threads) in the start-page of vb?

Thanks for your hints!

23 May 2000, 05:51
it already shows total posts in the forum. What else are you wanting?

23 May 2000, 06:06
Martin,

i want to show the summarized views of all threads in the forum page - near by posts/threads/new member ...

23 May 2000, 06:19
Like "This forum has been viewed this # of times"?

So just a total of all views?

23 May 2000, 06:23
Yep - simply this!

;)

23 May 2000, 06:28
now I understand what you're wanting :)

I think it's doable, though I have spent any time thinking about it.

23 May 2000, 08:52
Try adding some code like this to the index.php file at about line 80:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



This is not included as standard, since the SQL call is potentially quite server intensive.

John

23 May 2000, 10:30
Originally posted by John
Try adding some code like this to the index.php file at about line 80:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



This is not included as standard, since the SQL call is potentially quite server intensive.
John

John - why not adding a total counter into the database as standard?

23 May 2000, 10:45
I believe he answered that in your quote above?

This is not included as standard, since the SQL call is potentially quite server intensive.
John

Did I miss something?:)

28 May 2000, 06:52
Originally posted by werehere
I believe he answered that in your quote above?


Nope - i don't believe this ;)

In the table thread is a field called views used, why not adding something like a "global views" in the database, and everytime the field views of any thread is incremented - the "global views" would be incremented too!

If we use "global views" instead of a manual counting in index.php it would'nt be quite server intensive.