Customization > Blocks and Modifications

SP - Add membergroups to the staff block - Plug-In

<< < (2/6) > >>

ccbtimewiz:
Strange how SP doesn't have this by default

ZiFFeL:
Ok, i have already install the mod, but i hace 3 member groups for the staff block, and i want to put first webmaster, then admins and finally super moderator, if i put the permission on admins a super they appear mixed, but i want to appear separatley.

Is there any way to short members by name or something like that?

Regards and thank you before hand!!

Chen Zhen:

--- Quote from: ZiFFeL on December 14, 2011, 04:45:38 PM ---Ok, i have already install the mod, but i hace 3 member groups for the staff block, and i want to put first webmaster, then admins and finally super moderator, if i put the permission on admins a super they appear mixed, but i want to appear separatley.

Is there any way to short members by name or something like that?

Regards and thank you before hand!!

--- End quote ---

Make a copy of the noted file before editing it so that when I update this mod you can replace it back again beforehand.
 
File: Sources / PortalBlocks.php
Find:

--- Code: ---WHERE m.id_member IN ({array_int:staff_list})',

--- End code ---

Replace with:

--- Code: ---WHERE m.id_member IN ({array_int:staff_list}) ORDER BY mg.id_group, m.real_name',

--- End code ---

Find:

--- Code: ---ksort($staff_list);

--- End code ---

Replace with:

--- Code: ---/* ksort($staff_list); */

--- End code ---

That should put it in order of membergroup id & then alphabetical.
When I adjust it some more I will update the mod.

XGraf:
I cant uderstand you very good(Im from Croatia). I have SP 2.3.4 and I want to remove hiden admins from staff list. Is it possible?

andy:
Works well ... thanks.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version