Posted on: 04/18/04 08:35am
By: HawkeVIPER
My site has an 'Admin' for every section, since we cover such a broad spectrum of info... What I want to do is to make a group that gives no privs, but instructs the forum to list the user status as Site Admin... basically, I don't want to have to give all my Admins GID0 privs to do this. any ideas?
"Site Admin"
Posted on: 04/18/04 10:57am
By: Blaine
Why not make them moderators - would that not work or are they not even Forum Moderators?
"Site Admin"
Posted on: 04/18/04 11:06am
By: HawkeVIPER
*nods* they are mods, but, i don't want every one to be a mod of every forum... it would mean around 20 mods per forum, which makes it a little cluttered.
"Site Admin"
Posted on: 04/18/04 11:33am
By: Blaine
well then you have to modify code as this would not be a normal requirement.
in public/forum/include/gf_showtopic.php -- there is this piece of code used to generate the admin userlevel image.
$chkgroups = SEC_getUserGroups($showtopic['uid']);
if (in_array('1', $chkgroups)) {
$user_level = "<IMG SRC="$imgset/ranks/rank_admin.gif" ALT="{$LANG_GF01['FORUM']} {$LANG_GF01['admin']}" TITLE="{$LANG_GF01['FORUM']} {$LANG_GF01['admin']}">";
$user_levelname=$LANG_GF01['admin'];
}
Create a new group - find out the group ID and use that instead of checking for group 1 (Root). So if the new group has an ID of 20 - then it would be:
if (in_array('20', $chkgroups)) {
"Site Admin"
Posted on: 04/18/04 11:37am
By: HawkeVIPER
Thanks Blaine, you are teh god.