Welcome to Geeklog, Anonymous Friday, March 29 2024 @ 07:37 am EDT

Geeklog Forums

"Site Admin"


Status: offline

HawkeVIPER

Forum User
Newbie
Registered: 04/18/04
Posts: 8
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?
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
Why not make them moderators - would that not work or are they not even Forum Moderators?
Geeklog components by PortalParts -- www.portalparts.com
 Quote

Status: offline

HawkeVIPER

Forum User
Newbie
Registered: 04/18/04
Posts: 8
*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.
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
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.
Text Formatted Code

        $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:
Text Formatted Code
if (in_array('20', $chkgroups)) {
 




Geeklog components by PortalParts -- www.portalparts.com
 Quote

Status: offline

HawkeVIPER

Forum User
Newbie
Registered: 04/18/04
Posts: 8
Thanks Blaine, you are teh god.
 Quote

All times are EDT. The time is now 07:37 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content