(HBV)Hide moderators of particular forum(s) from "The Moderating Team"
Thanks to m4rtin for a lot of help on this
This is especially useful if you use Member Teams and don't want people who moderate their own forum from appearing in "The Moderating Team".
(Please backup all files edited before starting)
Open ./sources/action_public/misc/stats.php
1) Find in function show_leaders()
Option i) To hide moderators from specific forum(s), replace with the following, changing F_ID to the id of the forum:
Option ii) To hide all forums in a specific category/subforum, add the following code. Replace F_ID to the id of the subforum/category.
2) Find the following in function show_leaders()
If you followed Option i) Replace with the following, replacing F_ID in the same way as above.
If you followed Option ii) Replace with the following, replacing F_ID in the same way as above.
Thats it, your done!
Now the forums you chose (option i), or the forums in the subforums you chose (option ii) will not appear in "The Moderating Team".
Thanks to m4rtin for a lot of help on this
This is especially useful if you use Member Teams and don't want people who moderate their own forum from appearing in "The Moderating Team".
(Please backup all files edited before starting)
Open ./sources/action_public/misc/stats.php
1) Find in function show_leaders()
$mod_array['member'][ $i['id'] ] = array( 'members_display_name' => $i['members_display_name'], 'email' => $i['email'], 'hide_email' => $i['hide_email'], 'location' => $i['location'], 'aim_name' => $i['aim_name'], 'icq_number' => $i['icq_number'], 'id' => $i['id'] );
Option i) To hide moderators from specific forum(s), replace with the following, changing F_ID to the id of the forum:
if ( $i['forum_id'] != F_ID) {
$mod_array['member'][ $i['id'] ] = array( 'members_display_name' => $i['members_display_name'],
'email' => $i['email'],
'hide_email' => $i['hide_email'],
'location' => $i['location'],
'aim_name' => $i['aim_name'],
'icq_number' => $i['icq_number'],
'id' => $i['id']
);
}
Now skip to step 2.Option ii) To hide all forums in a specific category/subforum, add the following code. Replace F_ID to the id of the subforum/category.
if ( $this->ipsclass->cache['forum_cache'][ $i['forum_id'] ]['parent_id'] != F_ID) {
$mod_array['member'][ $i['id'] ] = array( 'members_display_name' => $i['members_display_name'],
'email' => $i['email'],
'hide_email' => $i['hide_email'],
'location' => $i['location'],
'aim_name' => $i['aim_name'],
'icq_number' => $i['icq_number'],
'id' => $i['id']
);
}
2) Find the following in function show_leaders()
$mod_array['forums'][ $i['id'] ][] = array( $i['forum_id'] , $this->ipsclass->forums->forum_by_id[ $i['forum_id'] ]['name'] );
If you followed Option i) Replace with the following, replacing F_ID in the same way as above.
if ( $i['forum_id'] != F_ID) {
$mod_array['forums'][ $i['id'] ][] = array( $i['forum_id'] , $this->ipsclass->forums->forum_by_id[ $i['forum_id'] ]['name'] );
}
If you followed Option ii) Replace with the following, replacing F_ID in the same way as above.
if ( $this->ipsclass->cache['forum_cache'][ $i['forum_id'] ]['parent_id'] != F_ID) {
$mod_array['forums'][ $i['id'] ][] = array( $i['forum_id'] , $this->ipsclass->forums->forum_by_id[ $i['forum_id'] ]['name'] );
}
Thats it, your done!
Now the forums you chose (option i), or the forums in the subforums you chose (option ii) will not appear in "The Moderating Team".













