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

Zalbard 01-03-2003 05:07 PM

Edit: I put a brea kin on accident, sorry! Never mind this post please!

digitalJE5U5 01-28-2003 04:27 AM

Its a nice idea man. I really appreciate the effort, but I just wish there was an easier way to change the colors. Sucks having to edit index.php and reup it every time you try and tweak the colors to match skin.

/DJ

Blue Moose Aaron 01-30-2003 12:02 AM

I have different styles on my board and on one the active users looks good but the other it's really hard to read. How can I modify it for both styles?

digitalJE5U5 01-30-2003 12:32 PM

You can't. If the coding was done in templates, yes. But the colors are hard-coded into the php.
:(

Blue Moose Aaron 01-30-2003 08:09 PM

Son of a...there has to be a way to use CSS

Graphics 02-10-2003 05:04 AM

This hack works on 2.2.9 ;)
Thnx for the great hack :)

Mr. Brian 02-22-2003 01:28 PM

It works fine with all other colured groups, but just encountered problems with my S.Mod as it shown in green instead of darkred.

Hope someone can help.

Thanx

timo_copts 03-20-2003 10:12 AM

Quote:

11-05-01 at 11:47 AM Afterburner said this in Post #1
Code:

With this hack you have colored usernames of: - Administratoren (ID:6)
                                              - Supermoderatoren (ID:5)
                                              - Moderatoren (ID:7) und
                                              - registred Members (ID:2)
in your Onlinelist on the mainpage.
You have to enable "Highlight Admin" in your CP, if not all is shown like the registrated members (blue)

Orginal settings of this hack:

Administrator:  "red" 
Supermoderator:  "darkred"
Moderator:      "green"
Member:          "blue"

You can change the color in the Index.php(3) (there is a remark)



it will work with vb 2.3 ????

timo_copts 03-20-2003 04:30 PM

i do it in 2.30
all work good but Moderator its show blue names?????? :( :(
what errer ??in it
Quote:

if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i><font color=red>$loggedin[username]</font></i></b>"; // Color for Admin
} else if (($loggedin['usergroupid'] == 5) and $highlightadmin) {
$username = "<b><font color=darkred>$loggedin[username]</font></b>"; // Color for Supermod
} else if (($mod["$userid"]) and $highlightadmin) {
$username = "<b><font color=green>$loggedin[username]</font></b>"; // Color for Mod
} else {
$username = "<font color=blue>$loggedin[username]</font>"; // Color for normal Member or "Highlight Admin" is turned of
}
eval("\$activeusers = \"".gettemplate('forumhome_loggedinuser')."\";" );
}

while ($loggedin=$DB_site->fetch_array($loggedins)) {
$numberregistered++;
$invisibleuser = '';
if ($loggedin['invisible']==1 and $bbuserinfo['usergroupid']!=6) {
continue;
}
$numbervisible++;
$userid=$loggedin['userid'];
if ($loggedin['invisible'] == 1) { // Invisible User but show to Admin
$invisibleuser = '*';
}
if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i><font color=red>$loggedin[username]</font></i></b>"; // Color for Admin
} else if (($loggedin['usergroupid'] == 5) and $highlightadmin) {
$username = "<b><font color=darkred>$loggedin[username]</font></b>"; // Color for Supermod
} else if (($mod["$userid"]) and $highlightadmin) {
$username = "<b><font color=green>$loggedin[username]</font></b>"; // Color for Mod
} else {
$username = "<font color=blue>$loggedin[username]</font>"; // Color for normal Member or "Highlight Admin" is turned of
}

BlackDeath 03-22-2003 09:35 PM

i don't know if this has been said yet, but the color you have for mods is only when that person is a local mod and not part of the user group mod. below is a change i made to it so both mods of specific forums and user group mods show the same color. this will also explain how to add different user groups if you look at the original code and compare it to mine.

if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i><font color=red>$loggedin[username]</font></i></b>"; // Color for Admin
} else if (($loggedin['usergroupid'] == 5) and $highlightadmin) {
$username = "<b><font color=lightblue>$loggedin[username]</font></b>"; // Color for Supermod
} else if (($mod["$userid"]) and $highlightadmin) {
$username = "<b><font color=yellow>$loggedin[username]</font></b>"; // Color for Mod Local
} else if (($loggedin['usergroupid'] == 7) and $highlightadmin) {
$username = "<b><font color=purple>$loggedin[username]</font></b>"; // Color for Mod Group
} else {
$username = "<font color=lightgrey>$loggedin[username]</font>"; // Color for normal Member or "Highlight Admin" is turned of
}
// Afterburners Colored OnlineUserHack End


All times are GMT. The time now is 12:58 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.01256 seconds
  • Memory Usage 1,748KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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