vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Colored Online Users (https://vborg.vbsupport.ru/showthread.php?t=46996)

Roody 12-25-2002 11:52 PM

Colored Online Users
 
I'm running the hack installed from this site on my forum boards. Currently I am working on my test forums to fix an issue I am having. Here is the situation, I want to have 5 lists of people on my boards:

1. Administrator - Red
2. Asst. Administrator - Orange
3. Super Moderator - Dark Red
4. Moderator - Green
5. Member - Blue

Here is my situation. I cant seem to figure out how to make the Asst. Admin's name actually turn Orange. I installed the Colored Online Users hack and have 5 different colors listed and showing under "Current Active Users", but when I test the Asst. Admin color by signing into the Asst. Admin account its color is one of the other 4 colors.

No matter how much tweaking I have done I cant seem to figure out how to make this work. Can anyone help me?

Thanks


oh and btw, I added a 5th line of code from that hack in order to compensate for 5 different groups, but this hasnt fixed the problem. All it has done is list 5 different groups with 5 different colors, but the account that is the Asst. Admin account doesnt reflect the Orange color. Is this a problem with my settings and not my code? and if so how do i resolve this?

Auero 12-26-2002 12:18 AM

Uhm, someone correct me if I'm wrong... But since when could there be Asst. Admin's.

It's just Admins, Super Mods, Mods, Members.

Sebastian 12-26-2002 01:17 AM

in the hack find:
Code:

      } else if (($loggedin['usergroupid'] == 5) and $highlightadmin) {
              $username = "<b><font color=darkred>$loggedin[username]</font></b>"; // Color for Supermod

directly below that add:
Code:

} else if (($loggedin['usergroupid'] == X) and $highlightadmin) {
          $username = "<font color=Orange>$loggedin[username]</font>"; // Color for Asst admin

in the hack find:
Code:

      } else if (($loggedin['usergroupid'] == 5) and $highlightadmin) {
              $username = "<b><font color=darkred>$loggedin[username]</font></b>"; // Color for Supermod

directly below that add:
Code:

} else if (($loggedin['usergroupid'] == X) and $highlightadmin) {
          $username = "<font color=Orange>$loggedin[username]</font>"; // Color for Asst admin

in the hack find:
Code:

<font color="red" size="2">? Administrator</font> *
directly below that add:
Code:

<font color="Orange" size="2">? Asst Administrator</font> *
Change the X with the user group of your Asst Admins.

Roody 12-26-2002 03:41 AM

Quote:

Originally posted by Auero
Uhm, someone correct me if I'm wrong... But since when could there be Asst. Admin's.

It's just Admins, Super Mods, Mods, Members.

hence the reason im trying to set them up :)

Thanks Sebastian. Ill give that a go :)

Roody 12-26-2002 03:54 AM

hmmm okay i just realized Sebastian that you repeated the code i already did. I have no problems adding the Asst. Admin field. The problems lies in getting the person who is setup under the created Asst. Admin field to have their name show up in Orange.

Any ideas?

Sebastian 12-26-2002 05:38 PM

you have to get the GROUP ID of your "asst admins" did you do that? changed the X to that user group?

I know it works, i took that code from my hack, been using it for many months.

Roody 12-26-2002 07:08 PM

nice work Sebastian. I got it squared away. :)

Roody 12-26-2002 07:33 PM

one quick question. you put a dot in front of each title. when I attempt to apply that in my template, it doesnt stay when I choose to save it as an option. any ideas on how I can fix that?

Sebastian 12-26-2002 08:17 PM

replace the dot with:
Code:

<b><big>& middot;</big></b>
remove the space between & middot;

Roody 12-26-2002 09:24 PM

Im looking to make it more like a circle like the Current Active User section at the bottom of these forums instead of a little dot.

ideas?


All times are GMT. The time now is 02:28 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.02494 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
  • (7)bbcode_code_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
  • (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