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)

wizardan 04-17-2006 02:41 PM

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.

Mr Chad 04-17-2006 09:11 PM

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

Mr Chad 04-17-2006 09:12 PM

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?

Lea Verou 04-17-2006 11:33 PM

Stupid question: Since when will the count start?
Nice hack btw :)

Mr Chad 04-18-2006 02:06 AM

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'

clearchannel 04-18-2006 02:08 AM

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?

Mr Chad 04-18-2006 02:24 AM

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.

Mr Chad 04-18-2006 03:51 AM

ill make a better guide... or a better way looks like this isnt working well, just got mine to actually work.

Traxdata 04-18-2006 01:20 PM

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

Mr Chad 04-18-2006 08:59 PM

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 :)


All times are GMT. The time now is 06:35 AM.

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.01288 seconds
  • Memory Usage 1,744KB
  • 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
  • (1)bbcode_php_printable
  • (6)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