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)

NR Fatal 04-15-2006 01:13 AM

I tried uploading the plugin and then the page just reloaded. The plugin wont install. that's weird, know why?

Mr Chad 04-15-2006 02:05 AM

Quote:

Originally Posted by NR Fatal
I tried uploading the plugin and then the page just reloaded. The plugin wont install. that's weird, know why?

Then just create a plugin under:

Hook: global_start
Content: require_once('./counter/counter.php');

thats all :)

tonym 04-15-2006 04:17 AM

my counter counts by 2's not 1's :(

Mr Chad 04-15-2006 10:26 AM

Quote:

Originally Posted by tonym
my counter counts by 2's not 1's :(

You have a link?

There are a few reasons this could be happeneing:

- There is another person browsing your forum.
- One of your php files loads the global.php file twice...
- Or you changed the ++ to +2

daklay 04-15-2006 02:14 PM

hmmm.......

tonym 04-15-2006 02:18 PM

i didnt change anything.....where do i change +2 to +1?:banana:

Mr Chad 04-15-2006 02:47 PM

If you guys want i can give you my updated version, it adds the option to display todays page views and the total.

Mr Chad 04-15-2006 02:47 PM

Quote:

Originally Posted by tonym
i didnt change anything.....where do i change +2 to +1?:banana:

you dont need to do anything its working fine...

it uses $count++; which adds one.

tonym 04-15-2006 02:49 PM

Quote:

Originally Posted by chatbum
If you guys want i can give you my updated version, it adds the option to display todays page views and the total.

if you dont mind i would like that

Mr Chad 04-15-2006 03:01 PM

did it :)

you can now use:

$pageviews in any template to display the total like before
$pageviewstoday in any template to show todays page views

you will need to redownload it and replace the counter folder with the new one if you want to upgrade to the new one.


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.01242 seconds
  • Memory Usage 1,733KB
  • 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_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