Jump to content

  •  

  • Tutorial info Visit support topic

    • Added on: Jan 20 2009 01:43 PM
    • Date Updated: Jan 20 2009 01:43 PM
    • Views: 1193
     


    * * * * *
    1 Ratings

    Force moderators to enter a "Reason to edit" a post

    Posted by Adriano Faria on Jan 20 2009 01:43 PM
    Open sources/classes/post/class_post_edit.php and find:

    		//-----------------------------------------
    		 // Reason for edit?
    		 //-----------------------------------------	 
    
    		 if ( $this->moderator['edit_post'] OR $this->ipsclass->member['g_is_supmod'] )
    		 {
    			 $this->post['post_edit_reason'] = trim( $this->ipsclass->input['post_edit_reason'] );
    		 }
    Change to:

    		//-----------------------------------------
    		// Reason for edit?
    		//-----------------------------------------
    		
    		if ( $this->moderator['edit_post'] OR $this->ipsclass->member['g_is_supmod'] )
    		{
    			if ( $_POST['post_edit_reason'] == "" )
    			{
    				$this->ipsclass->Error( array( LEVEL => 1, MSG => 'reason_for_edit') );
    			}
    			else
    			{
    				$this->post['post_edit_reason'] = trim( $this->ipsclass->input['post_edit_reason'] );
    			}
    		}
    Open cache/lang_cache/en/lang_error.php and find );. Add above:

    'reason_for_edit'			=>  "You must enter a reason for editing this post!",
    When a mod edit a post and not enter a reason for it, will show the this messag: :)

    Posted Image


    Powered by Tutorials 1.4.1 © 2012, by Michael McCune