Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Quick Forum Statistics in AdminCP Details »»
Quick Forum Statistics in AdminCP
Version: 1.00, by assassingod assassingod is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 08-30-2003 Last Update: Never Installs: 13
 
No support by the author.

[HIGH]Quick Forum Statistics in AdminCP[/HIGH]

Author: assassingod

Description: This is a simple and easy way to view some basic statistics to your forum. You can find a list of 5 stats in your AdminCP.
  1. [high]User Stats[/high] - Top Poster, Top Thread Starter, Newest Member, Members Online
  2. [high]Forum Stats[/high] - Board Name, Board URL, Board Active, Total Threads, Total Posts, Total Members
  3. [high]Misc. Stats[/high] - Most Used Avatar, Total Character in posts, Total Views, Attachment Usage (in bytes)
  4. [high]Thread Stats[/high] - Most Viewed Thread, Most Replied Thread, Latest Thread
  5. [high]Database Stats[/high] - DB name, DB size, DB tables inc each table size

Credits: I would like to thank N9ne for letting me use his 'Most Avatar Used' hack - thanks buddy

Latest Version:
1.3

IF YOU USE THIS HACK DO NOT FORGOT TO CLICK THE INSTALL BUTTON - THANKS YOU

Show Your Support

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

Comments
  #12  
Old 09-01-2003, 10:22 AM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thats true, I'll probably need some BETA testers for the stats on one page. I can't test it myself since I havent got a board.
Reply With Quote
  #13  
Old 09-01-2003, 11:24 AM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<font color="red">Update</font>
Changed $bbactive status (Now says Yes/No instead of 1/0)
Credits - hellsatan
Reply With Quote
  #14  
Old 09-01-2003, 05:59 PM
Morpheus84 Morpheus84 is offline
 
Join Date: May 2003
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When you would like to add the database size statistic ?
Reply With Quote
  #15  
Old 09-01-2003, 06:09 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As soon as I figure out how to. My previous DataBase stats hack code may work, but I'll have to configure it to work with vB. Although I can have an attempt at that later tonight
Reply With Quote
  #16  
Old 09-01-2003, 09:33 PM
Hobbes's Avatar
Hobbes Hobbes is offline
 
Join Date: Dec 2002
Location: Cali
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice hack

[high]* Hobbes installs[/high]
Reply With Quote
  #17  
Old 09-01-2003, 09:35 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks

No further updates on DB Size.

Btw, if you are interested in BETA testing this hack with all that stats on one page, PM me.
Reply With Quote
  #18  
Old 09-07-2003, 06:38 AM
Sebastian's Avatar
Sebastian Sebastian is offline
 
Join Date: Oct 2002
Location: America
Posts: 488
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here is a script i made that you can use to get the overall database size, even shows you how much space each table is using, feel free to use it.

PHP Code:
$dbhost 'localhost';
$dbuser 'username';
$dbpass 'password';
$database 'database';

  
mysql_connect($dbhost,$dbuser,$dbpass) or die ('unable to connect');
  
mysql_select_db($database) or die('unable to select database');

  
$result mysql_query("show table status");

  
$total 0;  $table'';
  while(
$status mysql_fetch_array($result)) {
      
$total += ($status['Data_length'] + $status['Index_length']);
      
$tables .= $status['Name']. ' : ' .number_format(($status['Data_length']/1024), 2). "kb<br />\n";
  }

  
$total number_format(($total/1024)/10241);

  echo 
$tables ."<br />\n Total size for " $database .' (<b> '$total .' MB </b>)'
Reply With Quote
  #19  
Old 09-07-2003, 07:56 AM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Sebastian. I'll try it soon
Reply With Quote
  #20  
Old 09-07-2003, 09:46 AM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Version 1.3 out

Includes:
New DB stats - DB Name, DB size and DB tables with each table size
Reply With Quote
  #21  
Old 09-07-2003, 09:51 AM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Check 2nd post for updated screenshots
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 12:08 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04639 seconds
  • Memory Usage 2,303KB
  • 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
  • (1)bbcode_php
  • (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
  • (2)pagenav_pagelink
  • (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