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)
-   -   Color Coded Users Online Currently Hack (https://vborg.vbsupport.ru/showthread.php?t=54161)

wolfe 06-13-2003 09:52 AM

d00d thats what the above does in the admin option :D

assassingod 06-15-2003 12:33 AM

Quote:

06-13-03 at 12:05 AM wolfe said this in Post #5
d00d if you want to make a update for the orignal one of this hack where admins can change the usergroup colors in the admin cp that would be better than rerelasing it if you need help with the code let me know :D



I already did this but you can do it per style, which is much easier.

Killa2002 06-18-2003 03:07 AM

i did this hack, but the admin that created the forums stayed bold and italicized, its version 2.2.6

dkilburn 06-22-2003 03:37 PM

I added this but it just changed the color of the first person on the list... hmmm.... I am using v 2.2.9

Here's what I have in index.php:

PHP Code:

      if ($loggedin['usergroupid'] == and $highlightadmin) {
          
$username "<font color=brown><b><i>$loggedin[username]</i></b></font>";

      }elseif (
$loggedin['usergroupid'] == 2) {
          
$username "$loggedin[username]";

      }elseif (
$loggedin['usergroupid'] == 5) {
          
$username "<b><font color=green>$loggedin[username]</font></b>";

      } else if ((
$mod["$userid"] or $loggedin['usergroupid'] == 7) and $highlightadmin) {
          
$username "<font color=blue>$loggedin[username]</font>";

      } else {
      echo 
"";
                
$username $loggedin['username']; 


brownafroduck 12-27-2003 05:25 AM

Thanks for this! Even though I did not directly follow the hack itself, reading through it helped me to learn the syntax I needed to do minor changes on my own forum! I also applied this usergroup color thing to one of my other hacks that I use, Number of Active Users Today.

http://www.acciofirebolt.com/forum/

Scroll to the bottom to see. :)

Thanks again!

Ph0eniX 12-31-2003 03:10 PM

Quote:

Originally Posted by Legendary Kid
What this does:
Makes the users currently online box color coded upon usergroup. So admins and registered users names appear in diffrent font colors.

Querys to run: 0
Files to edit: 1 (index.php)
Templates to add: 0
Instilation time: 30 sec

Contacts for help are in the notepad

Thanks to zajako for helping me make this.

It doesn't change the color of the first person in the list. Anyone have any idea why? For now, I changed the display order so regular users are displayed before mods and admins but that's not really a solution.

Crank 02-06-2004 09:39 PM

ya im on 2.3.4 and this is not working for me either

peterska2 02-08-2004 10:50 PM

I installed it, however when I have more than on Administrator online, the first one is the only one with color. Same with the other groups..


All times are GMT. The time now is 07: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.01010 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)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
  • (8)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