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! (Integrated With VB) (https://vborg.vbsupport.ru/showthread.php?t=118426)

perju 03-14-2007 06:15 PM

My counter is counting by 2's. Why is this?

Tom_S 03-14-2007 08:53 PM

I dunno. I just installed it to see if it did. It does. 2x2

Tom_S 03-14-2007 09:01 PM

Open counter/counter_daily.php and replace it all with this:

Quote:

<?
$file="./counter/count.txt";
if ($c=fopen($file, "r+")) {
$count=fgetss($c, 255);
fclose ($c);
}
$file2="./counter/yesterday_count.txt";
if ($c2=fopen($file2, "r+")) {
fputs($c1, $count);
fclose ($c1);
}
?>
This counter is as you said just a basic hit counter. It will count on every page reload. Nice mod for some but I can't use it. Too many people like reloading pages to watch numbers grow.

thetopday21122 03-14-2007 10:43 PM

Quote:

Originally Posted by LisaD1 (Post 1203360)
Edit the forumhome template.
Works good. I think I have the same count by 2 issue, but for now I will leave it and just divide it if I want to know the true count LOL

Thanks.

New Question: Does this count the hits for every day?

Also, what does he mean by: Now open the 'Counter' folder, and CH MOD 666 the 'count.txt' file?

Tom_S 03-14-2007 11:38 PM

You really need to read this thread. It isn't that long. As for uploading the file folder you need to use FTP. As for CHMOD to 666 you need to google "CHMOD" if you have no idea what you are doing.

thetopday21122 03-15-2007 12:06 AM

Thanks.


All times are GMT. The time now is 12:53 PM.

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.01717 seconds
  • Memory Usage 1,727KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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