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)

Boofo 01-01-2011 06:11 PM

Quote:

Originally Posted by basilrath (Post 2142267)
Hes fixing it ................. so cant see a problem when its done :)

It is fixed for now. I had to remove the leap year code temporarily until I get it all re-written to work properly. Sorry for the delay.

BadgerDog 01-01-2011 07:06 PM

Quote:

Originally Posted by Boofo (Post 2142395)
It is fixed for now. I had to remove the leap year code temporarily until I get it all re-written to work properly. Sorry for the delay.

Thanks .. :)

So, for clarity ...

I'm running 4.04pl1, so I should just re-download and do a complete install of this version?

Site_Life_Status_vb4.zip

Regards,
Doug

Boofo 01-01-2011 07:13 PM

Quote:

Originally Posted by BadgerDog (Post 2142421)
Thanks .. :)

So, for clarity ...

I'm running 4.04pl1, so I should just re-download and do a complete install of this version?

Site_Life_Status_vb4.zip

Regards,
Doug

Yes, and please report back here and let me know if everything is ok again. Sorry for the problems.

BadgerDog 01-01-2011 07:53 PM

Quote:

Originally Posted by Boofo (Post 2142424)
Yes, and please report back here and let me know if everything is ok again. Sorry for the problems.

No problem ... appreciate your excellent work and support ... :)

Installed this last download on v4.04pl1 and I received NO error messages during the install. I also replaced the JS file. It appears to run fine and I see no anomalies with date and time calculations.

Regards,
Doug

Boofo 01-01-2011 08:16 PM

Quote:

Originally Posted by BadgerDog (Post 2142439)
No problem ... appreciate your excellent work and support ... :)

Installed this last download on v4.04pl1 and I received NO error messages during the install. I also replaced the JS file. It appears to run fine and I see no anomalies with date and time calculations.

Regards,
Doug

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.

sadiq6210 01-02-2011 11:08 AM

Same issue Boofo

Site Age: 4years - 'xx'seconds

Boofo 01-02-2011 11:14 AM

Make sure you install the version now in the first post and replace the old js file on the server. If it is a new install today, then check your settings as the js file in the zip is the original one that always worked.

BadgerDog 01-02-2011 03:57 PM

1 Attachment(s)
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.

Hi .. :)

I just noticed an error message at the top of our AdminCP (see pic)...

I think this is a left over from the 1.06 install.

I have updated to the last version you posted yesterday, as per our previous discussion, but how should I clear these messages? Should I just load and save the templates, then re-install the current version you've posted?

Regards,
Doug

Edit: I selected EDIT from screen shown for each template and I loaded and saved the templates that came up. After that, the error doesn't seem to be appearing in the AdminCP currently. Does that mean it's fixed?

Boofo 01-02-2011 04:02 PM

I would do an uninstall of the mod and delete any leftover templates, if there are any, and then do a fresh install of the mod. Make sure you write down your settings so you can re-enter them. I don't know why you had that error showing up and I haven't had that reported before. But, then, you know me well enough to know when I screw something up, I REALLY screw it up. ;)

BadgerDog 01-02-2011 05:01 PM

Quote:

Originally Posted by Boofo (Post 2142781)
I would do an uninstall of the mod and delete any leftover templates, if there are any, and then do a fresh install of the mod. Make sure you write down your settings so you can re-enter them. I don't know why you had that error showing up and I haven't had that reported before. But, then, you know me well enough to know when I screw something up, I REALLY screw it up. ;)

Ok, I really didn't want to uninstall, so I REVERTED the templates (see pic in previous post) as it seemed to be a 1.05 versus 1.04 template issue. I then re-installed the current version and the problem seems to have gone away and all templates check out as current. :D

Thanks .. :)

Regards,
Doug

basilrath 01-02-2011 05:04 PM

works fine now

New Joe 01-04-2011 07:40 AM

So which on of the 2 should I download?

Hippy 01-09-2011 01:59 PM

Just wanted to express My Opinion here about this mod..
Lets start with great support..2 thumbs up
Great addition to vb
This Mod Should be stock with vb..
ok now

It's been downloaded 636 times but only installed 142 times..

