vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Home Enhancements - Site Life Status for vB 4 (https://vborg.vbsupport.ru/showthread.php?t=243731)

Bob_R 02-28-2011 01:29 PM

Quote:

Originally Posted by Boofo (Post 2167311)
Did you lose site of the install button in all the hub-bub? ;)

Marked as installed. :) :p

BadgerDog 03-18-2011 10:52 AM

Quote:

Originally Posted by Boofo (Post 2142456)
Good, at least we're no worse off than before we added the leap year code. It was working fine with it until we hit January 1st. I noticed a coupe of other scripts on the net were messing up on the new year, also. I'll get it sorted out. Thanks for reporting back.

My version installed says 1.06 ...

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

Boofo 03-18-2011 11:07 AM

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.

Phaedrus 04-13-2011 12:36 AM

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

Alan_SP 04-13-2011 09:53 PM

Since I installed it this part stays same:

Quote:

Hello, Alan_SP, you are the 0 visitor to this page.

Average visits to this page: Hourly: 0 Daily: 0 Weekly: 0 Monthly: 0 Yearly: 0
I set it to 8 000 000, but it doesn't move from zero. What to set for that to start counting site hits? Any idea?

vB is 4.1.2PL1

Boofo 04-13-2011 10:20 PM

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.

Alan_SP 04-14-2011 11:50 AM

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?

Boofo 04-14-2011 11:58 AM

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

Alan_SP 04-14-2011 11:59 AM

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...

Alan_SP 04-14-2011 11:59 AM

Yes, I run xcache on both servers.

Boofo 04-14-2011 12:24 PM

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.

Alan_SP 04-14-2011 01:56 PM

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.

Alan_SP 04-14-2011 02:14 PM

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?

Boofo 04-14-2011 02:35 PM

Quote:

Originally Posted by Alan_SP (Post 2184583)
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.

I used to have xcache enabled on my server and this worked just fine with it. I didn't use a prefix for the datacache, and to be honest, you are the only one who has ever reported that. So I don't really see a need for the prefix.

Boofo 04-14-2011 02:37 PM

Quote:

Originally Posted by Alan_SP (Post 2184586)
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?

That is more than I want to invest in a free mod, since I would not use it.

Alan_SP 04-14-2011 03:51 PM

Quote:

Originally Posted by Boofo (Post 2184596)
I used to have xcache enabled on my server and this worked just fine with it. I didn't use a prefix for the datacache, and to be honest, you are the only one who has ever reported that. So I don't really see a need for the prefix.

I just realized, I needed to disable xcache for datastore. If xcache was enabled, counter remained static, not updating at all. I'm modifying gc interval, maybe it would solve this problem.

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?

Boofo 04-14-2011 04:17 PM

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.

Alan_SP 04-14-2011 06:13 PM

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

Boofo 04-14-2011 09:33 PM

Quote:

Originally Posted by Alan_SP (Post 2184687)
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. :)

It DOES work when you have xcache enabled. It just doesn't update the counter on the forumhome until the cache gets updated. The counter is being updated on every page refresh in the datastore, and if you will check the datastore, you will see that. None of your counters will update any more than this one will when you are using a server cache. You're not understanding how caching works.

Garamond 04-14-2011 10:08 PM

vB4? It just sucks. Most serious admins are still using 3.8.x

When is a version ready for that?

Boofo 04-14-2011 10:54 PM

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.

Alan_SP 04-15-2011 12:54 PM

Quote:

Originally Posted by Boofo (Post 2184743)
It DOES work when you have xcache enabled. It just doesn't update the counter on the forumhome until the cache gets updated. The counter is being updated on every page refresh in the datastore, and if you will check the datastore, you will see that. None of your counters will update any more than this one will when you are using a server cache. You're not understanding how caching works.

I understand caching, but I had problems, counter didn't changed even after ttl and max ttl and gc interval expired. Cache items should be forced to renew, but it didn't worked for me. Maybe I need to test it further? Will see, and I report here if I manage to have it working with xcache.

EDIT:

Still not working.

If someone knows better how to setup xcache, here's my xcache ini:

Code:

xcache.shm_scheme =        "mmap"

xcache.var_size  =            64M
xcache.var_count =            4
xcache.var_slots =            8K
; default ttl
xcache.var_ttl  =            60
xcache.var_maxttl  =          60
xcache.var_gc_interval =    60

xcache.test =                Off
; N/A for /dev/zero
xcache.readonly_protection = Off
; for *nix, xcache.mmap_path is a file path, not directory.
; Use something like "/tmp/xcache" if you want to turn on ReadonlyProtection
; 2 group of php won't share the same /tmp/xcache
; for win32, xcache.mmap_path=anonymous map name, not file path
xcache.mmap_path =    "/tmp/xcache"


; leave it blank(disabled) or "/tmp/phpcore/"
; make sure it's writable by php (without checking open_basedir)
xcache.coredump_directory =  ""

; per request settings
xcache.cacher =              On
xcache.stat  =              On
xcache.optimizer =          On

[xcache.coverager]
; per request settings
; enable coverage data collecting for xcache.coveragedump_directory and xcache_coverager_start/stop/get/clean() functions (will hurt executing p
xcache.coverager =          Off

; ini only settings
; make sure it's readable (care open_basedir) by coverage viewer script
; requires xcache.coverager=On
xcache.coveragedump_directory = ""

With these settings for xcache.ini and with this setting in config.php for vbulletin:

PHP Code:

$config['Datastore']['class'] = 'vB_Datastore_XCache'

my page hit counter doesn't work. When I disable datastore caching counter starts to count. What is the problem, I don't know. If anyone has an idea, please, tell me.

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?

Boofo 04-15-2011 02:00 PM

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.

Alan_SP 04-15-2011 02:08 PM

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.

Boofo 04-15-2011 02:13 PM

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.

Alan_SP 04-15-2011 02:17 PM

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.

Boofo 04-15-2011 02:32 PM

Quote:

Originally Posted by Alan_SP (Post 2184941)
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.

Finally! ;)

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.

Alan_SP 04-15-2011 02:53 PM

Do you have idea where can I see my caching interval? And how to change it?

Alan_SP 04-15-2011 03:04 PM

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

Boofo 04-15-2011 03:07 PM

It gets confusing sometimes, I know. I have been there myself a few times. No harm done. ;)

Alan_SP 04-15-2011 07:06 PM

Just to know, does your mod counts page hits or unique visitors?

Boofo 04-15-2011 07:17 PM

Page hits for the forumhome. I can set it to count every page hit on the site, too. ;)

Alan_SP 04-15-2011 10:21 PM

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:

if ($vbulletin->options['site_lifestatus_enable'] AND THIS_SCRIPT == 'index'

But it adds one query to every page loaded or not?

Boofo 04-16-2011 02:26 AM

My way wouldn't. ;)

Alan_SP 04-16-2011 10:44 AM

And what is your way, if you want to share it?

Boofo 04-16-2011 12:50 PM

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.

Alan_SP 04-17-2011 01:29 AM

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:

AND THIS_SCRIPT == 'index' 

condtion in plugin for updating counter.

Boofo 04-17-2011 01:34 AM

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.

steve1966 04-17-2011 09:46 AM

Thank you rated this 10/10

haytham 05-03-2011 04:49 PM

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
  • Page Generation 0.01583 seconds
  • Memory Usage 1,842KB
  • 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_code_printable
  • (3)bbcode_php_printable
  • (9)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
  • (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