PDA

View Full Version : Miscellaneous Hacks - HIT COUNTER! (Integrated With VB)


Mr Chad
04-13-2006, 10:00 PM
If you like it click
https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=112998)


Installation Time: <2 mins
Template Edits: 1
Plugins: 1
VB Version: This actually works on 3.5.0 - 3.5.4
Live Example (Look at my footer): http://beasttoast.com

Description:
This is a basic hit counter. It uses a little php script and a text file to store the hits (no DB because it would be too stressful). Also you dont have to display the hits on every page you could just put it on your forumhome template, and it will still count all the hits :cool:

Installation Instructions:
Download and unzip 'plugin-pageviews.zip'
Upload the folder 'Counter' into your forum directory
Now open the 'Counter' folder, and CH MOD 666 the 'count.txt' file
Install the plugin
*Optional* If you want to be able to display the page views for today just create a Scheduled Task like this:

Title: 'Page Views'
Hour: '23'
Min: '59'
File Name: './counter/counter_daily.php'

Place '$pageviews' and/or '$pageviewstoday' in any template where ever you want to display the hit count.
Screen Shot:
https://vborg.vbsupport.ru/ (http://beasttoast.com/thosting/files/1/pageviews.PNG) - Using Total Page Views
or
https://vborg.vbsupport.ru/ (http://beasttoast.com/thosting/files/1/dailyviews.PNG) - Using Total Page Views and Todays Page Views

FAQ:

Q: Where do I put the '$pageviews' thing?
A: Well... If you dont know how to do this then ill just give you a standard spot to put it.

Open up your footer template
Then Find:
<div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>
And replace that with:
<div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]<br>total page views: $pageviews, page views today: $pageviewstoday</div>


If you like it click
https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=112998)

This hack was based on ZIKI-SET (https://vborg.vbsupport.ru/member.php?u=117597)'s hack (https://vborg.vbsupport.ru/showthread.php?t=109523).

Ziki
04-14-2006, 01:41 PM
This is cooler than the old version of mine.:)

Mr Chad
04-14-2006, 01:47 PM
This is cooler than the old version of mine.:)
I'm glad you like it. I scrapted some of your code :). Was gettin sick of the idea of loading an image. Because it reminded me of one of those bootleg free hit counter sites.

finn snor
04-14-2006, 02:31 PM
Does this only work as a total views ?

Im looking for a way get a counter in my calendar that makes it possible for me to see how many that have seen the frontpage of calendar and total views of each event.

Can this handle that ?

Mr Chad
04-14-2006, 02:41 PM
nope. You would want to use https://vborg.vbsupport.ru/showthread.php?t=109523.

or

If you replace the contents of the plugin XML file with:
<?xml version="1.0" encoding="ISO-8859-1"?>

<plugins>
<plugin active="1" product="vbulletin">
<title>pageviews</title>
<hookname>calendar_start</hookname>
<phpcode><![CDATA[require_once('./counter/counter.php');]]></phpcode>
</plugin>
</plugins>


Then that would only display the pageviews of the calander side. (this is not an extensive hack... Just something quick.)

Ntfu2
04-14-2006, 07:21 PM
I followed instructions, placed it in my footer, and i've got nothing

Mr Chad
04-14-2006, 07:56 PM
hmm. let me recheck the files

Mr Chad
04-14-2006, 08:03 PM
I followed instructions, placed it in my footer, and i've got nothing
Installed it on my second board... Works fine, only reason it doesnt work for you could be that you have one or both of these installed:

-Template Cache System
-Plugin Accelerator

and you have not refreshed the Cache for the templates or/and refreshed the plugin system.

Ntfu2
04-14-2006, 10:53 PM
Installed it on my second board... Works fine, only reason it doesnt work for you could be that you have one or both of these installed:

-Template Cache System
-Plugin Accelerator

and you have not refreshed the Cache for the templates or/and refreshed the plugin system.


Let me check

Nope, if you'd like i can PM you with some login details to check stuff out, i'm stumped


Edit, I fixed by CHMOD the count.txt file to 666 after upload

Mr Chad
04-14-2006, 11:54 PM
Ok its good to see we got that resolved :)

NR Fatal
04-15-2006, 01:13 AM
I tried uploading the plugin and then the page just reloaded. The plugin wont install. that's weird, know why?

Mr Chad
04-15-2006, 02:05 AM
I tried uploading the plugin and then the page just reloaded. The plugin wont install. that's weird, know why?
Then just create a plugin under:

Hook: global_start
Content: require_once('./counter/counter.php');

thats all :)

tonym
04-15-2006, 04:17 AM
my counter counts by 2's not 1's :(

Mr Chad
04-15-2006, 10:26 AM
my counter counts by 2's not 1's :(
You have a link?

There are a few reasons this could be happeneing:

- There is another person browsing your forum.
- One of your php files loads the global.php file twice...
- Or you changed the ++ to +2

daklay
04-15-2006, 02:14 PM
hmmm.......

tonym
04-15-2006, 02:18 PM
i didnt change anything.....where do i change +2 to +1?:banana:

Mr Chad
04-15-2006, 02:47 PM
If you guys want i can give you my updated version, it adds the option to display todays page views and the total.

Mr Chad
04-15-2006, 02:47 PM
i didnt change anything.....where do i change +2 to +1?:banana:
you dont need to do anything its working fine...

it uses $count++; which adds one.

tonym
04-15-2006, 02:49 PM
If you guys want i can give you my updated version, it adds the option to display todays page views and the total.
if you dont mind i would like that

Mr Chad
04-15-2006, 03:01 PM
did it :)

you can now use:

$pageviews in any template to display the total like before
$pageviewstoday in any template to show todays page views

you will need to redownload it and replace the counter folder with the new one if you want to upgrade to the new one.

Snake
04-15-2006, 05:27 PM
Works just fine. Thanks!

clearchannel
04-15-2006, 05:49 PM
Would someone be so kind as to tell me where to place the following code:

Place '$pageviews' and/or '$pageviewstoday' in any template where ever you want to display the hit count.


I placed it at the very end of the footer, and it's only showing a number. In less then 5 minutes I've recorded a few hundered hits. I'd like it to look like the demo site.

Thanks in advance.

Mr Chad
04-15-2006, 06:20 PM
Would someone be so kind as to tell me where to place the following code:

Place '$pageviews' and/or '$pageviewstoday' in any template where ever you want to display the hit count.


I placed it at the very end of the footer, and it's only showing a number. In less then 5 minutes I've recorded a few hundered hits. I'd like it to look like the demo site.

Thanks in advance.


Open up your footer template
Then Find:
<div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>
And replace that with:
<div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]<br>total page views: $pageviews, page views today: $pageviews</div>


Main reason i didnt put the in the instructions is because i like to see different uses :)

Mr Chad
04-15-2006, 07:31 PM
ahh crap...

There was a problem with the counter_daily.php

So please redownload the zip and reupload the contents of the counter folder into your counter folder.

You only need to do this if you use $pageviewstoday . If you dont fix it $pageviewstoday and $pageviews will do the same thing.

tonym
04-15-2006, 11:38 PM
would it be too hard to make it not count the same ip more than 1 time in a 24 hour period?:banana: :banana: :banana:

Mr Chad
04-15-2006, 11:44 PM
would it be too hard to make it not count the same ip more than 1 time in a 24 hour period?:banana: :banana: :banana:
for me yes...

any way that would require useing the database and thats exactly what im trying not to do. I could try to use a cookie that expires every 24 hours. And it checks for that cookie if you dont have it, it would run the +1 to the hit and add the cookie.

clearchannel
04-15-2006, 11:57 PM
I've reinstalled the script and all appears to be working as designed. I will know for sure tommorow.

I love it that I can use conditionals, it makes a great difference.

Thank you

Mr Chad
04-16-2006, 12:05 AM
I've reinstalled the script and all appears to be working as designed. I will know for sure tommorow.

I love it that I can use conditionals, it makes a great difference.

Thank you
no problem, actually you can test it just by running the Scheduled Task after you have recieved a few hits. Oh and yea, I really wanted to make a text counter that was not an image, and didnt need a large script to run, or added a link to the counter site. So i made a very simple counter, with the help from ZIKI-SET's image counter.

Mr Chad
04-17-2006, 12:00 PM
wow I had fun with this...

With a simple edit in the daily.php file I set it up so it sends me an email every day with the hits that day. And in my yahoo email account I added a filter that makes it forward the email to my cell phone as a text message. Now when im away I still know what my site hits are :)

Traxdata
04-17-2006, 02:18 PM
Hi, nice hack but how do I remove it?

wizardan
04-17-2006, 02:41 PM
Installed.
And seeing the stats properly displayed under the time.
However, I'm seeing the numerals again below the bottom copyright notice, at the very bottom.

Mr Chad
04-17-2006, 09:11 PM
Hi, nice hack but how do I remove it?
Just reverse the installiation process...

Delete the files you uploaded
Uninstall the plugin
Remove the variables you added to your template

Mr Chad
04-17-2006, 09:12 PM
Installed.
And seeing the stats properly displayed under the time.
However, I'm seeing the numerals again below the bottom copyright notice, at the very bottom.
Let me check :)

Are you sure you didnt add the variables more than once?

Lea Verou
04-17-2006, 11:33 PM
Stupid question: Since when will the count start?
Nice hack btw :)

Mr Chad
04-18-2006, 02:06 AM
right when you install the plugin :)

also you can edit the 'count.txt' to what you think your total hits are, but if you do this you need to put the same amount in the 'yesterday_count.txt'

clearchannel
04-18-2006, 02:08 AM
wow I had fun with this...

With a simple edit in the daily.php file I set it up so it sends me an email every day with the hits that day. And in my yahoo email account I added a filter that makes it forward the email to my cell phone as a text message. Now when im away I still know what my site hits are :)

What do I edit in the daily.php to accomplish this?

Mr Chad
04-18-2006, 02:24 AM
hmm lets see, I hacked the hell out of my hack :P

require_once('****FULL PATH****/counter/counter.php');

$to = "email@yahoo.com";
$from = "person";
$subject = "Hits";
$message = " $pageviewstoday page views today!";
mail( $to, $subject, $message,"From: $from\r\nX-Priority: 1 (Highest)" ) or print "could not send mail";

Put that right after the <? (starting php line) of your file, and you will need to go through the files and add all the full paths instead of ./counter/

if you don't know your path then just upload this in the same directory

make a php file named 'path.php' and put this in it:

<?php
if ($_SERVER['PATH_TRANSLATED'])
{
$path = $_SERVER['PATH_TRANSLATED'];
}
else if ($_SERVER['SCRIPT_FILENAME'])
{
$path = $_SERVER['SCRIPT_FILENAME'];
}
else
{
echo 'We are sorry, but this script is unable to determine your forums path.';
exit;
}
echo substr($path, 0, (strlen($path) - 8));
?>


run that and it will tell you it.

Mr Chad
04-18-2006, 03:51 AM
ill make a better guide... or a better way looks like this isnt working well, just got mine to actually work.

Traxdata
04-18-2006, 01:20 PM
Just reverse the installiation process...

Delete the files you uploaded
Uninstall the plugin
Remove the variables you added to your template

Hi chatbum,

thanks for your reply, well that's how I remove all hacks from my forums... but where can I find this counter plugin? I searched and searched... and found nothing.

btw, it seems to be dangerous to delete counter files at first... have got error messages

Mr Chad
04-18-2006, 08:59 PM
Hi chatbum,

thanks for your reply, well that's how I remove all hacks from my forums... but where can I find this counter plugin? I searched and searched... and found nothing.

btw, it seems to be dangerous to delete counter files at first... have got error messages
Well my bad...


Uninstall the plugin
Delete the files you uploaded
Remove the variables you added to your template


first uninstall the plugin :)

Lea Verou
04-18-2006, 09:07 PM
right when you install the plugin :)

also you can edit the 'count.txt' to what you think your total hits are, but if you do this you need to put the same amount in the 'yesterday_count.txt'

