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=112998)

Snake 04-15-2006 05:27 PM

Works just fine. Thanks!

clearchannel 04-15-2006 05:49 PM

Would someone be so kind as to tell me where to place the following code:

Code:

Place '$pageviews' and/or '$pageviewstoday' in any template where ever you want to display the hit count.
I placed it at the very end of the footer, and it's only showing a number. In less then 5 minutes I've recorded a few hundered hits. I'd like it to look like the demo site.

Thanks in advance.

Mr Chad 04-15-2006 06:20 PM

Quote:

Originally Posted by clearchannel
Would someone be so kind as to tell me where to place the following code:

Code:

Place '$pageviews' and/or '$pageviewstoday' in any template where ever you want to display the hit count.
I placed it at the very end of the footer, and it's only showing a number. In less then 5 minutes I've recorded a few hundered hits. I'd like it to look like the demo site.

Thanks in advance.

  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: $pageviews</div>

Main reason i didnt put the in the instructions is because i like to see different uses :)

Mr Chad 04-15-2006 07:31 PM

ahh crap...

There was a problem with the counter_daily.php

So please redownload the zip and reupload the contents of the counter folder into your counter folder.

You only need to do this if you use $pageviewstoday . If you dont fix it $pageviewstoday and $pageviews will do the same thing.

tonym 04-15-2006 11:38 PM

would it be too hard to make it not count the same ip more than 1 time in a 24 hour period?:banana: :banana: :banana:

Mr Chad 04-15-2006 11:44 PM

Quote:

Originally Posted by tonym
would it be too hard to make it not count the same ip more than 1 time in a 24 hour period?:banana: :banana: :banana:

for me yes...

any way that would require useing the database and thats exactly what im trying not to do. I could try to use a cookie that expires every 24 hours. And it checks for that cookie if you dont have it, it would run the +1 to the hit and add the cookie.

clearchannel 04-15-2006 11:57 PM

I've reinstalled the script and all appears to be working as designed. I will know for sure tommorow.

I love it that I can use conditionals, it makes a great difference.

Thank you

Mr Chad 04-16-2006 12:05 AM

Quote:

Originally Posted by clearchannel
I've reinstalled the script and all appears to be working as designed. I will know for sure tommorow.

I love it that I can use conditionals, it makes a great difference.

Thank you

no problem, actually you can test it just by running the Scheduled Task after you have recieved a few hits. Oh and yea, I really wanted to make a text counter that was not an image, and didnt need a large script to run, or added a link to the counter site. So i made a very simple counter, with the help from ZIKI-SET's image counter.

Mr Chad 04-17-2006 12:00 PM

wow I had fun with this...

With a simple edit in the daily.php file I set it up so it sends me an email every day with the hits that day. And in my yahoo email account I added a filter that makes it forward the email to my cell phone as a text message. Now when im away I still know what my site hits are :)

Traxdata 04-17-2006 02:18 PM

Hi, nice hack but how do I remove it?


All times are GMT. The time now is 02:12 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.01122 seconds
  • Memory Usage 1,739KB
  • 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_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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