![]() |
Quote:
|
Quote:
Is this the latest rev of your mod I should be using with a vb4.04 board? I ask be cause of the confusion and problems we encountered installing another mod of yours with a version that was only for vb4.1... Thanks .. :) Regards, Doug |
The two versions posted above are the same except that the 4.0.8 version included a fix for the template change in 4.0.8. The js file for both versions is the original one, not the updated one.
|
Question, the "page views" portion... does this count from whatever you set it at, forever? My site has been up since 2006, what would I put in as the starting page count?
I figured it out. I used webalyzer stats for the past year and figured out the average per day and used that number... It may even be accurate. :D |
Since I installed it this part stays same:
Quote:
vB is 4.1.2PL1 |
Make sure you set the3 option above it (Update the page views counter to the value below?) to yes when you enter the count. And the count does not have spaces or commas when you set it.
|
Yes, I used this option, below I put 8000000 (without spaces or anything else). When I set it to yes and save it, it goes back to no and no information on forum home is displayed.
Like it doesn't recognize site hits. Maybe something server related? Or PHP? |
Since you are the only one who is having this issue. I would have to look at it and see what is going on. Are you running a cache on your server by chance? (Memcache, xcache, etc.)
|
Ok, I just tested it on my test server. There it works with no problems. So, it is something different on server. What exactly don't know. Do you have some idea what server side needs to be enabled, or disabled? My main server is much more protected than test server. As it works fine on test server, probably I protected some part of server and this is the reason why it doesn't work...
|
Yes, I run xcache on both servers.
|
All it does is read the counter from the datastore in the vb db. Make sure the datastore has the counter on the server that doesn't show it.
|
I just found out that turning off xcache, i.e. not using xcache for datastore solved problem.
Any idea how to set this up to work with xcache and it's datastore? EDIT: further info: I removed datastore prefix and it works ok now. I think you should try to include datastore prefix somehow. This is the line in config.php I commented out: // $config['Datastore']['prefix'] = 'forum_'; With this enabled, it doesn't work. It's not too big a problem for me, but there could be people who would use Xcache for more than vBulletin. So it works with xCache, but not when datastore prefix is used. |
And as a feature request, is it possible to program this mod to work with real usage statistics? What I mean is, I just supposed I had 8 millions hits so far, but it's not precise. Can you make it to use two counters, one from the installation, that counts actual page hits and one that's just sum of actual and the supposed page hits till now?
This way we would have better site statistics. Also, if you go that way, if there could be way to reset page hits and while reseting them, giving this offset counter value of total hits till reset, so we could benchmark actual site usage in various periods, but retaining total page hits. Or using altogether two counters, one real, from installation and one with installation plus offset? |
Quote:
|
Quote:
|
Quote:
What are your var.ttl, var.maxttl i gc_interval settings? EDIT: No luck, xcache datastore needs to be disabled for your mod to work, at least page hits part. :( Is it possible to put somehow counter outside of xcache datastore? |
Thew counter does NOT remain static. It updates the counter in the datastore on every page refresh. The xcache will update the counter when it updates the cache. I don't use any server caching anymore. I don't have enough users to warrant using it right now.
|
Well, for some reason it doesn't work for me when I cache datastore in xcache. Only without caching counter gets updated.
At the moment I don't need to cache datastore, so I can use it, but later I hope that I'll need caching. :) |
Quote:
|
vB4? It just sucks. Most serious admins are still using 3.8.x
When is a version ready for that? |
I have a stripped down version ready for vb 3 but haven't decided if I want to post it yet as I am running vb 4 so vb 3 support would be spotty for me.
|
Quote:
EDIT: Still not working. If someone knows better how to setup xcache, here's my xcache ini: Code:
xcache.shm_scheme = "mmap" PHP Code:
EDIT2: Just checked, after I disable datastore caching, counter is updated with new page hits. So counter does work, but I'm unable to set automatic flushing of counter to make changes visible. For some reason change in counter isn't propagated while caching is on. Any idea how to set it right? |
You STILL don't get it. It WORKS! I had it working with xcache just fine. It WILL NOT update the counter on the forumhome until the cache refreshes itself. But the counter is still being updated in the datastore. That is how caching works. I don't know how else to explain it to you so you will understand.
|
Yes, it works, as I said in edit2, but thing is, I don't see it. As long as the xcache is used, I don't see it. That's the problem. I want to see it, that is whole point. How to make cache to refresh itself automatically?
Other things work as far as I can tell, but your counter doesn't, not automatically, not for me. I agree that there can be something that I set up wrong, but I can't tell what. |
Arrggghhhhh! It works, it just doesn't change the number until the cache refreshes. When it refreshes, you should see a jump in the numbers as they are being added to the datastore even while the cache is on. You will notice that the threads and posts numbers don't update either until the cache refreshes. That is how caching works. There is no way to refresh the cache other than the settings and if you want it to refresh on very page load, then caching makes no sense for you to use.
|
Ok, I understand what you are saying and I'll turn caching and wait.
When I installed and waited for about a day, nothing changed. Now I wasn't waited that long, but I will. |
Quote:
Caching gives you the added benefit of speed as it reads from the cache and doesn't do the queries on every page refresh. But there is a trade-off, like with counters. If you have a lot of users on the site at one time, caching is the way to go to keep resources manageable. You can always look in the db at the datastore and see the counter has increased so you know it works. You just won't see the higher number until the cache refreshes is all. It looks like your caching interval is set to an hour, unless I'm reading it wrong. |
Do you have idea where can I see my caching interval? And how to change it?
|
Ok, I see now that it works. :) I'm very much ashamed. :( You're right, I just needed to wait. I think that my problem was caused with using datastore prefix and certainly I was very impatient afterward.
Thanks for your patience. :) |
It gets confusing sometimes, I know. I have been there myself a few times. No harm done. ;)
|
Just to know, does your mod counts page hits or unique visitors?
|
Page hits for the forumhome. I can set it to count every page hit on the site, too. ;)
|
Well, that would be great, I'd like to have it this way... :)
And I looked at mod and am wandering is secret hidden here: PHP Code:
|
My way wouldn't. ;)
|
And what is your way, if you want to share it?
|
I'd have to add another setting so the user can select how they want to do it. Not really worth the trouble for a free mod and something I, myself, would never use.
|
Ok, I'll use it till I see that my servers starts melting. :) Then I may consider further usage.
Would you maybe explain the way to avoid one query for every page? I just removed PHP Code:
|
If your server melts, it isn't anything to do with this mod. This mod does not affect resources in the least. Use it or not, totally up to you.
What you did should work fine. |
Thank you rated this 10/10
|
Is there any way this fantastic mod can run on 3.8.7? By the way, I always look after the first post at "Similar Mod" to find if the mod is compatible with other VB versions..that's why I am asking, since there isn't any similar mods listed.
|
All times are GMT. The time now is 03:01 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|