Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Hit Counter Plus 2003 Details »»
Hit Counter Plus 2003
Version: 1.00, by wolfe wolfe is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 06-12-2003 Last Update: Never Installs: 20
Supported
 

// #######################################

What It Does:

This Hack allows you to add a hit counter to your footer template and it will be on all pages where it will record a recorded hit counter for everyone and when you click on the hit counter it will display a list of the hits:

GLOBAL.PHP FIX: Here
  • Viewing Hit Statistics

    For Admins Only:

    The id of the hit.
    The hit User Id.
    The hit username.
    The date of the hit.
    The time of the hit.
    Pm the hit maker.
    The Script the hit was made.
    The Action being used while it was made.
    The Ipaddress of the hit maker.
    The Resolved Ipaddress of the hit maker

    For Everony Else:

    The id of the hit.
    The hit User Id.
    The hit username.
    The date of the hit.
    The time of the hit.
    Pm the hit maker

    Viewing Hit Statistics Extra

    For Admins Only:

    Sort By The Script the hit was made.
    Sort By The Action being used while it was made.
    Sort By The Ipaddress of the hit maker.
    Sort By The Resolved Ipaddress of the hit maker

    Plus all of below

    For Everony Else:

    Sort By The id of the hit.
    Sort By The hit User Id.
    Sort By The hit username.
    Sort By The date of the hit.
    Sort By The time of the hit.
    Pm the hit maker

    page nav and stats

    I have included the page nav and it will show 15 stats perpage and it will show you what page you are currently on, how many pages total and the total ammount of hits in a little stats box.

hope you all like it

// #######################################

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 06-14-2003, 03:48 PM
*UFA*3M *UFA*3M is offline
 
Join Date: Aug 2002
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this gonna make my database really big?
Reply With Quote
  #23  
Old 06-15-2003, 03:57 AM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nearly finished the vB 3.0.0 update so it will be releasd very soon just fixing the pagenav


here's a screen
Reply With Quote
  #24  
Old 06-15-2003, 08:03 AM
zajako's Avatar
zajako zajako is offline
 
Join Date: Jan 2002
Location: a place not to far away
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i made something like this but it was admin only i called it vBTracker, never released it htough.

It basicaly tied into your whos online info and recorded everything the user did as they did iot and admisn could pull up a log on what that person did.

was going to add a thing that detected how often someoen 404ed, and then pm the admin if they did it often, to prevent hackers.

but the biggest problem is this is a DB hog, it uses a lot of space in the db though it adds only 1 query a page
Reply With Quote
  #25  
Old 06-18-2003, 01:03 PM
morrow's Avatar
morrow morrow is offline
 
Join Date: Mar 2002
Location: NJ
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack, but like, '*UFA*3M ' mentioned... This appears to add to the database with each reload. Is there a way to cap this at say 200 - 300 then just add to the top?
Reply With Quote
  #26  
Old 06-18-2003, 01:04 PM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what do you mean d00d ? by add to the top

because i might make it so if its the same ipaddress then just update but that won't really be a hit counter
Reply With Quote
  #27  
Old 06-18-2003, 02:25 PM
DPoole DPoole is offline
 
Join Date: Oct 2001
Location: UK
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i dont really get this or why anyone would want to know how many times showthread.php o rany other page had been hit etc
Even worse is that it will do it for each members so really in my view is collecting a lot of useless info as what can you do with it ???

If you have web space then surely u get stats with that.
Not calling the hack in any way but what is its usefulness!
Reply With Quote
  #28  
Old 06-18-2003, 04:59 PM
morrow's Avatar
morrow morrow is offline
 
Join Date: Mar 2002
Location: NJ
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 10:04 AM wolfe said this in Post #25
what do you mean d00d ? by add to the top

because i might make it so if its the same ipaddress then just update but that won't really be a hit counter
Lemme rephrase... Say I enter my site and the hit counter hits 200... Then maybe the oldest hits can be dropped off and new hits can be added to the top. It's a really nice hack but, Since I've installed it, I've got over 700 hits. I'll assume my database is going to keep growing.
Reply With Quote
  #29  
Old 06-20-2003, 01:29 AM
morrow's Avatar
morrow morrow is offline
 
Join Date: Mar 2002
Location: NJ
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

More bad news. After installing this hack, people started to complain about their PM's no longer working. Once I removed the lines out of my Global.php file, the PM's started working again.
Reply With Quote
  #30  
Old 06-20-2003, 08:20 PM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

heres the fix for that

in global.php remove all the old code you added from this hack and do the following

Find:

PHP Code:
// parse css, header & footer ################## 
and below it add:

PHP Code:
  $viewcounter=$DB_site->query_first('SELECT COUNT(*) AS hits FROM counterplus');
  
$totalhits=number_format($viewcounter['hits']);

eval(
"\$hitbit .= \"".gettemplate('hitcounterplus_counter')."\";"); 
then find:

PHP Code:
checkipban(); 
and above add

PHP Code:
 if ($script='') {
    
$script=basename($PHP_SELF);
  }
  
if (
$bbuserinfo['userid']!=0) {
      
$DB_site->query("INSERT INTO counterplus (viewid,userid,username,dateline,script,action,ipaddress) VALUES (NULL,'$bbuserinfo[userid]','$bbuserinfo[username]',".time().",'".addslashes($script)."','$action','$REMOTE_ADDR')");  


that should sort it out
Reply With Quote
  #31  
Old 06-21-2003, 12:01 AM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
06-18-03 at 06:59 PM morrow said this in Post #27
Lemme rephrase... Say I enter my site and the hit counter hits 200... Then maybe the oldest hits can be dropped off and new hits can be added to the top. It's a really nice hack but, Since I've installed it, I've got over 700 hits. I'll assume my database is going to keep growing.

right d00d try the fix and i will work on the cap like you requested
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:09 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06729 seconds
  • Memory Usage 2,318KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete