News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

[HELP] account topics of day.

Started by gvalfer, November 14, 2009, 06:52:44 AM

Previous topic - Next topic

gvalfer

ppl there is some way to account all topics of day?

or else: count the topics from a specific block?

Marcus Forsberg

Please be a bit more specific, what exactly are you after?

gvalfer

example:

Post of day: 45

account all topics of day in my site

Marcus Forsberg

Where would you like to display that stat, then, and which version are you using?

gvalfer

my version is 1.1.0

i want add this mode in Board.index.template.php

thanks

Arantor

Well, there is already a count of new topics per day on the Stats page, pulling that on to the front page wouldn't be so hard.

gvalfer

There is, counting the average of topics per day, but does not count posts that are made daily.

i need help please :(

Arantor

Not just that, actually.

If you go further down the stats page, you can see the number of topics and number of posts added per day - broken down per day, as per the attached screenshot example from here.


So, do you want posts per day or topics per day, then?

gvalfer


Arantor

Quote from: Arantor on November 14, 2009, 01:56:09 PM
So, do you want posts per day or topics per day, then?

The fact it's already stored as I've demonstrated means it would actually be very quick to add, but I need to know if a) that is the value you want and b) which you want because you seem to have changed your mind between the two.

gvalfer


Arantor

And where on the board index? Above what, below what?

Just literally a "There have been xyz topics today" message?

gvalfer

I want in board.index.template.php

example:

Topics today: 23

   
after at, UserOnline or in any area

thks

Arantor

You need to be more specific, where precisely? So that when I go to list the code edits, I'm putting it in the right place.

gvalfer

see image please



best regards, thanks

Arantor

Also, random question:

How is it supposed to count topics? Topics in the last 24 hours, or topics since midnight today, and if it's topics since midnight today, is it using server time, or the user's own time zone which could be quite different?

gvalfer

is from 00.00 hours to 24.00 hours

:)

Arantor

According to whose timezone? Your time zone? The server's? The user browsing the forum at the time?

gvalfer


Arantor

And enforce that for all users?

Can all users see this?

Advertisement: