Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Mod Requests => Topic started by: gvalfer on November 14, 2009, 06:52:44 AM

Title: [HELP] account topics of day.
Post by: gvalfer on November 14, 2009, 06:52:44 AM
ppl there is some way to account all topics of day?

or else: count the topics from a specific block?
Title: Re: [HELP] account posts of day.
Post by: Marcus Forsberg on November 14, 2009, 06:54:39 AM
Please be a bit more specific, what exactly are you after?
Title: Re: [HELP] account topics of day.
Post by: gvalfer on November 14, 2009, 07:05:18 AM
example:

Post of day: 45

account all topics of day in my site
Title: Re: [HELP] account posts of day.
Post by: Marcus Forsberg on November 14, 2009, 07:07:58 AM
Where would you like to display that stat, then, and which version are you using?
Title: Re: [HELP] account posts of day.
Post by: gvalfer on November 14, 2009, 07:13:56 AM
my version is 1.1.0

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

thanks
Title: Re: [HELP] account topics of day.
Post by: Arantor on November 14, 2009, 10:19:24 AM
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.
Title: Re: [HELP] account topics of day.
Post by: gvalfer on November 14, 2009, 01:35:22 PM
There is, counting the average of topics per day, but does not count posts that are made daily.

i need help please :(
Title: Re: [HELP] account topics of day.
Post by: Arantor on November 14, 2009, 01:56:09 PM
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?
Title: Re: [HELP] account topics of day.
Post by: gvalfer on November 15, 2009, 03:13:25 AM
very hard, please help me :(
Title: Re: [HELP] account topics of day.
Post by: Arantor on November 15, 2009, 09:29:36 AM
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.
Title: Re: [HELP] account topics of day.
Post by: gvalfer on November 15, 2009, 08:34:40 PM
topics per day please

thanks
Title: Re: [HELP] account topics of day.
Post by: Arantor on November 15, 2009, 08:41:36 PM
And where on the board index? Above what, below what?

Just literally a "There have been xyz topics today" message?
Title: Re: [HELP] account topics of day.
Post by: gvalfer on November 16, 2009, 07:44:48 AM
I want in board.index.template.php

example:

Topics today: 23

   
after at, UserOnline or in any area

thks
Title: Re: [HELP] account topics of day.
Post by: Arantor on November 16, 2009, 10:48:12 AM
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.
Title: Re: [HELP] account topics of day.
Post by: gvalfer on November 16, 2009, 12:23:47 PM
see image please

(http://i37.tinypic.com/20606wx.gif)

best regards, thanks
Title: Re: [HELP] account topics of day.
Post by: Arantor on November 16, 2009, 01:41:55 PM
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?
Title: Re: [HELP] account topics of day.
Post by: gvalfer on November 16, 2009, 04:47:03 PM
is from 00.00 hours to 24.00 hours

:)
Title: Re: [HELP] account topics of day.
Post by: Arantor on November 16, 2009, 04:48:50 PM
According to whose timezone? Your time zone? The server's? The user browsing the forum at the time?
Title: Re: [HELP] account topics of day.
Post by: gvalfer on November 16, 2009, 04:59:47 PM
My  time zone please :)
Title: Re: [HELP] account topics of day.
Post by: Arantor on November 16, 2009, 05:00:47 PM
And enforce that for all users?

Can all users see this?
Title: Re: [HELP] account topics of day.
Post by: gvalfer on November 16, 2009, 05:15:24 PM
only block for guest

all user can see :)
Title: Re: [HELP] account topics of day.
Post by: Arantor on November 16, 2009, 05:20:34 PM
OK, and what about timezones?

Is it always using your timezone (and if so, what is your user id so I can write code to query it)?
Title: Re: [HELP] account topics of day.
Post by: gvalfer on November 16, 2009, 05:24:07 PM
my time zone is Lisbon (Portugal)
Title: Re: [HELP] account topics of day.
Post by: Arantor on November 16, 2009, 06:09:03 PM
And does that have daylight savings time rules?

Seriously, it would be easier if you could just answer the questions I ask, because it's a lot quicker for me to make it work that way. There's nowhere in the database you can look up the Lisbon timezone, but you can look it up quickly for your timezone settings if I know your user id, which is probably 1.
Title: Re: [HELP] account topics of day.
Post by: gvalfer on November 16, 2009, 06:20:56 PM
where can I see this?
Title: Re: [HELP] account topics of day.
Post by: Arantor on November 16, 2009, 06:23:15 PM
Where can you see what?
Title: Re: [HELP] account topics of day.
Post by: gvalfer on November 16, 2009, 06:28:13 PM
QuoteAnd does that have daylight savings time rules?

Seriously, it would be easier if you could just answer the questions I ask, because it's a lot quicker for me to make it work that way. There's nowhere in the database you can look up the Lisbon timezone, but you can look it up quickly for your timezone settings if I know your user id, which is probably 1.

uhm yes i have in my settings timezone: 5  8)
Title: Re: [HELP] account topics of day.
Post by: Arantor on November 16, 2009, 06:30:40 PM
Yes, but I have to know your user id to get that so I can make everyone's have the same!

Otherwise it would just use their timezone, which is what I asked you several posts ago.
Title: Re: [HELP] account topics of day.
Post by: gvalfer on November 16, 2009, 06:33:12 PM
QuoteYes, but I have to know your user id to get that so I can make everyone's have the same!

and how you know this?
Title: Re: [HELP] account topics of day.
Post by: Arantor on November 16, 2009, 06:38:28 PM
Because I have to do an SQL lookup using your user id to fetch your timezone, so that number can be used in all the other pages for all the other users?

I DON'T KNOW YOUR USER ID. This is why I'm asking so I can write you the code, but to be honest, the fact it's taken 2 pages to get a fairly small list of requirements, I don't know I have the energy to write this any more.
Title: Re: [HELP] account topics of day.
Post by: gvalfer on November 16, 2009, 06:45:21 PM
Do as you intend, you make the easy way. i'm sorry my bad english, i'm portuguese :(

cheers
Title: Re: [HELP] account topics of day.
Post by: Arantor on November 16, 2009, 06:51:56 PM
The easy way is to not care about timezones and just use the previous 24 hours, but as you indicated that isn't what you wanted.

All I want to know is your user number. I don't what name, password, email address or anything else, just your user id number, which as I said is probably 1. But without that I can't possibly attempt write it as you requested.

If you can provide that, I will see about taking a look at this once I finish this mod that I've been trying for 3 days to get finished.
Title: Re: [HELP] account topics of day.
Post by: gvalfer on November 16, 2009, 07:01:26 PM
I would like to give my user ID number, but first I wonder what it is, and where can I get? I apologize to my ignorance, is that I do not understand.
Title: Re: [HELP] account topics of day.
Post by: Arantor on November 17, 2009, 11:17:35 AM
On your forum, find any post from yourself. You'll see your name on the left.

If you hover over it, you'll see the link contains ?action=profile;u=xxxx - the xxxx is your user id.

Here for example your user id is 219242.
Title: Re: [HELP] account topics of day.
Post by: gvalfer on November 17, 2009, 12:51:51 PM
haaaaaaaaaaaaaaaaaaaaaaaaaaaaa sorry lol

Yes my ID is 1.

now realized thanks :)
Title: Re: [HELP] account topics of day.
Post by: gvalfer on November 18, 2009, 02:42:44 PM
help me please
Title: Re: [HELP] account topics of day.
Post by: Arantor on November 18, 2009, 06:30:43 PM
Please be patient; I have been very busy the last 24 hours and haven't had time to do this yet. I suspect I won't have time until tomorrow at the earliest to do this either.