The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Hi,
I am hoping I could add a little tidbit of info on my Forum Home display that, similar to "Total Posts: xx" and "Total Threads: xx" says something to the effect of "Total Posts Today: xx" In an ideal world, it would only count posts on that particular day, thus resetting to zero at the midnight hour. It seems like something that should be pretty easy... (but also makes me wonder, from an efficiency standpoint, if it's a good idea to be counting and re-counting all of the posts that day each time somebody loads the page...) Also, I did do a search for this and only came up with a thread from almost a year ago where somebody asked a similar question but got no response. So if anybody has a simple solution, thanks in advance! As you can see I am a PHP/MySQL newbie... learning a bit here and there... thanks! |
#2
|
||||
|
||||
Add this code:
PHP Code:
PHP Code:
|
#3
|
|||
|
|||
Thanks FireFly, works great!
|
#4
|
|||
|
|||
I actually changed it a little bit. After some poking around on php.net I came up with this line:
PHP Code:
Now that I've actually modified a line of PHP code all by myself, I feel quite special Thanks again! |
#5
|
||||
|
||||
No problem mate.
|
#6
|
||||
|
||||
Quote:
|
#7
|
||||
|
||||
Yeah I know what you mean.
Unless the next version is a major one (2.1.0), I don't think I'm gonna upgrade. I have so many hacks installed, it's really tough! But I'm glad you like this. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|