vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   how would you... (https://vborg.vbsupport.ru/showthread.php?t=34675)

TELEK 01-31-2002 11:28 PM

1 Attachment(s)
hello. I want to know how you would add a thing to the currently active users thing and the users online today hack that says how many admins and Mods are/came on. If you look at my attachment, I have it say how many members and how many guests are on. I would like to add another thing next to it that says how many admins and how many Mods are on. Then I would like to do the same thing for the users online today hack. Thanks in advance.

TELEK 02-03-2002 02:26 AM

hmmm... nobody knows how to do this?

Admin 02-03-2002 01:02 PM

In index.php add something like this in the loop when fetching all the online users:
Code:

if ($user['usergroupid']==5 or $user['usergroupid']==7) {
  $modsonline++;
} elseif ($user['usergroupid']==6) {
  $adminsonline++;
} else {
  $membersonline++;
}

I can't give you the exact code right now because I don't have access to any files.

TELEK 02-03-2002 04:59 PM

So, would that make it so the Mods and Super Mods aer in one thing, the admins are in another thing, and the Normal Users would be in another thing?

I don't have access to files right now either, because my webhost is doan and has been down for days... I bought a new webhost but since my other one is down I can't downlaod the database...

TELEK 02-08-2002 11:25 PM

Well, I really have no clue where to add that code. Can you tell me now?


All times are GMT. The time now is 12:35 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.01054 seconds
  • Memory Usage 1,710KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete