SimplePortal
Support => English Support => Topic started by: kim on January 18, 2017, 11:36:31 AM
-
I did a search of the forum but couldn't find my exact problem.
I have noticed recently that my staff forum block only lists admins now. It used to list global mods too. I have 3 global mods.
Not sure why this is happening, can anyone help please?
-
Within the staff block settings, make sure "Disable Local Moderators" is unchecked.
-
Within the staff block settings, make sure "Disable Local Moderators" is unchecked.
Thanks, but already checked that. It's not ticked
-
Do you have more than 10 moderators?
ref.
http://simpleportal.net/index.php?topic=12770.msg64817#msg64817
The block appears to be hard coded to not list any moderators if the moderator user count is greater than 10.
Atm I do not know why Sinan did not code it to max out instead of adding 0 moderators when this occurs.
If the moderator count is the issue then open file: ../Sources/PortalBlocks.php
find:
if (count($local_mods) > 10)
.. and replace the number 10 with ie. 20
Please make sure not to use an editor such as notepad because it will mess up some of the character codes when saving (ie. line breaks). You must use a proper PHP editor such as notepad++
ref. https://notepad-plus-plus.org/
Regards.
-
I can't see that being the problem, we only have 5 admins and 3 global mods. It's only listing the 5 admins. It did used to show mods. I'm not sure when it happened but it could be from last SMF update? I'll check the coding anyway, thanks
Edit: Line says........
if (count($local_mods) > 10)
So the coding should be fine for 3 mods. Can't understand what's wrong :|
-
I looked closer at the code that adds various users to that array.
It seems that Sinan opted to use the permission for "Moderate board" under the General header to determine if a user was a "Global Moderator" or the like.
Perhaps you had previously given your Global Moderator's that permission but since denied that permission?
Can you test this hypothesis by editing your Global Moderator's permission set and enable "Moderate board" which is under the General header? After doing this check your working staff block to see if the global mod's show.
If it works & you think that permission is ok for that user group then this may be solved.
Else if it works but you want to use another method to determine Global Moderator then let me know & I will give you a possible edit.
Else if it does not work then I will come up with something else.
Regards.
-
That worked, thank you very much :D
-
I thought you may want to know that on my forum we have 3 founders, 2 admins and 4 mods.
The admins and mods are elected every 6-12 months.
The staff list the works well for me, without modification.