Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
HIT COUNTER! (Integrated With VB) Details »»
HIT COUNTER! (Integrated With VB)
Version: 4.1337, by Mr Chad Mr Chad is offline
Developer Last Online: Apr 2009 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.5.4 Rating:
Released: 04-13-2006 Last Update: 04-14-2006 Installs: 71
Template Edits
Additional Files  
No support by the author.

If you like it click


Installation Time: <2 mins
Template Edits: 1
Plugins: 1
VB Version: This actually works on 3.5.0 - 3.5.4
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

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:
- Using Total Page Views
or
- 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


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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 04-17-2006, 02:41 PM
wizardan wizardan is offline
 
Join Date: Jan 2006
Location: America
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed.
And seeing the stats properly displayed under the time.
However, I'm seeing the numerals again below the bottom copyright notice, at the very bottom.
Reply With Quote
  #33  
Old 04-17-2006, 09:11 PM
Mr Chad's Avatar
Mr Chad Mr Chad is offline
 
Join Date: Jul 2005
Posts: 911
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Traxdata
Hi, nice hack but how do I remove it?
Just reverse the installiation process...
  1. Delete the files you uploaded
  2. Uninstall the plugin
  3. Remove the variables you added to your template
Reply With Quote
  #34  
Old 04-17-2006, 09:12 PM
Mr Chad's Avatar
Mr Chad Mr Chad is offline
 
Join Date: Jul 2005
Posts: 911
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by wizardan
Installed.
And seeing the stats properly displayed under the time.
However, I'm seeing the numerals again below the bottom copyright notice, at the very bottom.
Let me check

Are you sure you didnt add the variables more than once?
Reply With Quote
  #35  
Old 04-17-2006, 11:33 PM
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Location: Greece
Posts: 1,856
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Stupid question: Since when will the count start?
Nice hack btw
Reply With Quote
  #36  
Old 04-18-2006, 02:06 AM
Mr Chad's Avatar
Mr Chad Mr Chad is offline
 
Join Date: Jul 2005
Posts: 911
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

right when you install the plugin

also you can edit the 'count.txt' to what you think your total hits are, but if you do this you need to put the same amount in the 'yesterday_count.txt'
Reply With Quote
  #37  
Old 04-18-2006, 02:08 AM
clearchannel clearchannel is offline
 
Join Date: Nov 2001
Location: Ft Lauderdale, Florida
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by chatbum
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
What do I edit in the daily.php to accomplish this?
Reply With Quote
  #38  
Old 04-18-2006, 02:24 AM
Mr Chad's Avatar
Mr Chad Mr Chad is offline
 
Join Date: Jul 2005
Posts: 911
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm lets see, I hacked the hell out of my hack :P

Quote:
require_once('****FULL PATH****/counter/counter.php');

$to = "email@yahoo.com";
$from = "person";
$subject = "Hits";
$message = " $pageviewstoday page views today!";
mail( $to, $subject, $message,"From: $from\r\nX-Priority: 1 (Highest)" ) or print "could not send mail";
Put that right after the <? (starting php line) of your file, and you will need to go through the files and add all the full paths instead of ./counter/

if you don't know your path then just upload this in the same directory

make a php file named 'path.php' and put this in it:
PHP Code:
<?php
if ($_SERVER['PATH_TRANSLATED'])
{
    
$path $_SERVER['PATH_TRANSLATED'];
}
else if (
$_SERVER['SCRIPT_FILENAME'])
{
    
$path $_SERVER['SCRIPT_FILENAME'];
}
else
{
    echo 
'We are sorry, but this script is unable to determine your forums path.';
    exit;
}
echo 
substr($path0, (strlen($path) - 8));
?>
run that and it will tell you it.
Reply With Quote
  #39  
Old 04-18-2006, 03:51 AM
Mr Chad's Avatar
Mr Chad Mr Chad is offline
 
Join Date: Jul 2005
Posts: 911
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ill make a better guide... or a better way looks like this isnt working well, just got mine to actually work.
Reply With Quote
  #40  
Old 04-18-2006, 01:20 PM
Traxdata Traxdata is offline
 
Join Date: Jul 2004
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by chatbum
Just reverse the installiation process...
  1. Delete the files you uploaded
  2. Uninstall the plugin
  3. Remove the variables you added to your template
Hi chatbum,

thanks for your reply, well that's how I remove all hacks from my forums... but where can I find this counter plugin? I searched and searched... and found nothing.

btw, it seems to be dangerous to delete counter files at first... have got error messages
Reply With Quote
  #41  
Old 04-18-2006, 08:59 PM
Mr Chad's Avatar
Mr Chad Mr Chad is offline
 
Join Date: Jul 2005
Posts: 911
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Traxdata
Hi chatbum,

thanks for your reply, well that's how I remove all hacks from my forums... but where can I find this counter plugin? I searched and searched... and found nothing.

btw, it seems to be dangerous to delete counter files at first... have got error messages
Well my bad...
  1. Uninstall the plugin
  2. Delete the files you uploaded
  3. Remove the variables you added to your template

first uninstall the plugin
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:48 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04817 seconds
  • Memory Usage 2,320KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete