vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Hit Counter (https://vborg.vbsupport.ru/showthread.php?t=128678)

eXtremeTim 10-08-2006 10:00 PM

Hit Counter
 
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/fo...read.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

Quote:

$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

PHP Code:

            <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

PHP Code:

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

AND

PHP Code:

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

replace

PHP Code:

$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?


All times are GMT. The time now is 06:28 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
  • Page Generation 0.01155 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete