![]() |
HIT COUNTER! (Integrated With VB)
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 :cool: Installation Instructions:
https://vborg.vbsupport.ru/ - Using Total Page Views or https://vborg.vbsupport.ru/ - Using Total Page Views and Todays Page Views FAQ:
|
This is cooler than the old version of mine.:)
|
Quote:
|
Does this only work as a total views ?
Im looking for a way get a counter in my calendar that makes it possible for me to see how many that have seen the frontpage of calendar and total views of each event. Can this handle that ? |
nope. You would want to use https://vborg.vbsupport.ru/showthread.php?t=109523.
or If you replace the contents of the plugin XML file with: PHP Code:
|
I followed instructions, placed it in my footer, and i've got nothing
|
hmm. let me recheck the files
|
Quote:
-Template Cache System -Plugin Accelerator and you have not refreshed the Cache for the templates or/and refreshed the plugin system. |
Quote:
Let me check Nope, if you'd like i can PM you with some login details to check stuff out, i'm stumped Edit, I fixed by CHMOD the count.txt file to 666 after upload |
Ok its good to see we got that resolved :)
|
I tried uploading the plugin and then the page just reloaded. The plugin wont install. that's weird, know why?
|
Quote:
Hook: global_start Content: require_once('./counter/counter.php'); thats all :) |
my counter counts by 2's not 1's :(
|
Quote:
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 |
hmmm.......
|
i didnt change anything.....where do i change +2 to +1?:banana:
|
If you guys want i can give you my updated version, it adds the option to display todays page views and the total.
|
Quote:
it uses $count++; which adds one. |
Quote:
|
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. |
Works just fine. Thanks!
|
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. Thanks in advance. |
Quote:
Main reason i didnt put the in the instructions is because i like to see different uses :) |
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. |
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:
|
Quote:
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. |
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 |
Quote:
|
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 :) |
Hi, nice hack but how do I remove it?
|
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. |
Quote:
|
Quote:
Are you sure you didnt add the variables more than once? |
Stupid question: Since when will the count start?
Nice hack btw :) |
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' |
Quote:
|
hmm lets see, I hacked the hell out of my hack :P
Quote:
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:
|
ill make a better guide... or a better way looks like this isnt working well, just got mine to actually work.
|
Quote:
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 |
Quote:
first uninstall the plugin :) |
All times are GMT. The time now is 04:53 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|