PDA

View Full Version : Miscellaneous Hacks - Hit Counter


eXtremeTim
10-08-2006, 10:00 PM
Right now this is just a basic page hit counter that collects some information about the users such as browser and ip. It also has an addon in it to work with my multiple sections hack if you own that to track page views per section. I will be working on expanding this hack to much more then just a simple hit counter in the end.

Demo: http://www.extremewebtech.com/forums/

This will work on 3.5 if you remove the executionorder="5" from the product file.

Enjoy this hack you guys.

And as always if you enjoy this free hack and would like to see them keep coming please donate.

Donations can be sent via paypal to: tim@extremechatforums.com
I no longer have the time to support his hack here. If you need help with this hack please go here: http://vbhacks.extremewebtech.com/forums/showthread.php?t=174

I will try to maintain the release here but no promises. You will always be able to get the latest version of this hack there.

Gizmo5h1t3
10-09-2006, 08:56 PM
$vbphrase[threads]: $totalthreads,


cant find that in forumhome on 3.5 m8.

eXtremeTim
10-09-2006, 08:58 PM
Its in the whats going on box. It show the number of threads.

Snake
10-09-2006, 09:06 PM
Wow thanks!

Atakan KOC
10-09-2006, 09:22 PM
<installcode><![CDATA[$db->hide_errors();
$db->query_write("CREATE TABLE `ewt_statistics` (
`rid` INT( 10 ) NOT NULL AUTO_INCREMENT ,
`uid` INT( 10 ) DEFAULT '0' NOT NULL ,
`sectionid` INT( 10 ) DEFAULT '0' NOT NULL ,
`thisscript` VARCHAR( 50 ) NOT NULL ,
`ipaddy` VARCHAR( 100 ) NOT NULL ,
`useragent` VARCHAR( 200 ) NOT NULL ,
PRIMARY KEY ( `rid` )
);");
$db->show_errors();]]></installcode>
<uninstallcode />

Why empty?
<uninstallcode />

Replace


$db->hide_errors();
$vbulletin->db->query_write("
DROP TABLE `". TABLE_PREFIX ."ewt_statistics`
");
$db->show_errors();


AND

$db->query_write("CREATE TABLE `ewt_statistics` (

replace

$db->query_write("CREATE TABLE `". TABLE_PREFIX ."ewt_statistics` (

eXtremeTim
10-09-2006, 09:30 PM
no i dont use the prefix on my custom hacks since i prefix them all with ewt.

eXtremeTim
10-09-2006, 09:31 PM
and yes i did forget the uninstall code sorry about that

asj
10-10-2006, 01:16 AM
thanks

Shazz
10-10-2006, 02:25 AM
Where is this displayed at on your fourms?

bashy
10-10-2006, 05:18 AM
Forum stsistics, Its the 1st 1, well i am assuming it is lol, Page Views?

Gizmo5h1t3
10-10-2006, 07:40 AM
Its in the whats going on box. It show the number of threads.


thatl be because its been changed due to the welcome box hack......never mind.

mustang26
12-07-2006, 10:33 PM
Worked as advertised. Thanks Tim! :up:

ravencr
03-04-2007, 02:32 PM
Does it count unique visitors or all visitors? I don't see it on your sample page?

Chris