Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
LAM - Lifetime Statistics Details »»
LAM - Lifetime Statistics
Version: 4.0.8.0, by mawby mawby is offline
Developer Last Online: Jul 2020 Show Printable Version Email this Page

Category: Statistics Modifications - Version: 4.0.6 Rating:
Released: 10-12-2010 Last Update: 10-28-2010 Installs: 51
Uses Plugins
Re-useable Code Additional Files Translations  
No support by the author.

This product will change the FORUMHOME threads, posts and members statistics to include deleted data. This means your forums statistics will only go up with each new posts/threads and will not be affected by forum deletions or thread/post pruning.

Since version 4.0.6.1 it is now possible to run this product in two modes. The default mode is to always query the database (with 3 separate queries) for the latest statistics whenever the FORUMHOME template is displayed. Alternatively, you can run this product in "Reduced Query" mode which utilises a cron task to put the statistics into the datastore every 15 minutes. This will prevent the additional queries normally done when FORUMHOME is displayed but it will mean the statistics shown can be up to 15 minutes out of date.

Since version 4.0.8 there are now two products available to download, one with support for changing the vBadvanced "Stats" module values, and one without. (Note: As I do not run vBadvanced on my site support for it may be removed from this product at any time)

Installation
  1. Download the required attached .zip file
    product-LAM_LifetimeStatistics.zip or product-LAM_LifetimeStatistics (vBadvanced).zip
  2. Upload the files
    Copy the contents of the upload folder onto your web server
  3. Install the product
    AdminCP -> Plugins & Products -> Add/Import Product -> Import Product

Configuration

You can change this product to run in "Reduced Query" mode by modifying the following setting;



If running in "Reduced Query" mode, you can also change the frequency the statistics are updated by modifying the Schedule Task settings;




Example

Not much to show really. The screen shots below show the difference it makes to my site which is approaching 10 years old and has therefore had a fair amount of pruning done over the years.

This is before the product was installed on my site;



And this is afterwards;



This is the vBadvanced module which also gets updated if you install the vBadvanced version of this product.





Version History

4.0.8.0 - Support for vBadvanced stats module (2010/10/21)
4.0.6.1 - Added the "Reduced Query" mode (2010/10/20)
4.0.6 - Initial release (2010/10/13)


Suggestions
  • Support changing the statistics on vBAdvance

Download Now

File Type: zip LAM_LifetimeStatistics.zip (2.5 KB, 128 views)
File Type: zip LAM_LifetimeStatistics (vBadvanced).zip (2.7 KB, 57 views)

Screenshots

File Type: png LAM_LifetimeStatistics_Before.png (9.4 KB, 0 views)
File Type: png LAM_LifetimeStatistics_After.png (9.5 KB, 0 views)
File Type: png Settings.png (29.8 KB, 0 views)
File Type: png Scheduled Task.png (20.5 KB, 0 views)
File Type: png vBadvanced.png (7.4 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 10-13-2010, 09:50 AM
ProFifaLeagues's Avatar
ProFifaLeagues ProFifaLeagues is offline
 
Join Date: Aug 2009
Location: Uk
Posts: 1,191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Worked perfect thank you!
Rated and Installed
Reply With Quote
  #3  
Old 10-13-2010, 01:35 PM
COL NIL SATIS COL NIL SATIS is offline
 
Join Date: Aug 2009
Location: Liverpool UK
Posts: 802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

AWESOME !!!!!!!Thanks
Reply With Quote
  #4  
Old 10-13-2010, 02:33 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice idea.

It might be better to use the datastore for the info, though. This will add 3 queries to the forumhome as it is right now.
Reply With Quote
  #5  
Old 10-13-2010, 04:24 PM
BoostinEuros BoostinEuros is offline
 
Join Date: May 2010
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome, worked perfectly!
Reply With Quote
  #6  
Old 10-13-2010, 05:42 PM
synseal's Avatar
synseal synseal is offline
 
Join Date: Apr 2009
Posts: 334
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod.......... thankyou.
Reply With Quote
  #7  
Old 10-14-2010, 05:35 AM
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Posts: 979
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed + 5 stars

thanxxx
Reply With Quote
  #8  
Old 10-15-2010, 09:43 AM
mawby mawby is offline
 
Join Date: Jun 2004
Location: Wiltshire, England
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
It might be better to use the datastore for the info, though.
I'll admit to not being au fait with the datastore, so I looked in the manual which states...

Quote:
To improve performance, vBulletin caches certain information which isn't updated often in the datastore, so that it doesn't have to be rebuilt every time it's needed.
This doesn't sound like what I need given how frequently the data is changing.
Reply With Quote
  #9  
Old 10-15-2010, 11:28 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You could run an hourly cron job for the queries to pull the info for the datastore.
Reply With Quote
  #10  
Old 10-15-2010, 11:47 AM
mawby mawby is offline
 
Join Date: Jun 2004
Location: Wiltshire, England
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
You could run an hourly cron job for the queries to pull the info for the datastore.
OK I'll add it to a suggestions list as I can see why this would benefit really large forums.
Reply With Quote
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04: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.08426 seconds
  • Memory Usage 2,327KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (7)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete