SimplePortal
Support => Install and Upgrade => Topic started by: Old Fossil on April 15, 2009, 08:15:18 PM
-
How do I add Staff to the list?
Is there a minimum number?
-
The admin should show up by default. Also any moderators should show up. Do you have any moderators?
Chris
-
At the moment we have seven staff.
-
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?
-
The staff numbers are
Amin x 4
Global Mod x 1
Mod x 1 ( at present)
Reader x 1 ( at present)
-
And who shows up on the Staff block?
-
Only the 4 admins and the global moderator
-
If they are local moderators (board moderators) you have to check the option "Display local moderators".
-
Can only see Disable can't see display.
-
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.
-
So only the admins and global mods are on the list?
-
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.
-
The version we use is 1.1.8
-
Which permissions does "Mod" and "Reader" groups have? Do you see them listed in Admin CP >> Generate Reports >> Staff?
-
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.
-
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.
-
This edit for your 'SPortal1-1.php' file will allow you to add additional staff membergroups.
Find this code:
$all_staff = array_merge($local_mods, $global_mods, $admins);
Replace with this code:
$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
-
Sorry to ask but although I found the file how do I replace the text?
-
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.