Main Menu
collapse

Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

User Info

Welcome Guest.
Please log in.

Who's Online

  • Dot Guests: 1172
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]


Thanks for having an interest with our portal. If you have any requests for features, have a look at the Feature Requests board.

Add Group To Staff List Block

Started by ScottyBoy, May 29, 2010, 05:47:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ScottyBoy

How can I add the users of another group to the Staff List Block? I've already located the sp_staff() function in PortalBlocks.php, but I'm not sure what I need to add to it.

grafitus

The easiest way right now is this:
Open ./Souces/PortalBlocks.php file.
Code (Find) Select
$all_staff = array_merge($local_mods, $global_mods, $admins);
Code (Replace) Select
$all_staff = array_merge(array(288, 5, 4435), array(9, 42, 44), $local_mods, $global_mods, $admins);
array(288, 5, 4435)?>
and
array(9, 42, 44)?>
are two distinct groups. 288, 5, 4435 and 9, 42, 44 numbers of group members their IDs.
my modsI don't reply support PMs. Please use support forums.

nev3r

Can please somebody tell more about it?
first number is user id, second group id, and third is?

Nathaniel

"array(288, 5, 4435) and array(9, 42, 44) are two distinct groups. 288, 5, 4435 and 9, 42, 44 numbers of group members their IDs."

Each of the numbers is a user id.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

nev3r

Thank you for the answer.

I have few question that bothering me:)
Why do i need to put usedID in different groups?
And is there any way to just put group ID instead of adding each user manually?

AngelinaBelle

Yes.  You can do that.  You can see the example of how the block is set up.
Then, you can decide on which user group to add to the staff list, and how to set up the prefix (which is used for ordering the users).

It would be a good exercise for you to learn a little about customizing with php.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?