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)
-   -   vbStats (https://vborg.vbsupport.ru/showthread.php?t=30751)

Bane 02-27-2003 11:05 PM

Almax - I will add a switch for this in the next version.

Kamui - This will also come in the next version, though the code should be functional now.

Hellburn - this Im not sure why its happening for you. Since that code shouldnt have been changed at all.

paratek - Yes I do dave, if you go to http://www.talkloud.net/ you will notice there is a link from the left menu to the stats. This could however go in wherever you want it to be. Maybe in the next versions documentation I will add this in.

sabret00the 02-28-2003 08:02 AM

when will the next version be getting released ;)

Hellburn 02-28-2003 09:35 AM

@Bane When i change this:

Quote:

// How Many?
$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user');
$numbermembers=number_format($numbersmembers['users']);

// Active/Non?
$snonposters=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user WHERE posts=0');
$nonposters=number_format($snonposters['users']);
$activemembers=number_format($numbermembers-$nonposters);
$activityrate=sprintf("%.2f",(100*$activemembers/$numbermembers));
with this:

Quote:

// How Many?
$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user');
$numbermembers=$numbersmembers['users'];

// Active/Non?
$snonposters=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user WHERE posts=0');
$nonposters=$snonposters['users'];
$activemembers=$numbermembers-$nonposters;
$activityrate=sprintf("%.2f",(100*$activemembers/$numbermembers));
it is working perfectly. I think the problem is "number_format".

amykhar 03-01-2003 02:17 AM

Bane, I did a clean install on 2.2.9 and active is not working for me either. I'll poke around with it a bit and see what I can find.

amykhar 03-01-2003 02:26 AM

Fixed.

in vbstats.php find:

Code:

// ########## Member Stats
        // How Many?
        $numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user');
        $numbermembers=number_format($numbersmembers['users']);

        // Active/Non?
        $snonposters=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user WHERE posts=0');
        $nonposters=number_format($snonposters['users']);
        $activemembers=number_format($numbermembers-$nonposters);
        $activityrate=sprintf("%.2f",(100*$activemembers/$numbermembers));

replace with:
Code:

        // How Many?
        $numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user');
        $numbermembers=$numbersmembers['users'];

        // Active/Non?
        $snonposters=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user WHERE posts=0');
        $nonposters=$snonposters['users'];
        $activemembers=$numbermembers-$nonposters;
        $activityrate=sprintf("%.2f",(100*$activemembers/$numbermembers));


Bane 03-01-2003 08:41 AM

Fixed in the zip in the first post, thanks amy & hellburn.

The change made was.

Find:
Code:

// ########## Member Stats
        // How Many?
        $numbersmembers=$DB_site->query_first('SELECT count(*) AS users,max(userid) AS max FROM user');
        $numbermembers=number_format($numbersmembers['users']);

        // Active/Non?
        $snonposters=$DB_site->query_first('SELECT count(*) AS users,max(userid) AS max FROM user WHERE posts=0');
        $nonposters=number_format($snonposters['users']);
        $activemembers=number_format($numbermembers-$nonposters);
        $activityrate=sprintf("%.2f",(100*$activemembers/$numbermembers));


Replace with:
Code:

// ########## Member Stats
        // How Many?
        $numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user');
        $numbermembers=$numbersmembers['users'];

        // Active/Non?
        $snonposters=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user WHERE posts=0');
        $nonposters=$snonposters['users'];
        $activemembers=$numbermembers-$nonposters;
        $activityrate=sprintf("%.2f",(100*$activemembers/$numbermembers));
       
        // Equate [Added Post 230.b to resolve Active Users issues]
        $activemembers=number_format($activemembers);
        $nonposters=number_format($nonposters);
        $numbermembers=number_format($numbermembers);


Hellburn 03-01-2003 09:40 AM

Working fine.

monstergamer 03-01-2003 10:29 PM

works fine for me :)
http://www.monstergamer.net/vb/vbstats.php
come sign up if you like

Xyphen 03-03-2003 02:00 PM

Works Perefectly Fine on vB2.3.0!! Great Work Bane :)

Bane 03-04-2003 09:03 AM

Has anyone had any troubles getting this to work with vbHome?


All times are GMT. The time now is 07:19 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.02334 seconds
  • Memory Usage 1,745KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (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