Why do you do this with txt files? It would be better to store these values in the database ;)

Mr Chad
04-18-2006, 09:52 PM
Why do you do this with txt files? It would be better to store these values in the database ;)
because why would i want to add 1 query when i dont have to. (plus for me thats like 60,000 a day to my poor database)

Lea Verou
04-18-2006, 11:53 PM
Yes but it's safer...
Anyway you have a point there :)

Mr Chad
04-19-2006, 02:36 AM
Yes but it's safer...
Anyway you have a point there :)
well if you want to make it safe just rename the files on your own :)

Traxdata
04-19-2006, 10:48 AM
Well my bad...


Uninstall the plugin
Delete the files you uploaded
Remove the variables you added to your template


first uninstall the plugin :)
Well, but I still can't find this plugin in my ACP.

Mr Chad
04-19-2006, 01:36 PM
Well, but I still can't find this plugin in my ACP.
its called "pageviews"

phonexpo
04-20-2006, 08:56 AM
Hi chatbum,

I've installed as the guide says, but it's not showing up on my pave, I have vB Advanced installed too, would that prevent it?

TIA :)

Mr Chad
04-20-2006, 09:17 PM
no vbadvanced would not mess anything up.

make sure you installed the plugin, and set CHMOD 666 to the .txt files.

phonexpo
04-20-2006, 09:45 PM
no vbadvanced would not mess anything up.

make sure you installed the plugin, and set CHMOD 666 to the .txt files.
Yes, I've installed it properly still doesn't work.

Mr Chad
04-21-2006, 12:25 AM
If you installed it correctly, there is no reason it wouldnt be working. This is a very basic php script.

rareclownfish
04-21-2006, 01:37 AM
Is there away to make the words BOLD?

Mr Chad
04-21-2006, 03:38 AM
Is there away to make the words BOLD?
Yea sure, just find the variables you added and put them in the middle of <b> </b> tags :)

davidw
04-21-2006, 12:08 PM
In the instructions, you state:

2.
1. Open up your footer template
2. Then Find:
<div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>

3. And replace that with:
<div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]<br>total page views: $pageviews, page views today: $pageviews</div>

Shouldn't that read...
3. And replace that with:
<div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]<br>total page views: $pageviews, page views today: $pageviewstoday</div>?

Mr Chad
04-21-2006, 01:11 PM
In the instructions, you state:

2.
1. Open up your footer template
2. Then Find:
<div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>

3. And replace that with:
<div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]<br>total page views: $pageviews, page views today: $pageviews</div>

Shouldn't that read...
3. And replace that with:
<div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]<br>total page views: $pageviews, page views today: $pageviewstoday</div>?
your right :P, thanks

Dermo-MIO
04-23-2006, 02:29 PM
sorry to ask this simple question but what does " CH MOD 666 the 'count.txt' file" mean ?

topsoftware
04-23-2006, 05:08 PM
i instal but counter show today and totla same i think for me not good werken
46381

Mr Chad
04-23-2006, 05:13 PM
i instal but counter show today and totla same i think for me not good werken
46381
No its working :) Your Counter started today which is why it would be the same as the total.

Mr Chad
04-23-2006, 05:13 PM
sorry to ask this simple question but what does " CH MOD 666 the 'count.txt' file" mean ?
It changes the files permissions

topsoftware
04-23-2006, 05:21 PM
No its working :) Your Counter started today which is why it would be the same as the total.
i dont but i step to step every tag check but page today and page tootal same

davidw
04-23-2006, 05:41 PM
Don't forget to set up Part 5 of the Installation Instructions for showing today's totals correctly.

Dermo-MIO
04-23-2006, 07:00 PM
It changes the files permissions

ah i got it to work now i didnt know what that was but remembered now thanks for this

rareclownfish
04-23-2006, 10:53 PM
Does the pages viewed today resets, because I'm getting the same number on both of them. When do they change?

Mr Chad
04-23-2006, 11:42 PM
They change when the Scheduled Task runs. It sets hits_yesterday.txt file to the current hits. So its totalhits - yesterdayshits = today

