vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   New owner usergroup (https://vborg.vbsupport.ru/showthread.php?t=47014)

Solice 12-26-2002 09:28 PM

New owner usergroup
 
I added an owner user group to distinguish myself from the admin, I was wondering if someone could help me out on getting it to display my name in the who online thing specially... I dunno what file determines this...

thankies in advance for any help given ^^

DrkFusion 12-27-2002 02:04 PM

You have to edit index.php and online.php

Open index.php and find:
[php] if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i>$loggedin[username]</i></b>";php]
and add below
PHP Code:

             } else if ($loggedin['usergroupid'] == XX and $highlightadmin) {
                
$username "<i><b>$loggedin[username]</b></i>"

Replace XX with the group id

find
PHP Code:

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

again and add below:
PHP Code:

             } else if ($loggedin['usergroupid'] == XX and $highlightadmin) {
                
$username "<i><b>$loggedin[username]</b></i>"

Replace XX with the group id

NOW open online.php and find:
PHP Code:

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

and add below
PHP Code:

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

Now Modify the $username variable for each palce where it says XX to make whatever effect you wish for the username.

That should work, I havn't tested it.

Solice 12-28-2002 05:22 PM

Thank you very much... I forgot all about posting this... :(

I actually installed a the colored whos online thingy... and figured out how to edit things through it... all I need to do now is figure out why its displaying the owner group underneath all the others on the team page... ~_~

thanks again though for replying ^.^

Solice 12-29-2002 07:26 PM

ahahaha... i dont suppose anyone knows where and what I need to edit so that my owner usergroup will be able to view forums only staff are allowed to see?


All times are GMT. The time now is 08:24 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.00977 seconds
  • Memory Usage 1,727KB
  • 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
  • (5)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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