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)

Mr Chad 06-12-2006 10:00 PM

HIT COUNTER! (Integrated With VB)
 
If you like it click
https://vborg.vbsupport.ru/


Installation Time: <2 mins
Template Edits: 1
Plugins: 1
VB Version: 3.6.0
Live Example (Look at my footer): http://beasttoast.com

Description:
This is a basic hit counter. It uses a little php script and a text file to store the hits (no DB because it would be too stressful). Also you dont have to display the hits on every page you could just put it on your forumhome template, and it will still count all the hits :cool:

Installation Instructions:
  1. Download and unzip 'plugin-pageviews.zip'
  2. Upload the folder 'Counter' into your forum directory
  3. Now open the 'Counter' folder, and CH MOD 666 the 'count.txt' file
  4. Install the plugin
  5. *Optional* If you want to be able to display the page views for today just create a Scheduled Task like this:

    Title: 'Page Views'
    Hour: '23'
    Min: '59'
    File Name: './counter/counter_daily.php'
  6. Place '$pageviews' and/or '$pageviewstoday' in any template where ever you want to display the hit count.
Screen Shot:
http://beasttoast.com/thosting/files...iews_thumb.png - Using Total Page Views
or
http://beasttoast.com/thosting/files...iews_thumb.png - Using Total Page Views and Todays Page Views

FAQ:
  1. Q: Where do I put the '$pageviews' thing?
  2. A: Well... If you dont know how to do this then ill just give you a standard spot to put it.
    1. Open up your footer template
    2. Then Find:
      Code:

      <div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>
    3. And replace that with:
      Code:

      <div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]<br>total page views: $pageviews, page views today: $pageviewstoday</div>
If you like it click
https://vborg.vbsupport.ru/

This hack was based on ZIKI-SET's hack.

Ntfu2 06-13-2006 01:22 AM

wouldnt your previous version work the same? Or was stuff changed.

Just wondering for when i upgrade to 3.6 i wanna know if it'll be a neccasity for the 3.6 version :)

Mr Chad 06-13-2006 02:46 AM

The plugin was changed.

everything else will work the same.

so if you upgrade your VB version you shouldnt need to install this one if you have the previous one aready installed.

Snake 06-14-2006 04:55 PM

Thank you!

Mr Chad 06-15-2006 04:23 AM

no problem, if there are any issues feel free to post em.

Mr.D 07-06-2006 04:14 AM

screenshots dont work???

Derekclarke 07-08-2006 08:43 PM

Does not work on VB 3.6 Beta 4.

Warning: Unknown(./counter/counter.php): failed to open stream: Permission denied in /global.php(353) : eval()'d code on line 5

Fatal error: (null)(): Failed opening required './counter/counter.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/********/public_html/global.php(353) : eval()'d code on line 5

RaceJunkie 08-10-2006 12:54 PM

Quote:

Live Example (Look at my footer): http://beasttoast.com

Don't see it:confused:

Mr Chad 08-10-2006 02:39 PM

Quote:

Originally Posted by Derekclarke
Does not work on VB 3.6 Beta 4.

Warning: Unknown(./counter/counter.php): failed to open stream: Permission denied in /global.php(353) : eval()'d code on line 5

Fatal error: (null)(): Failed opening required './counter/counter.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/********/public_html/global.php(353) : eval()'d code on line 5

CHMOD the counter folder, I no longer support any of my hacks right now. Swiched servers and had to re-do my whole site thats why you dont see the demo or the images anymore.

biggyme13 08-11-2006 12:19 AM

How come it counts in 2's? I see 12,020 page views, and then I refresh, and I see 12,022, refresh again 12,024, and so on. I'm the only one on..


All times are GMT. The time now is 07:08 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.01919 seconds
  • Memory Usage 1,740KB
  • 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_code_printable
  • (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
  • (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