clearchannel
04-24-2006, 11:57 PM
ill make a better guide... or a better way looks like this isnt working well, just got mine to actually work.

Is there a good way to either email daily counts or save them in a text file so I can keep track of daily stats?

Thanks in advance

Mr Chad
04-25-2006, 11:39 AM
well i actually have aready done this, I might release the mod later im still unsure.


http://beasttoast.com/thosting/files/1/sitehits_thumb.png
(http://beasttoast.com/thosting/files/1/sitehits.PNG)

rareclownfish
05-04-2006, 10:59 PM
They change when the Scheduled Task runs. It sets hits_yesterday.txt file to the current hits. So its totalhits - yesterdayshits = today

I don't think it working for me check it out.
http://www.rareclownfish.com/forums/index.php

Mr Chad
05-05-2006, 11:06 PM
I don't think it working for me check it out.
http://www.rareclownfish.com/forums/index.php
when did u install it?

If its been only 1 day then its working fine.

rareclownfish
05-05-2006, 11:12 PM
It's been about a week now

Mr Chad
05-06-2006, 04:16 PM
Did you set up the cron?

also did you add two $pageviews in your template instead of:

one $pageviews and one $pageviewstoday

rareclownfish
05-07-2006, 12:48 PM
this is the code i have in the template

<div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]<br><b>The total pages viewed: $pageviews, pages viewed today: $pageviewstoday</div></b>

rareclownfish
05-07-2006, 12:57 PM
What attributes should the files be?

Mr Chad
05-07-2006, 09:48 PM
chmod 666 on both text files :) thats the problem

rareclownfish
05-08-2006, 03:07 AM
Thanks works like a charm

Smiry Kin's
05-08-2006, 07:58 PM
how did u get Alexa Rank?

Mr Chad
05-08-2006, 09:00 PM
Another script i made, If you want i can release it... Its choppy tho. (works great for me tho)

I could make it an easy install just reply to this post and ill see what i can do.

Smiry Kin's
05-08-2006, 10:28 PM
Another script i made, If you want i can release it... Its choppy tho. (works great for me tho)

I could make it an easy install just reply to this post and ill see what i can do.
yes yes!! :D

Mr Chad
05-09-2006, 12:44 AM
did a quick release just for you.

https://vborg.vbsupport.ru/showthread.php?t=115116

Smiry Kin's
05-09-2006, 12:59 AM
did a quick release just for you.

https://vborg.vbsupport.ru/showthread.php?t=115116
thanks dude ill install it soon :P

john1744
05-10-2006, 12:02 AM
Any way to make this admin only?

Boofo
05-10-2006, 12:09 AM
You could use the datastore and this wouldn't be stressful on the server. ;)

htdesignz
05-10-2006, 01:32 AM
Good !!! Thanks for share

Rahuldhanpat
05-11-2006, 05:51 PM
how did u get Alexa Rank?


https://vborg.vbsupport.ru/showthread.php?t=115065&highlight=hit+counter

Rahuldhanpat
05-11-2006, 05:57 PM
can u tell me please How can we chmod 666 a text file.....please explain a little

Mr Chad
05-12-2006, 12:02 AM
You need FTP access to your host... Right click on the file and you should get the option.

A_N_K_A_R_A
05-18-2006, 04:36 PM
nice thanks

Mr Chad
05-19-2006, 02:10 AM
nice thanks
Is this version working?

A_N_K_A_R_A
05-21-2006, 05:14 AM
vb 3.5.4 version

Mr Chad
05-21-2006, 06:12 PM
vb 3.5.4 version
Great :)

Stop
05-22-2006, 10:09 AM
It works fine but I just need to display the page views for today. Can you please explain more in step #5 ? I seem not to get what you mean.

Mr Chad
05-22-2006, 01:36 PM
You need to creats a schuduled task and run it...

and in your templates just put '$pageviewstoday' in.

Stop
05-22-2006, 02:42 PM
that was my question, how to creat a schuduled task ?
thanks.

Mr Chad
05-23-2006, 12:47 AM
lol...

