PDA

View Full Version : New owner usergroup


Solice
12-26-2002, 09:28 PM
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:
if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i>$loggedin[username]</i></b>";php]
and add below
[php] } else if ($loggedin['usergroupid'] == XX and $highlightadmin) {
$username = "<i><b>$loggedin[username]</b></i>";
Replace XX with the group id

find
if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i>$loggedin[username]</i></b>";
again and add below:
} 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:
if ($user['usergroupid'] == 6 and $highlightadmin) {
$userinfo["$key"]['username'] = "<b><i>$user[username]</i></b>";
and add below
} 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?