SimplePortal

Support => Install and Upgrade => Topic started by: Old Fossil on April 15, 2009, 08:15:18 PM

Title: Staff list
Post by: Old Fossil on April 15, 2009, 08:15:18 PM
How do I add Staff to the list?

Is there a minimum number?
Title: Re: Staff list
Post by: cme1st2302 on April 15, 2009, 11:00:34 PM
The admin should show up by default.  Also any moderators should show up.  Do you have any moderators?

Chris
Title: Re: Staff list
Post by: Old Fossil on April 15, 2009, 11:01:37 PM
At the moment we have seven staff.
Title: Re: Staff list
Post by: Eliana Tamerin on April 15, 2009, 11:34:32 PM
Not sure whether this looks at Moderation privileges or group IDs, being ID 1 and 2 for groups by default (Admin and Global Mod).

What kind of privileges do your staff have? And what groups are they in, are they in group id #2 at all?
Title: Re: Staff list
Post by: Old Fossil on April 15, 2009, 11:41:43 PM
The staff numbers are

Amin x 4

Global Mod x 1

Mod x 1 ( at present)

Reader x 1 ( at present)

Title: Re: Staff list
Post by: Eliana Tamerin on April 16, 2009, 12:00:18 AM
And who shows up on the Staff block?
Title: Re: Staff list
Post by: Old Fossil on April 16, 2009, 01:47:47 AM
Only the 4 admins and the global moderator
Title: Re: Staff list
Post by: [SiNaN] on April 16, 2009, 03:35:34 AM
If they are local moderators (board moderators) you have to check the option "Display local moderators".
Title: Re: Staff list
Post by: Old Fossil on April 16, 2009, 07:28:06 PM
Can only see Disable can't see display.
Title: Re: Staff list
Post by: Eliana Tamerin on April 16, 2009, 08:39:01 PM
Attached an example of how the block should look. Notice the "Disable Local Moderators" option.

Taken from our Demo (http://demo.simpleportal.net) site, feel free to look yourself.
Title: Re: Staff list
Post by: Old Fossil on April 16, 2009, 08:58:40 PM
So only the admins and global mods are on the list?
Title: Re: Staff list
Post by: Nathaniel on April 16, 2009, 10:10:03 PM
The list will only show 'Local Moderators' (if you haven' disabled them), 'Admin' and 'Global Moderators', although it should really have an option to display members from other membergroups, not sure why it doesn't.

I have added that as a feature request to the ProjectTracker.

In the meantime, I can give you some edits so that you can choose additional membergroups to be shown on that list, if you tell me which version of SMF you are using.
Title: Re: Staff list
Post by: Old Fossil on April 16, 2009, 11:08:43 PM
The version we use is 1.1.8
Title: Re: Staff list
Post by: [SiNaN] on April 17, 2009, 02:15:37 AM
Which permissions does "Mod" and "Reader" groups have? Do you see them listed in Admin CP >> Generate Reports >> Staff?
Title: Re: Staff list
Post by: Old Fossil on April 17, 2009, 02:23:40 AM
Is there a way I can add the remaining staff to the list?

Will be happier once I get a bit more technical.   :)

Have learnt so much about forums in the last month I am surprised my head hasn't exploded.
Title: Re: Staff list
Post by: Eliana Tamerin on April 17, 2009, 02:35:27 AM
The list will only show 'Local Moderators' (if you haven' disabled them), 'Admin' and 'Global Moderators', although it should really have an option to display members from other membergroups, not sure why it doesn't.

I have added that as a feature request to the ProjectTracker.

In the meantime, I can give you some edits so that you can choose additional membergroups to be shown on that list, if you tell me which version of SMF you are using.

L seems to be willing to help you.
Title: Re: Staff list
Post by: Nathaniel on April 17, 2009, 02:37:07 AM
This edit for your 'SPortal1-1.php' file will allow you to add additional staff membergroups.

Find this code:
Code: [Select]
$all_staff = array_merge($local_mods, $global_mods, $admins);
Replace with this code:
Code: [Select]
$staff_membergroups = array(1, 2, 3);
$request = db_query("
SELECT ID_MEMBER
FROM {$db_prefix}members
WHERE ID_GROUP IN (" . implode(',', $staff_membergroups) . ")", __FILE__, __LINE__);
$addtional_staff = array();
while ($row = mysql_fetch_assoc($request))
$addtional_staff[$row['ID_MEMBER']] = $row['ID_MEMBER'];
mysql_free_result($request);

$all_staff = array_merge($local_mods, $global_mods, $admins, $addtional_staff);

You will need to change the '1, 2, 3' part, to a list of membergroup IDs. You can find out the ID of a group, by looking at the url when you are viewing that membergroup in the Admin panel under 'Membergroups.'

Sample URL (membergroup id is 9):
http://localhost/index.php?action=membergroups;sa=members;group=9
Title: Re: Staff list
Post by: Old Fossil on April 17, 2009, 02:49:05 AM
Sorry to ask but although I found the file how do I replace the text?
Title: Re: Staff list
Post by: Eliana Tamerin on April 17, 2009, 02:53:18 AM
Download it to your computer, open it in Notepad or Dreamweaver or something like that (NEVER Word, Wordpad, etc), and edit it like a normal text document. Save it when done and re-upload it to your site, overwriting the existing file.
SimplePortal 2.3.8 © 2008-2024, SimplePortal