Jump to content

  •  

  • Tutorial info Visit support topic

    • Added on: Aug 17 2008 02:06 PM
    • Date Updated: Aug 20 2008 09:09 AM
    • Views: 1280
     


    * * * * *
    1 Ratings

    (HBV)Hide moderators of particular forum(s) from "The Moderating Team"

    Hide moderators from the forum(s) you choose from appearing in "The Moderating Team" page.

    Posted by herbivore on Aug 17 2008 02:06 PM
    (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()
    					$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". :)

    Powered by Tutorials 1.4.1 © 2012, by Michael McCune