Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Site Life Status for vB 4 Details »»
Site Life Status for vB 4
Mod Version: 1.0.4, by Boofo (R.I.P.) Boofo is offline
Developer Last Online: Jun 2012 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (55 votes - 4.58 average) Installs: 246
Released: 01 Jun 2010 Last Update: 01 Jan 2011 Downloads: 1348
Not Supported Uses Plugins Auto-Template Additional Files  

Site Life Status for vB 4
Version 1.0.4
(By Boofo)

What does this product do?
This product will add a Site Life Status info area, including Site Startup Date, Site Age, Site Location, Pagehits counter and Average visits, to your forumhome What's Going On box.

NOTE: The maximum counter value will depend on your system. The maximum signed integer value for 32 bit systems is 2147483647 (or 2,147,483,647), while the maximum signed integer value for 64 bit systems is 9223372036854775807 (or 9,223,372,036,854,775,807). These are the highest numbers this counter will be able to count to, depending on your system.

Version Information:
Version 1.0.0 --Initial release for vB 4
Version 1.0.1 --Added Site Life Status Date Display Format option to settings.
Version 1.0.2 --Added Site Life Status Locale option to settings. This will allow you to display the Site Life Status Date Display Format day and month name in your local language.
Version 1.0.3 --Fixed for WGO style changes in vB 4.0.8. (Site_Life_Status_vb4.08.zip only)
Version 1.0.4 --Reverted back to the original js file because of the timer messing up with the added leap year code.

Credits:
A thank you goes out to Shawn Dean for supplying the original javascript code for the Site Age counter.

Installation overview:
-------------------------------
1 Product XML (5 Plugins, 36 Phrases, 1 template, 7 settings and 1 file)

-------------------------------
Installation Instructions:
-------------------------------
1. Upload site_life_status.js to the forums/clientscript folder on your site.

NOTE: You will need to delete the old site_life.js file as the new one has been renamed.

-------------------------------
2. Go to your Admin CP
Scroll down to 'Plugin System'
Click 'Manage Products'
Click 'Add/Import Product'
Click the 'Browse' button, and locate the product-boofo_site_lifestatus.xml file on your computer

3. Go to your Admin CP -> vBulletin Options -> Site Life Status and set the following options:
--Site Life Status Enable: Enable/Disable the Site Life Status.
--Site Life Status Startup Date: Enter your site startup date.
--Site Life Status Location: Type your site location in here. If you do not wish for your location to be shown, leave this option blank.
--Update the page views counter to the value below? If you want to change the current page views counter value on forumhome to the value provided below, set this to "Yes" - it will automatically be reset to "No" once the new value has been set (at the next page view).
--Site Life Status Forumhome Page Views Counter: Enter the number of page views, without commas, to start the page views count at. (Example: 16897)
--Site Life Status Locale: Set your system locale here. This will allow the Site Life Status Date Display Format below to display the month and day names in your local language.
--Site Life Status Date Display Format: Enter the date and time format you want the Site Startup Date to display on the forumhome.
-------------------------------

Done!
Enjoy!



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	status_english.png
Views:	4659
Size:	10.6 KB
ID:	117995Click image for larger version

Name:	status_german.jpg
Views:	2644
Size:	68.4 KB
ID:	117996

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Site Life Status Boofo Modification Graveyard 293 30 Jun 2008 06:52

  #181  
Old 17 Jan 2011, 17:53
TosaInu's Avatar
TosaInu TosaInu is offline
 
Join Date: Jul 2004
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.
__________________
Ja mata
TosaInu

Last edited by TosaInu : 17 Jan 2011 at 18:17.
Reply With Quote
  #182  
Old 17 Jan 2011, 18:52
horussjr horussjr is offline
 
Join Date: Feb 2010
Real name: A Robert
Originally Posted by horussjr View Post
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?
Reply With Quote
  #183  
Old 17 Jan 2011, 19:38
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Originally Posted by horussjr View Post
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"?
Reply With Quote
  #184  
Old 17 Jan 2011, 19:40
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Originally Posted by TosaInu View Post
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.
Reply With Quote
  #185  
Old 17 Jan 2011, 20:31
TosaInu's Avatar
TosaInu TosaInu is offline
 
Join Date: Jul 2004
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.
__________________
Ja mata
TosaInu
Reply With Quote
  #186  
Old 17 Jan 2011, 20:53
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
When you figure out how to have the datastore work like that with caching enabled, please let me know.
Reply With Quote
  #187  
Old 17 Jan 2011, 21:08
TosaInu's Avatar
TosaInu TosaInu is offline
 
Join Date: Jul 2004


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

When and if I ever figure it out, I'll let you know.
__________________
Ja mata
TosaInu
Reply With Quote
  #188  
Old 17 Jan 2011, 21:35
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Originally Posted by TosaInu View Post


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.
Reply With Quote
  #189  
Old 17 Jan 2011, 22:01
TosaInu's Avatar
TosaInu TosaInu is offline
 
Join Date: Jul 2004
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?
__________________
Ja mata
TosaInu
Reply With Quote
  #190  
Old 17 Jan 2011, 22:15
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Originally Posted by TosaInu View Post
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.
Reply With Quote
  #191  
Old 18 Jan 2011, 21:06
horussjr horussjr is offline
 
Join Date: Feb 2010
Real name: A Robert
Originally Posted by Boofo View Post
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
Reply With Quote
  #192  
Old 19 Feb 2011, 02:31
Bob_R Bob_R is offline
 
Join Date: Jun 2009
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)

Last edited by Bob_R : 19 Feb 2011 at 02:45. Reason: Which download do I use?
Reply With Quote
  #193  
Old 19 Feb 2011, 15:05
Bob_R Bob_R is offline
 
Join Date: Jun 2009
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
Reply With Quote
  #194  
Old 19 Feb 2011, 15:49
Bob_R Bob_R is offline
 
Join Date: Jun 2009
I got it!

I had originally used vb4
Reply With Quote
  #195  
Old 26 Feb 2011, 20:29
Teascu Dorin's Avatar
Teascu Dorin Teascu Dorin is offline
 
Join Date: Nov 2009
Real name: Teascu Dorin
Nice work with this. Installed, Rated 5 stars, Romanian Translation attached.
Attached Files
File Type: xml vblang_site_lifestatus_ro.xml (9.0 KB, 3 views)
__________________
https://www.rostyles.com/forum
- Cheap Styles & Skins
- Romanian Language Pack for vB 3.8.0+, 4.0.0+ & 5.0.0+
- Romanian Translation for most of the Mods, Hacks and Products (including vBSEO)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 12:23.

Layout Options | Width: Wide Color: