![]() |
a. open vb2/global.php
find: PHP Code:
PHP Code:
find in last: PHP Code:
PHP Code:
|
Where can i see an Demo?
thx |
see the demo.jpg:
|
It works on my board, but I get this at the top of my page :
Warning: file("../addons/count.txt") - No such file or directory in /home/gaminghq/public_html/forums/global.php on line 69 Warning: file("../addons/ip.txt") - No such file or directory in /home/gaminghq/public_html/forums/global.php on line 70 Warning: fopen("../addons/ip.txt","w") - No such file or directory in /home/gaminghq/public_html/forums/global.php on line 101 Warning: Supplied argument is not a valid File-Handle resource in /home/gaminghq/public_html/forums/global.php on line 102 Warning: Supplied argument is not a valid File-Handle resource in /home/gaminghq/public_html/forums/global.php on line 103 Warning: Supplied argument is not a valid File-Handle resource in /home/gaminghq/public_html/forums/global.php on line 104 Warning: fopen("../addons/count.txt","w") - No such file or directory in /home/gaminghq/public_html/forums/global.php on line 108 Warning: Supplied argument is not a valid File-Handle resource in /home/gaminghq/public_html/forums/global.php on line 109 Warning: Supplied argument is not a valid File-Handle resource in /home/gaminghq/public_html/forums/global.php on line 110 Warning: Supplied argument is not a valid File-Handle resource in /home/gaminghq/public_html/forums/global.php on line 111 Not sure what to make of this :( |
see this?
PHP Code:
i set the path of count.txt and ip.txt to "../addons/", if you like, you can change it to anything else... or like this: chage those two lines to: PHP Code:
|
good werk;)
|
i made a live counter ages ago
its posted here somwhere i can repost it if people what it |
Id like to see it :)
|
Anyway to make this an option only the admin can see.
|
Good hack.
I'll try it on my vb page. ccxx |
BBQFan,
I made the changes, but am still getting the same errors. :( |
You have to create two files, called count.txt and ip.txt and chmod them to 777.
|
Hm, i think there is something wrong.
It always displays this: (it is installed since two days) vb test received page views: today = 1, total = 22. variant IP visitors: today = 1, total = 22. today = 1 ? What does this mean? I know that there were more than one person on my test board, it should display today = 2 or so. Suggestions on this? |
Quote:
|
same prob here too :(
Santa |
yah I am having the same problem.... but I am going to use another counter and just intergrate it tonight :)
or tweak this one to work... |
Quote:
would you plx tell me where your test boards are? maybe i can find out any mistakes in this mini hack...:( but it works ok for me... http://vbgatetest.51.net/vgate/vb |
i have found some servers set this::(
$ENV{REMOTE_ADDR} = 127.0.0.1 so every day the number of variant IP visitors is very ONE... we may try to change the counter code: PHP Code:
PHP Code:
|
still wont work.
I get today=1 total=1809 Santa |
Quote:
i think this hack code just simple or i should double check it... |
Nope, both.
I tested it on my local Server (Gateway) and on my dedicated Server for my website -> same effect. |
my GOD... i m very very sorry for my mistakes...
:( the right codes have been put in the first post of this thread... this time every thing would be ok... |
Yeahhh now it works :)
|
Quote:
|
no mate. make more of this hacks :D
|
sorry again!:(
another bug: these 2 variables $t and $day are collided with vB... so it will bring on some unpredictable results...:( the right codes have been put in the first post of this thread... i think so :) |
Great... it works just fine now.. but
Where else can we put the counter code so that it does not count everything... like when you click on a forum.. and read a post.. or go to another page that is including the global.php file.. it counts as a daily visit.. heh :) |
Hi there,
works perfect, thanks! -Tom |
Quote:
maybe you can put the display code like this: PHP Code:
but, you have to create some new count.txt and ip.txt.:( Quote:
|
Sorry to bring this up again, but it works perfect in 2.0.3 and I reeeaaally love it :D
cu, -Tom |
I just put the hack in my forums and also placed it throughout my website. Works great, thanks!
|
just tried this hack and it was doing fine for a few minutes and then reset itself again to zero?
|
I get exact the same error at different times.... now 879 hits and a few minutes later it starts over at 0
|
Its working fine for me, I just installed it. It may reset, but you never know. :p
|
Well, just installed it, too :D
nicely done mate. any chance of making this part of the database? -Alex |
I have installed bbqfan's hack and it works great!! I wanted to keep a running history
of my page views and unique IP's so I made the following hack and attached a picture of what it looks like. There may be a better way to do this...but this is as simple a hack as I could create! NOTE: I could only figure out how to get this to work for daily stats. Weekly/Monthly don't calculate correctly. If anyone knows what to add/change in the query to get Weekly/Monthly to show correctly, please post the changes here! Here's what you need to do: First create a table called 'ip_views' in your vbulletin database, and add the following fields: 'date' as INT(10), 'views' as INT(6), 'uip' as INT(6) Note: You can run the following query in phpMyAdmin to create the table: CREATE TABLE ip_views ( date int(10) NOT NULL, views int(6) NOT NULL, uip int(6) NOT NULL ) ================================================== ============ ** In bbqfan's hack in global.php Find: PHP Code:
PHP Code:
** Open admin/stats.php Find: PHP Code:
PHP Code:
Find: PHP Code:
PHP Code:
Find: PHP Code:
PHP Code:
This works on vBulletin 2.0.1...any other 2.x versions should work, but I can't verify. Hopefully someone will know how to make the weekly and monthly stats add up the views/ip's correctly for the week/month! AJ |
Strange...the picture didn't attach in the above post. Here it is:
|
This hack was working great for almost a full 24hrs and then it started resetting itself at random times back to zero (Both the visitor stats and the page view stats) So I removed it from my site.
|
Quote:
|
After afew hours I was at about 1500 page views, then I checked back the next morning and it was at like 250. Reset is occuring with me too.
|
All times are GMT. The time now is 02:46 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|