Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 12-25-2002, 11:52 PM
Roody Roody is offline
 
Join Date: Mar 2002
Location: Florida
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 12-26-2002, 12:18 AM
Auero Auero is offline
 
Join Date: Aug 2002
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 12-26-2002, 01:17 AM
Sebastian's Avatar
Sebastian Sebastian is offline
 
Join Date: Oct 2002
Location: America
Posts: 488
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 12-26-2002, 03:41 AM
Roody Roody is offline
 
Join Date: Mar 2002
Location: Florida
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 12-26-2002, 03:54 AM
Roody Roody is offline
 
Join Date: Mar 2002
Location: Florida
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #6  
Old 12-26-2002, 05:38 PM
Sebastian's Avatar
Sebastian Sebastian is offline
 
Join Date: Oct 2002
Location: America
Posts: 488
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 12-26-2002, 07:08 PM
Roody Roody is offline
 
Join Date: Mar 2002
Location: Florida
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice work Sebastian. I got it squared away.
Reply With Quote
  #8  
Old 12-26-2002, 07:33 PM
Roody Roody is offline
 
Join Date: Mar 2002
Location: Florida
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #9  
Old 12-26-2002, 08:17 PM
Sebastian's Avatar
Sebastian Sebastian is offline
 
Join Date: Oct 2002
Location: America
Posts: 488
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

replace the dot with:
Code:
<b><big>& middot;</big></b>
remove the space between & middot;
Reply With Quote
  #10  
Old 12-26-2002, 09:24 PM
Roody Roody is offline
 
Join Date: Mar 2002
Location: Florida
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:02 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.04208 seconds
  • Memory Usage 2,241KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (7)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete