vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   small request plz (https://vborg.vbsupport.ru/showthread.php?t=13000)

SilverBoy 04-03-2001 11:51 PM

I wanna add numer of users of all titles to my index page, so can some one help me to do that ;) thx.
ex:
1 adminstrator
8 moderators
165 joniour member
78 member
15 senior member

and I wish I can add it too other php page too.
thx for help.

Swoosh 04-04-2001 12:59 PM

Good suggestion, SilverBoy! :)

Would certainly make a useful small hack for lots of vBulletin users out there.

Could someone please create this hack? Thank you! :D

SilverBoy 04-05-2001 02:41 PM

I want it plz make it to me.

PeF 04-05-2001 03:59 PM

I'll give it a try. :)

SilverBoy 04-05-2001 08:38 PM

u are gentel man. ;)

Swoosh 04-06-2001 04:23 AM

Good luck with the hack, PeF! :)

SilverBoy 04-08-2001 10:21 PM

Iam still waiting ?????? :D

Kier 04-09-2001 01:58 AM

Add this code to the page you want to show the user totals on:
PHP Code:

    $users $DB_site->query("SELECT usergroup.title, COUNT(userid) AS users
    FROM usergroup
    LEFT JOIN user USING(usergroupid)
    GROUP BY usergroup.usergroupid"
);
    while (
$user $DB_site->fetch_array($users)) {
        
$usertotals .= "$user[title] ($user[users])<br>";
    } 

...and then add $usertotals to an appropriate template.

Easy peasy :)

PeF 04-09-2001 06:21 AM

I'm late. As usual. :D

SilverBoy 04-09-2001 10:43 AM

I will try it and replay later, thx ;)


All times are GMT. The time now is 02:40 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.01020 seconds
  • Memory Usage 1,724KB
  • 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