vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   who is online colors.. (https://vborg.vbsupport.ru/showthread.php?t=40322)

dssforum 08-24-2002 10:43 PM

Boofo

I saw on your forums u had Super mods in red and mods in another color and admins in another can u give me the code to add to have that ?

Boofo 08-25-2002 02:50 AM

Ahhh...so you were the one sneaking around there. :) Did you see all of the cob-webs on the forum?

I can give you the code and where I put it, but I don't remember the original code. It should be pretty easy to find though.

In the online.php, find this:

PHP Code:

$count 0;
  while (
$user $DB_site->fetch_array($allusers)) {
    if (
$user['userid']) { // Reg'd Member
      
$key $user['userid'];
      if ((
$userinfo["$key"]['lastactivity'] < $user['lastactivity']) or !$userinfo["$key"]['lastactivity']) {
        
$userinfo["$key"]['realname'] = $user['username'];
        if (
$user['usergroupid'] == and $highlightadmin) { 

And this is what I have below it:

PHP Code:

 $userinfo["$key"]['username'] = "<b><i><font color=\"red\">$user[username]</i></b></font>";
        } else if ((
$mod["$key"] or $user['usergroupid'] == 5)and $highlightadmin) {
          
$userinfo["$key"]['username'] = "<b><font color=\"darkred\">$user[username]</b></font>";
        } else {
          
$userinfo["$key"]['username'] = "<font color=\"blue\">$user[username]</font>";
        } 

Hope that helps. :)

If you need it in any other places, just let me know.

Quote:

Originally posted by dssforum
Boofo

I saw on your forums u had Super mods in red and mods in another color and admins in another can u give me the code to add to have that ?


Boofo 08-25-2002 03:01 AM

Xenon, will the following also work or do I have one too many $mod["$key"] in it?

PHP Code:

if ($user['usergroupid'] == and $highlightadmin) {
          
$userinfo["$key"]['username'] = "<b><i><font color=\"red\">$user[username]</i></b></font>";
        } else if ((
$mod["$key"] or $user['usergroupid'] == 5)and $highlightadmin) {
          
$userinfo["$key"]['username'] = "<b><font color=\"darkred\">$user[username]</b></font>";
        } else if ((
$mod["$key"] or $user['usergroupid'] == 7)and $highlightadmin) {
          
$userinfo["$key"]['username'] = "<b><font color=\"green\">$user[username]</b></font>";
        } else {
          
$userinfo["$key"]['username'] = "<font color=\"blue\">$user[username]</font>";
        } 



All times are GMT. The time now is 12:57 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.01046 seconds
  • Memory Usage 1,743KB
  • 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
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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