If your running this mod .. Please Mark installed ( it's the least you can do)
thanks for the great mod, time spent, and the support you give boofo

horussjr 01-15-2011 10:58 AM

it is not working is it should. i set my start date to 14 Sep 2007 16:48 and it looks like it is working Friday, 14 September, 2007 at 16:48 but at site age it at every refresh it start at 3 years -48 seconds and i goes to 3 years 59 seconds then it goes another time from 3 years 0 seconds to 59. it continuously restart.

take a look www.stormzone.ro/forum

please help

Boofo 01-15-2011 11:37 AM

Check the startup date setting. You have it set wrong. The date that shows on the forumhome is a separate setting.

horussjr 01-15-2011 12:25 PM

oh, dont be silly. take a look at this then go to the site and look at that
IN ADMIN CP
Site Life Status Startup Date 14 Sep 2007 16:48
IN FORUM
Site Startup Date Friday, 14 September, 2007 at 16:48
Site Age 3 years, 4 seconds

TosaInu 01-16-2011 08:06 PM

Nice hack Boofo,

I installed it on a testforum first, the pageview counter works there. I installed it on the productionboard on the same server and the counter for the visits doesn't run. The clock works on both. Is there some vbul setting or cache that's different?

Edit: there is the boofocounter in datastore and it gets updated with data. I guess it's some cache setting?

Edit 2: the working one is odd too. The yearly views rise, while the hourly one stays at zero. After say 50 pagehits it looks like this:

Average visits to this page
Hourly 0.00 Daily 0.01 Weekly 0.05 Monthly 0.22 Yearly 2.63

I denstalled it from the testone to try the 4 version. That one has the wrong order too and doubles the numbers.

Boofo 01-16-2011 09:13 PM

Quote:

Originally Posted by TosaInu (Post 2150199)
Nice hack Boofo,

I installed it on a testforum first, the pageview counter works there. I installed it on the productionboard on the same server and the counter for the visits doesn't run. The clock works on both. Is there some vbul setting or cache that's different?

Edit: there is the boofocounter in datastore and it gets updated with data. I guess it's some cache setting?

Are you running xcache or another caching program on the server?

TosaInu 01-16-2011 09:23 PM

Yes, it does: Memcached. The testboard is running [DBTech] vB Optimise Lite v2.0.1.

Boofo 01-16-2011 09:43 PM

Quote:

Originally Posted by TosaInu (Post 2150219)
Yes, it does: Memcached. The testboard is running [DBTech] vB Optimise Lite v2.0.1.

There's your answer. The counter will be updated when the cache is updated, although it will still be adding up in the meantime. I am running xcache on my server and so far I have not found a way around it.

TosaInu 01-17-2011 04:53 PM

The cache is a blessing, but sometimes it makes pull your hair.

I don't know how long it takes to update the cache, I'm still seeing zeros.

But on the testboard it's not running a cache:

Average visits to this page
Hourly 0.00 Daily 0.01 Weekly 0.05 Monthly 0.22 Yearly 2.63

Isn't that displaying it the wrong way? I expect hourly views to rise faster than yearly views?

Hmm, I'm putting it wrong. Those are totals/averages for a hour-year right? When I do a fresh install with all counters set to zero, I guess I would see the hourly counter to go up first. ... erm... is it because our site is over 11 years old already with all old average data being 0? I can see hourly visits stay at 0 then, there will be loads of 0 visit hours in 11 years.

Edit: I set it to yesterdays date, reset the counter to 0 and did a few page refreshes
Average visits to this page
Hourly 0.25 Daily 6.05 Weekly 42.33 Monthly 183.93 Yearly 2,207.15

It doesn't make much sense to me? Shed some light on this please?

It's going to be query intensive I guess (though you can probably go around that with a cron that updates it once an hour). There would be 5 fields: one for an hourly counter and that gets life update. A field for day, week, month, year. After each hour the cron adds the hour value to the day value and the hour is reset to 0. After 24 hours the data from day is copied to week and resets to 0. And so on. That makes it totals and not averages.

horussjr 01-17-2011 05:52 PM

Quote:

Originally Posted by horussjr (Post 2149445)
oh, dont be silly. take a look at this then go to the site and look at that
IN ADMIN CP
Site Life Status Startup Date 14 Sep 2007 16:48
IN FORUM
Site Startup Date Friday, 14 September, 2007 at 16:48
Site Age 3 years, 4 seconds

bump.... can you help me or not?

Boofo 01-17-2011 06:38 PM

Quote:

Originally Posted by horussjr (Post 2150580)
bump.... can you help me or not?

14 Sep 2007 16:48 works fine for me. You either edited the js file or something else to cause it to mess up. Undo whatever you did and that will fix it. How's that for "silly"?

Boofo 01-17-2011 06:40 PM

Quote:

Originally Posted by TosaInu (Post 2150551)
The cache is a blessing, but sometimes it makes pull your hair.

I don't know how long it takes to update the cache, I'm still seeing zeros.

But on the testboard it's not running a cache:

Average visits to this page
Hourly 0.00 Daily 0.01 Weekly 0.05 Monthly 0.22 Yearly 2.63

Isn't that displaying it the wrong way? I expect hourly views to rise faster than yearly views?

Hmm, I'm putting it wrong. Those are totals/averages for a hour-year right? When I do a fresh install with all counters set to zero, I guess I would see the hourly counter to go up first. ... erm... is it because our site is over 11 years old already with all old average data being 0? I can see hourly visits stay at 0 then, there will be loads of 0 visit hours in 11 years.

Edit: I set it to yesterdays date, reset the counter to 0 and did a few page refreshes
Average visits to this page
Hourly 0.25 Daily 6.05 Weekly 42.33 Monthly 183.93 Yearly 2,207.15

It doesn't make much sense to me? Shed some light on this please?


It's going to be query intensive I guess (though you can probably go around that with a cron that updates it once an hour). There would be 5 fields: one for an hourly counter and that gets life update. A field for day, week, month, year. After each hour the cron adds the hour value to the day value and the hour is reset to 0. After 24 hours the data from day is copied to week and resets to 0. And so on. That makes it totals and not averages.

You haven't set the hits counter yet. Look at your settings. The averages are working properly.

TosaInu 01-17-2011 07:31 PM

This one Boofo? Site Life Status Forumhome Page Views Counter.

Something like the active users template isn't held back by the Cache. The Sidebar in the Suite gets refreshed with new content and so does forumviews. So, there should be an possibility somewhere?

The currently active users are served from the FORUMHOME template. My 1st guess is that that template is somehow exempted from the cache.

Paul M made hacks to show users who were online in the last 24 hours. I'm at best an armchair coder myself, but I guess he got some plugins that arrange cache for his templates and those bypass other cache systems.

I just installed his hack and then logged in with an useraccount: the page was updated immediately with the new name, despite the cache.

Boofo 01-17-2011 07:53 PM

When you figure out how to have the datastore work like that with caching enabled, please let me know.

TosaInu 01-17-2011 08:08 PM

:)

