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)

Lea Verou 04-18-2006 09:07 PM

Quote:

Originally Posted by chatbum
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'

Why do you do this with txt files? It would be better to store these values in the database ;)

Mr Chad 04-18-2006 09:52 PM

Quote:

Originally Posted by Michelle
Why do you do this with txt files? It would be better to store these values in the database ;)

because why would i want to add 1 query when i dont have to. (plus for me thats like 60,000 a day to my poor database)

Lea Verou 04-18-2006 11:53 PM

Yes but it's safer...
Anyway you have a point there :)

Mr Chad 04-19-2006 02:36 AM

Quote:

Originally Posted by Michelle
Yes but it's safer...
Anyway you have a point there :)

well if you want to make it safe just rename the files on your own :)

Traxdata 04-19-2006 10:48 AM

Quote:

Originally Posted by chatbum
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 :)

Well, but I still can't find this plugin in my ACP.

Mr Chad 04-19-2006 01:36 PM

Quote:

Originally Posted by Traxdata
Well, but I still can't find this plugin in my ACP.

its called "pageviews"

phonexpo 04-20-2006 08:56 AM

Hi chatbum,

I've installed as the guide says, but it's not showing up on my pave, I have vB Advanced installed too, would that prevent it?

TIA :)

Mr Chad 04-20-2006 09:17 PM

no vbadvanced would not mess anything up.

make sure you installed the plugin, and set CHMOD 666 to the .txt files.

phonexpo 04-20-2006 09:45 PM

Quote:

Originally Posted by chatbum
no vbadvanced would not mess anything up.

make sure you installed the plugin, and set CHMOD 666 to the .txt files.

Yes, I've installed it properly still doesn't work.

Mr Chad 04-21-2006 12:25 AM

If you installed it correctly, there is no reason it wouldnt be working. This is a very basic php script.

rareclownfish 04-21-2006 01:37 AM

Is there away to make the words BOLD?

Mr Chad 04-21-2006 03:38 AM

Quote:

Originally Posted by rareclownfish
Is there away to make the words BOLD?

Yea sure, just find the variables you added and put them in the middle of
HTML Code:

<b> </b>
tags :)

davidw 04-21-2006 12:08 PM

In the instructions, you state:

2.
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>
Shouldn't that read...
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>
?

Mr Chad 04-21-2006 01:11 PM

Quote:

Originally Posted by christianb
In the instructions, you state:

2.
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>
Shouldn't that read...
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>
?

your right :P, thanks

Dermo-MIO 04-23-2006 02:29 PM

sorry to ask this simple question but what does " CH MOD 666 the 'count.txt' file" mean ?

topsoftware 04-23-2006 05:08 PM

i instal but counter show today and totla same i think for me not good werken
Attachment 46381

Mr Chad 04-23-2006 05:13 PM

Quote:

Originally Posted by topsoftware
i instal but counter show today and totla same i think for me not good werken
Attachment 46381

No its working :) Your Counter started today which is why it would be the same as the total.

Mr Chad 04-23-2006 05:13 PM

Quote:

Originally Posted by Dermo-MIO
sorry to ask this simple question but what does " CH MOD 666 the 'count.txt' file" mean ?

It changes the files permissions

topsoftware 04-23-2006 05:21 PM

Quote:

Originally Posted by chatbum
No its working :) Your Counter started today which is why it would be the same as the total.

i dont but i step to step every tag check but page today and page tootal same

davidw 04-23-2006 05:41 PM

Don't forget to set up Part 5 of the Installation Instructions for showing today's totals correctly.

Dermo-MIO 04-23-2006 07:00 PM

Quote:

Originally Posted by chatbum
It changes the files permissions

ah i got it to work now i didnt know what that was but remembered now thanks for this

rareclownfish 04-23-2006 10:53 PM

Does the pages viewed today resets, because I'm getting the same number on both of them. When do they change?

Mr Chad 04-23-2006 11:42 PM

They change when the Scheduled Task runs. It sets hits_yesterday.txt file to the current hits. So its totalhits - yesterdayshits = today

clearchannel 04-24-2006 11:57 PM

Quote:

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

Is there a good way to either email daily counts or save them in a text file so I can keep track of daily stats?

Thanks in advance

Mr Chad 04-25-2006 11:39 AM

well i actually have aready done this, I might release the mod later im still unsure.


http://beasttoast.com/thosting/files...hits_thumb.png

rareclownfish 05-04-2006 10:59 PM

Quote:

Originally Posted by chatbum
They change when the Scheduled Task runs. It sets hits_yesterday.txt file to the current hits. So its totalhits - yesterdayshits = today

I don't think it working for me check it out.
http://www.rareclownfish.com/forums/index.php

Mr Chad 05-05-2006 11:06 PM

Quote:

Originally Posted by rareclownfish
I don't think it working for me check it out.
http://www.rareclownfish.com/forums/index.php

when did u install it?

If its been only 1 day then its working fine.

rareclownfish 05-05-2006 11:12 PM

It's been about a week now

Mr Chad 05-06-2006 04:16 PM

Did you set up the cron?

also did you add two $pageviews in your template instead of:

one $pageviews and one $pageviewstoday

rareclownfish 05-07-2006 12:48 PM

this is the code i have in the template

<div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]<br><b>The total pages viewed: $pageviews, pages viewed today: $pageviewstoday</div></b>

rareclownfish 05-07-2006 12:57 PM

What attributes should the files be?

Mr Chad 05-07-2006 09:48 PM

chmod 666 on both text files :) thats the problem

rareclownfish 05-08-2006 03:07 AM

Thanks works like a charm

Smiry Kin's 05-08-2006 07:58 PM

how did u get Alexa Rank?

Mr Chad 05-08-2006 09:00 PM

Another script i made, If you want i can release it... Its choppy tho. (works great for me tho)

I could make it an easy install just reply to this post and ill see what i can do.

Smiry Kin's 05-08-2006 10:28 PM

Quote:

Originally Posted by chatbum
Another script i made, If you want i can release it... Its choppy tho. (works great for me tho)

I could make it an easy install just reply to this post and ill see what i can do.

yes yes!! :D

Mr Chad 05-09-2006 12:44 AM

did a quick release just for you.

https://vborg.vbsupport.ru/showthread.php?t=115116

Smiry Kin's 05-09-2006 12:59 AM

Quote:

Originally Posted by chatbum
did a quick release just for you.

https://vborg.vbsupport.ru/showthread.php?t=115116

thanks dude ill install it soon :P

john1744 05-10-2006 12:02 AM

Any way to make this admin only?

Boofo 05-10-2006 12:09 AM

You could use the datastore and this wouldn't be stressful on the server. ;)


All times are GMT. The time now is 01:37 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.01659 seconds
  • Memory Usage 1,802KB
  • 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
  • (6)bbcode_code_printable
  • (1)bbcode_html_printable
  • (17)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
  • (40)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