Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Dream's Forum Statistics Details »»
Dream's Forum Statistics
Version: 3.2, by Dream Dream is offline
Developer Last Online: Sep 2010 Show Printable Version Email this Page

Category: Statistics Modifications - Version: 3.6.8 Rating:
Released: 02-28-2007 Last Update: 12-03-2007 Installs: 300
Uses Plugins Template Edits
Re-useable Code Additional Files Translations  
No support by the author.

Warning: This add-on is not good for big forums, it calculates all the info on the fly.

This will add a page with statistics to your forum.

Forum Statistics
- Newest Members
- Posts per day (last x days)
- Posts per month (last x months)
- Forum open since
- Average posts per day overall
- Average threads per day overall
- Average replies per thread overall
- Active members percentage
- Oldest thread

Top Posters
- last year
- this year
- last month
- this month
- last 24 hours
- last 7 days
- last 30
- overall

Threads
- most viewed
- most replied
- top rated
- most replied in the last X days (choose X in the options, default is 10).

Polls
- Most voted
- Latest polls

Users
- Top Thread Starters
- Top Reputation
- Top Referrers
- Top Posts Per Day Average
- Users with most attachments
- Most viewed/downloaded attachments
- Latest attachments

Thank You Hack
- Most Thanked Users
- Who Thanked Most
- Most Thanked Posts

Attachments Statistics
- Statistics for each attachment extension
- Most viewed/downloaded attachments for each extension
- Latest attachments for each extension
- Total attachments and downloads for each extension and overall
- Average downloads per attachment

Most Active Forums
- Last year
- This year
- Last month
- This month
- Last 30 days
- Last 7 days
- Last 24 hours
- Overall

Age Statistics
- Oldest/youngest members
- How many members on each age range

Custom Profile Fields Statistics
- Percentage of each option chosen by your members

Registration Statistics
- Daily registrations
- Monthly registrations

Statistics for each forum
Choose the forum you want to view statistics from. Only forums people have permission to see are shown.

Options in the Admin Control Panel
You can exclude forums/usergroups/users from the statistics, disable the attachments statistics page and set other options.

Administrators Only Option
You can set the statistics to be shown only to administrators.

Installation
You just need to import a product and upload a few files (statistics.php and statsmod/ folder). There are options in the Admin Control Panel, the modification is fully phrased and a few templates are added. An optional navbar template edit is needed to supply a link to statistics.php.

New Poll Bar Images
You have the option to use a new set of poll bar images that comes with this mod as your default poll bar images.

Please leave the url to your statistics.php in this thread for me to use as a live demo if you can.

Live Demos:
http://www.s10planet.com/forum/statistics.php
http://www.yaxleyvillage.com/statistics.php
http://jpicforum.info/statistics.php
http://www.vbulletin-ressources.com/...statistics.php
http://www.torreiravirtual.net/fairplay/statistics.php

Show Your Support

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

Comments
  #272  
Old 11-25-2007, 03:18 AM
TeknoSounds TeknoSounds is offline
 
Join Date: Nov 2006
Location: TX
Posts: 435
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works great ty muchly!!!
Reply With Quote
  #273  
Old 11-27-2007, 04:02 AM
Merrillizer Merrillizer is offline
 
Join Date: Oct 2006
Location: Hampton, NH Marshland
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks you TomasDR for the fix! I had just noticed a few minutes ago that I was getting that error when looking at registrations. I edited my statistics.php as you stated and it's back to normal.
Reply With Quote
  #274  
Old 11-27-2007, 11:55 AM
croportal's Avatar
croportal croportal is offline
 
Join Date: Oct 2005
Posts: 270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Warning: Division by zero in /statsmod/statistics_registrations.php on line 105

Warning: Division by zero in /statsmod/statistics_registrations.php on line 105

Warning: Division by zero in /statsmod/statistics_registrations.php on line 105

Warning: Division by zero in /statsmod/statistics_registrations.php on line 105

Warning: Division by zero in /statsmod/statistics_registrations.php on line 105

Warning: Division by zero in /statsmod/statistics_registrations.php on line 105

Warning: Division by zero in /statsmod/statistics_registrations.php on line 105

Warning: Division by zero in /statsmod/statistics_registrations.php on line 105

Warning: Division by zero in /statsmod/statistics_registrations.php on line 105
Reply With Quote
  #275  
Old 11-28-2007, 12:45 AM
TeknoSounds TeknoSounds is offline
 
Join Date: Nov 2006
Location: TX
Posts: 435
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

croportal, please see the posts on the previous page, theres a fix
Reply With Quote
  #276  
Old 11-28-2007, 03:40 PM
TomasDR TomasDR is offline
 
Join Date: Feb 2006
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I sent Dream a PM and I am awaiting his reply. He states his code is all reusable now but I wanted to offer him some additions I made first otherwise I will be uploading an add-on to the statistics add-on.

I added:
  • The Post Groan Hack (which compliments the Thank You hack)
  • Who has read a thread (which I feel gives a better rating for thread views, then just the vBulletin view #)
  • VB Image Hosting (a stats page similar to attachments showing: top uploaders, recent files, total files, total size, avg filesize)
Of course each add-on is turned off by default.

I would be open to adding other popular add-ons.
Reply With Quote
  #277  
Old 11-29-2007, 02:34 PM
JohnnieOO JohnnieOO is offline
 
Join Date: Sep 2007
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, I am a complete idiot, how do I make the changes suggested by ThomasDR?

Johnnie
Reply With Quote
  #278  
Old 11-30-2007, 04:34 AM
nureeves nureeves is offline
 
Join Date: Dec 2006
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So, just update the mod !!
I can't edit php file myself .. hehe

GBU All !!
Reply With Quote
  #279  
Old 12-01-2007, 03:33 PM
tekguru tekguru is offline
 
Join Date: May 2007
Posts: 366
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sounds good Thomas - can't wait!
Reply With Quote
  #280  
Old 12-03-2007, 07:25 PM
doogie1775 doogie1775 is offline
 
Join Date: Oct 2007
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TomasDR View Post
I found the problem with Monthly registrations stats.

The section in statistics.php that computes the year(s) is incorrect:
PHP Code:
  // calc year to get registrations from
  
$year $today['year'];
  if (
$howmany $today['month']) {
   
$year--;
  }
  
$year $year floor(($howmany $today['month']) / 12);
 
  
// calc month since to get registrarions from
  
$month $today['month'] - ($howmany 1);
  if (
$month 1) {
   
$month 12 + ($month 12);
  } 
The statement on line 1293 is incorrect.

PHP Code:
$year $year floor(($howmany $today['month']) / 12); 
As mentioned in other posts this just started happening. It's because the default results number is 10 & November is the 11th month. What happens is if the results # is lower then the current month the PHP function "floor" rounds down but it's rounding down a negative number and then when you subtract a negative # you are adding, so it's getting registration stats for the year 2008!

$year = $year - floor(($howmany - $today['month']) / 12)
$year = $year - floor((10 - 11) / 12)
$year = $year - floor((-1) / 12)
$year = $year - floor(-0.0833)
$year = $year - -1
$year = 2007 - -1
$year = 2008

A simple fix is to use the "intval" function rather then "floor", which just returns the integer which is what was being attempted with the "floor" function and when the result is (-0.0833) it will return 0 which will work.

PHP Code:
  // calc year to get registrations from
  
$year $today['year'];
  if (
$howmany $today['month']) {
   
$year--;
  }
   
$year $year intval(($howmany $today['month']) / 12);
 
  
// calc month since to get registrarions from
  
$month $today['month'] - ($howmany 1);
  if (
$month 1) {
   
$month 12 + ($month 12);
  } 
This worked perfectly!!!! Thanks a MILLION Tomas
Reply With Quote
  #281  
Old 12-03-2007, 07:38 PM
rwoscott rwoscott is offline
 
Join Date: Jan 2007
Location: Melbourne
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by doogie1775 View Post
This worked perfectly!!!! Thanks a MILLION Tomas
What he said TomasDR.

Thanks, such a simple fix in the end.
Reply With Quote
Reply


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 12:58 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.04816 seconds
  • Memory Usage 2,323KB
  • Queries Executed 25 (?)
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_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete