Advertisement:

Remove moderator from board

Aloittaja xB420WA, heinäkuu 15, 2014, 05:51:59 IP

« edellinen - seuraava »

xB420WA

Hello can some one tell me how to remove mod From admin EX

if admin is mod of any board in post it show his Group text and Group stars not "Moderator" or not stars but only for admins!

Arantor

You know you don't need to set up admins as moderators in each board, right?
Holder of controversial views, all of which my own.


xB420WA

Like this

I am mod of this board


and i want like this only for admins!

xB420WA

yes
Lainaus käyttäjältä: ‽ - heinäkuu 15, 2014, 05:53:43 IP
You know you don't need to set up admins as moderators in each board, right?

Arantor

So if you're the administrator, why have you explicitly listed yourself as moderator too? You really don't need to since admins can always do everything. (And it's faster not to, as well)
Holder of controversial views, all of which my own.


xB420WA

but i want just tell me how it will. ................

Arantor

The only way is to alter some of the code buried in the heart of SMF. Honestly, don't make an admin user a moderator of a board.
Holder of controversial views, all of which my own.


xB420WA

do you going to help me or not?

Arantor

I have been trying to help you by telling you the *best* route to dealing with this because SMF wasn't designed to work the way you want it to!

If you truly must insist on messing with the code because you won't take the best (faster, smarter, more reliable) solution for this problem, find this code in the middle of Sources/Load.php:
foreach ($temp_mods as $id)
{
// By popular demand, don't show admins or global moderators as moderators.
if ($user_profile[$id]['id_group'] != 1 && $user_profile[$id]['id_group'] != 2)
$user_profile[$id]['member_group'] = $row['member_group'];

// If the Moderator group has no color or stars, but their group does... don't overwrite.
if (!empty($row['stars']))
$user_profile[$id]['stars'] = $row['stars'];
if (!empty($row['member_group_color']))
$user_profile[$id]['member_group_color'] = $row['member_group_color'];
}


And change it:
foreach ($temp_mods as $id)
{
// By popular demand, don't show admins or global moderators as moderators.
if ($user_profile[$id]['id_group'] != 1 && $user_profile[$id]['id_group'] != 2)
$user_profile[$id]['member_group'] = $row['member_group'];

// If the Moderator group has no color or stars, but their group does... don't overwrite.
if (!empty($row['stars']) && $user_profile[$id]['id_group'] != 1 && $user_profile[$id]['id_group'] != 2)
$user_profile[$id]['stars'] = $row['stars'];
if (!empty($row['member_group_color']) && $user_profile[$id]['id_group'] != 1 && $user_profile[$id]['id_group'] != 2)
$user_profile[$id]['member_group_color'] = $row['member_group_color'];
}
Holder of controversial views, all of which my own.


xB420WA

in which file index.css              ?

Antechinus


Arantor

Lainaus käyttäjältä: Antechinus - heinäkuu 15, 2014, 06:30:12 IP
I can see this ending well. :D

This is precisely I didn't want to go down this road.

Lainaus käyttäjältä: Tisot - heinäkuu 15, 2014, 06:28:18 IP
in which file index.css              ?

No, it is in Sources/Load.php. It is not part of your theme and cannot be edited from anywhere in the admin panel. If you want to change it, you have to do it via your host's control panel or downloading the file to your computer to change it, only to reupload it.

Trust me, I do have some idea what I'm talking about on this point. I wouldn't have 60,000 posts here if I didn't.
Holder of controversial views, all of which my own.


xB420WA

i have four Admins groups but its removed for Default Administrator not for other!

Arantor

You didn't tell me that before, so I'm supposed to read your mind?

Good luck getting help, I'm out.
Holder of controversial views, all of which my own.


xB420WA

srsly sorry no one is here plz help me

xB420WA

omg i didn't tell me about this i put this 4 times with Member group id
if ($user_profile[$id]['id_group'] != 1 && $user_profile[$id]['id_group'] != 1)
if ($user_profile[$id]['id_group'] != 1 && $user_profile[$id]['id_group'] != 9)
if ($user_profile[$id]['id_group'] != 1 && $user_profile[$id]['id_group'] != 10)
if ($user_profile[$id]['id_group'] != 1 && $user_profile[$id]['id_group'] != 11)

now php bugged plz help me for god sake

xB420WA


Kindred

1-, that is not proper php code at all.

2- do not bump your posts like that... Especially not after only 10 minutes... That is just plain rude.

3- you wasted what little goodwill you had from the expert.

Basically... Undo what you did and follow the original instructions... Don't make an admin into a moderator.  That solves all of the problems without any code change.  Admins already have all permissions, so there is no reason to do it In The first place
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

xB420WA

ik but i have senior administrator to mod of Other main board that why i am saying

Kindred

So?

If they have admin powers, there is no need to make them a moderator. Period.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: