SimplePortal

Support => English Support => Topic started by: OFKNV on May 02, 2009, 01:00:19 PM

Title: More Staff (Re: Staff list)
Post by: OFKNV on May 02, 2009, 01:00:19 PM
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

Hi, I did exacly what you wrote and it didnt works. What's wrong?
I would really like it to work! As fast as possible!
Here's my SPortal1-1.php. I would really appriciate it if you could fix that.

Title: More Staff (Re: Staff list)
Post by: Nathaniel on May 04, 2009, 01:41:58 AM
Try the attached file. Although your file should work, please make sure that you have members in the additional membergroups that you have listed as staff.

If that doesn't work then please post the url to your site.

And please be patient, other people have issues as well. We try to get to you as quickly as possible. :)
Title: More Staff (Re: Staff list)
Post by: OFKNV on May 04, 2009, 03:34:29 PM
Hi, that didnt seemed to work either. Here is my site: www.bfhgather.comli.com
Title: Re: More Staff (Re: Staff list)
Post by: [SiNaN] on May 31, 2009, 05:17:35 AM
See if the attached file works.
SimplePortal 2.3.8 © 2008-2024, SimplePortal