Log into your admincp and you should see a 'Schuduled tasks' section. Expand it then click add new schuduled task...

Stop
05-23-2006, 07:22 AM
I did create the task, run it and add $pageviewstoday' in the template but still shows the same count.
Have a look please.

Mr Chad
05-23-2006, 09:11 AM
run it again.

Stop
05-23-2006, 02:25 PM
Just did more than once. I really cant discover out what's the problem.

Mr Chad
05-23-2006, 06:37 PM
make sure your file is set CH MOD 777 for your counter text files.

Stop
05-23-2006, 09:00 PM
Thanks a lot sir for your time. It works fine now.

Mr Chad
05-23-2006, 11:13 PM
Glad to see that you got it working :)

BeaLzeBuB
05-24-2006, 08:35 PM
nice!

clicks install

Mr Chad
05-25-2006, 12:05 AM
thanks

*Too bad you forgot to really click install :P*

wezoo
05-29-2006, 08:10 PM
Hi there

must be something im doing wrong here but my counter is going up in multiples of 2

any ideas, thanks

Mr Chad
05-30-2006, 12:47 AM
well there must be a something that is calling your global.php twice.

lucky123
06-12-2006, 01:58 AM
here's my error

Warning: Unknown(./counter/counter.php): failed to open stream: No such file or directory in /global.php(349) : eval()'d code on line 146

Fatal error: (null)(): Failed opening required './counter/counter.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/lucky123/public_html/global.php(349) : eval()'d code on line 146

did I miss a step?

I uploaded 3 files to public html then added the plugin
then changed the footer

Andromeda2875
06-12-2006, 03:46 AM
I have installed this three times and I am still not able to see anything.

lucky123
06-12-2006, 12:09 PM
I'm afraid to try again!!

the other 2 plugins worked just fine (countdown, tic tac toe)

Mr Chad
06-12-2006, 08:51 PM
put the file in a folder named counter.

(I will be upgrading this hack to 3.6, when i do ill also let you track your totoal unique page views)

TomasDR
06-15-2006, 04:57 AM
I am having a very odd problem.

I setup the corn job to run per your instructions.
Title="Page Views"
Day of the Week=*
Day of the Month=*
Hour=23
Minute=59,-,-,-
Log Entries=Yes
Filename=./counter/counter_daily.php

Note I never see it in the log BUT the next time is always updated in the Scheduled Task Manager view.

So what's the problem, it doesn't update (copy to yesterday_count.txt and reset count.txt to ZERO) with the normal cron job, BUT if I click "Run Now" in the Scheduled Task Manager view it runs just fine and updates the files.

Also note ALL of my other cron jobs work just fine...

Any thoughts?

Mr Chad
06-15-2006, 09:07 PM
take a screen shot of your schudled task list (showing the hit counter one)

TomasDR
06-29-2006, 01:51 AM
I was out of town, attached is my main manager screen & the Page View job.

noj75
07-01-2006, 06:16 PM
Simple and Great.

/me Clicks Install

Thank you.

oberheimhaven
07-02-2006, 12:03 AM
great hack Installed on3.5.4 Zero Issues

Thxs Mate!
Ober

kozumasbullitt
07-03-2006, 04:23 AM
my counter counts for every page seen.

Parker Clack
07-10-2006, 01:46 AM
I love this hack. Do you think you could write it so it gives you the totals today, this week, this month and then the total number?

Thanks,
Parker

Mr Chad
07-16-2006, 03:50 AM
my counter counts for every page seen.
Thats the point. It counts how many pages that have been viewed.

Mr Chad
07-16-2006, 03:51 AM
I love this hack. Do you think you could write it so it gives you the totals today, this week, this month and then the total number?

Thanks,
Parker
I dont see myself adding to this hack becuause i have no time. Summer school and alot of other things.

Polo
07-27-2006, 08:49 PM
thanks. Cool hack.

burntire
08-06-2006, 10:47 PM
Works good on 3.6.0.

Mr Chad
01-07-2007, 04:42 AM
ok then...

thetopday21122
03-11-2007, 03:02 PM
I like the idea but how would I get it in my Statistics box?