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 06-26-2002 09:26 PM

who is online colors..
 
Hey ,
I am new here and want to learn how to change the colors of the who is online list on some vbulletin forums i see the modorators in Red and the admins in Blue and sponsers ect... can someone please direct me on how to do this. any the help is appriciated. thax :squareeyed:

Xenon 06-26-2002 09:38 PM

open online.php

find this:
PHP Code:

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

if you have enabled the highlightadminfeature, you can just modify the changes to a username here.

dssforum 06-26-2002 09:57 PM

cant seem to find it

(if you have enabled the highlightadminfeature, you can just modify the changes to a username here.)

how do i do that

sorry i am not very expirianced and dont wanna mess the board up

dssforum 06-26-2002 10:11 PM

// Let's show the admin the location but put something false up for everyone else..
if ($bbuserinfo[usergroupid] == 6) {
$userinfo[location] = htmlspecialchars(stripslashes(replacesession($user info[location])));
$userinfo[where] = "<b>Unknown Location:</b> <a href=\"$userinfo[location]\">$userinfo[location]</a>";
} else {
// We were unable to parse the location
$userinfo[where] = "$bbtitle <a href='index.php?s=$session[sessionhash]'>Main Index</a>";;

is that it?

Boofo 06-27-2002 12:00 AM

How would you add Supermoderator to that?

Quote:

Originally posted by Xenon
open online.php

find this:
PHP Code:

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

if you have enabled the highlightadminfeature, you can just modify the changes to a username here.


Xenon 06-27-2002 12:29 AM

dssforum: its around line 627 in an unhacked online.php

boofo:
replace
PHP Code:

} else if (($mod["$key"] or $user['usergroupid'] == 5)and $highlightadmin) {
          
$userinfo["$key"]['username'] = "<b>$user[username]</b>";
        } else { 

with:
PHP Code:

} else if ($user['usergroupid'] == and $highlightadmin) {
          
$userinfo["$key"]['username'] = "<b>$user[username]</b>";
        } else if (
$mod["$key"] and $highlightadmin) {
          
$userinfo["$key"]['username'] = "<b>$user[username]</b>";
        } else { 

groupid5 is supermods..

dssforum 06-27-2002 12:34 AM

ok thankx

dssforum 06-27-2002 12:39 AM

although i have a copy of a 2.2.6 i downloaded from members i never uploaded because dont wanna have board down preety hard to use it heh

Boofo 06-27-2002 01:30 AM

Thanks! But is there a way to have Adin, Super Mods and Modertors in all of that? I guess I should have checked which group was which before I replied to the message. Sorry. :)

Quote:

Originally posted by Xenon
dssforum: its around line 627 in an unhacked online.php

boofo:
replace
PHP Code:

} else if (($mod["$key"] or $user['usergroupid'] == 5)and $highlightadmin) {
          
$userinfo["$key"]['username'] = "<b>$user[username]</b>";
        } else { 

with:
PHP Code:

} else if ($user['usergroupid'] == and $highlightadmin) {
          
$userinfo["$key"]['username'] = "<b>$user[username]</b>";
        } else if (
$mod["$key"] and $highlightadmin) {
          
$userinfo["$key"]['username'] = "<b>$user[username]</b>";
        } else { 

groupid5 is supermods..


Xenon 06-27-2002 11:38 AM

hmm, i think what i told you should be what you want. mods, admins and supermods have their own if-clause so you can give them different colors.

you can easily add other usergroups just ad before the } else { another else if clause :)

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 10:59 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.01269 seconds
  • Memory Usage 1,794KB
  • 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
  • (9)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)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