I'm sure you've searched high and low already Boofo.

When and if I ever figure it out, I'll let you know.

Boofo 01-17-2011 08:35 PM

Quote:

Originally Posted by TosaInu (Post 2150647)
:)

I'm sure you've searched high and low already Boofo.

When and if I ever figure it out, I'll let you know.

That's just one of the trade-offs for using a cache on the site. You are going to find a few other places that this happens when using a caching system. It really doesn't matter as long as the counter gets updated properly so it shows correctly when the cache updates. The only way around it is to use a query to pull it on each page update but that defeats the purpose of putting it in the datastore.

TosaInu 01-17-2011 09:01 PM

Running queries each time isn't great either Boofo.

There's also a cron and query option. The hack is on my page for a day now and it's still zero. I've no idea how long the memcache is going to last, it's a day already.

I'ld like a modification where the views for the actual day are displayed and the total views since the site is created. A cron could update/flush (I've little idea what's going on) the daily data once an hour and the total will be updated once a day (the daily one is then reset to zero).

I'm guessing I miss something special about the datastore too?

Boofo 01-17-2011 09:15 PM

Quote:

Originally Posted by TosaInu (Post 2150677)
Running queries each time isn't great either Boofo.

There's also a cron and query option. The hack is on my page for a day now and it's still zero. I've no idea how long the memcache is going to last, it's a day already.

I'ld like a modification where the views for the actual day are displayed and the total views since the site is created. A cron could update/flush (I've little idea what's going on) the daily data once an hour and the total will be updated once a day (the daily one is then reset to zero).

I'm guessing I miss something special about the datastore too?

You're not understanding how this works. The counter IS getting updated with each page view. It is your caching that is keeping it from showing the proper count right now. You will need to look at your cache settings to see when the cache gets updated. Since this is a free modification, I have no plans to add anything else to it.

horussjr 01-18-2011 08:06 PM

Quote:

Originally Posted by Boofo (Post 2150607)
14 Sep 2007 16:48 works fine for me. You either edited the js file or something else to cause it to mess up. Undo whatever you did and that will fix it. How's that for "silly"?

reinstaled the product and now it works fine:-?? maybe a bad transfer of the .js at upload. thank you for this great mod

Bob_R 02-19-2011 01:31 AM

I think this is a winner. I'll install it this weekend!

Thanks!!

Which download would I use?

Site_Life_Status_vb4.zip (6.6 KB, 48 downloads)
Site_Life_Status_vb4.08.zip (6.7 KB, 89 downloads)

Bob_R 02-19-2011 02:05 PM

Site Life Status

Site Startup Date
Monday, April 12, 2010 at 4:04 pm

Site Age
312 days, 18 hours, 59 minutes and 14 seconds

Great mod! I love it!

But, I need to get this fixed below. Please advise. Thanks!!

Site Location
Dumont, NJ

Hello, Bob, you are the 3 visitor to this page.

Average visits to this page
Hourly
0.00
Daily
0.01
Weekly
0.07
Monthly
0.29
Yearly
3.50

Bob_R 02-19-2011 02:49 PM

I got it!

I had originally used vb4

Teascu Dorin 02-26-2011 07:29 PM

1 Attachment(s)
Nice work with this. Installed, Rated 5 stars, Romanian Translation attached.

Boofo 02-26-2011 08:57 PM

Quote:

Originally Posted by Bob_R (Post 2164298)
I got it!

I had originally used vb4

Did you lose site of the install button in all the hub-bub? ;)

Teascu Dorin 02-26-2011 09:03 PM

Quote:

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

What do you mean?
I have clicked marked and installed :|!

Boofo 02-26-2011 09:04 PM

Quote:

Originally Posted by dorin2oo7 (Post 2167315)
What do you mean?
I have clicked marked and installed :|!

I was referring to the person I quoted. ;)

Vick98 02-27-2011 03:45 AM

Is there any way to change to the title "Site Age" to something like "Clan Age" since I own a online gaming clan and website? That way members can see how long we have been around.

Boofo 02-27-2011 04:27 AM

Check the phrases for this mod.


All times are GMT. The time now is 03:21 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.01560 seconds
  • Memory Usage 1,845KB
  • 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
  • (18)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