View Full Version : How do I do this?
DrkFusion
07-01-2002, 02:36 AM
I want to make users have the name of Administrator, and be an Administrator on the Showgroups, and I also want there name to be bolded and italicized, but I do not want them to have cp access...
Please, and thankyou in advance.
Xenon
07-01-2002, 02:56 PM
first step, give him the usertitle Administraor :)
open index.php
findif ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i>$loggedin[username]</i></b>";
}
replace withif ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i>$loggedin[username]</i></b>";
} else if ($loggedin['userid'] == xx and $highlightadmin) {
$username = "<b><i>$loggedin[username]</i></b>";
}
replace xx with userid of this user...
then open online.php
find
if ($user['usergroupid'] == 6 and $highlightadmin) {
$userinfo["$key"]['username'] = "<b><i>$user[username]</i></b>";
}
and replace withif ($user['usergroupid'] == 6 and $highlightadmin) {
$userinfo["$key"]['username'] = "<b><i>$user[username]</i></b>";
} else if($user['userid'] == xx and $highlightadmin) {
$userinfo["$key"]['username'] = "<b><i>$user[username]</i></b>";
}
modifications to showgroups are a bit harder, because i'm, not really expirenced with JOIN querys, perhaps s.o. could help here
Logician
07-01-2002, 03:45 PM
you can create a special usergroup called Site Admins (or smt. like this) via Admin CP, Add Usergroup and set "Viewable on Show Groups?" to "yes", "Can access control panel" to no and put your users into this group.
Then do what Xenon suggested so as to make them bold/italic in who's online..
I must say that was one of the most unusual request I have ever read here.. :knockedout:
DrkFusion
07-02-2002, 04:12 PM
Hi, thanks,
When I look for
if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i>$loggedin[username]</i></b>"; i find it twice, which one would I find?
I'm using 2.2.6
Xenon
07-02-2002, 04:36 PM
both ;)
DrkFusion
07-02-2002, 11:31 PM
Thanks Xenon, and thanks Logicien...Software.
:) I really appreciate it.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.