vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Hit Counter Plus 2003 (https://vborg.vbsupport.ru/showthread.php?t=54276)

*UFA*3M 06-14-2003 03:48 PM

Is this gonna make my database really big?

wolfe 06-15-2003 03:57 AM

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


here's a screen :D

zajako 06-15-2003 08:03 AM

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 ;)

morrow 06-18-2003 01:03 PM

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?

wolfe 06-18-2003 01:04 PM

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

DPoole 06-18-2003 02:25 PM

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!

morrow 06-18-2003 04:59 PM

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.

morrow 06-20-2003 01:29 AM

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.

wolfe 06-20-2003 08:20 PM

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 :D

wolfe 06-21-2003 12:01 AM

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


All times are GMT. The time now is 07:56 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.01210 seconds
  • Memory Usage 1,748KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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