vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Quick Forum Statistics in AdminCP (https://vborg.vbsupport.ru/showthread.php?t=56658)

assassingod 09-01-2003 10:22 AM

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.

assassingod 09-01-2003 11:24 AM

<font color="red">Update</font>
Changed $bbactive status (Now says Yes/No instead of 1/0)
Credits - hellsatan

Morpheus84 09-01-2003 05:59 PM

When you would like to add the database size statistic ?

assassingod 09-01-2003 06:09 PM

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:)

Hobbes 09-01-2003 09:33 PM

nice hack :D

[high]* Hobbes installs[/high]

assassingod 09-01-2003 09:35 PM

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.

Sebastian 09-07-2003 06:38 AM

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>)'


assassingod 09-07-2003 07:56 AM

Thanks Sebastian. I'll try it soon:)

assassingod 09-07-2003 09:46 AM

Version 1.3 out

Includes:
New DB stats - DB Name, DB size and DB tables with each table size

assassingod 09-07-2003 09:51 AM

Check 2nd post for updated screenshots


All times are GMT. The time now is 06:16 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.01095 seconds
  • Memory Usage 1,735KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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