Seite 2 von 2

Verfasst: 16.08.2007 12:20
von djchrisnet
Nach vielem Suchen meinerseits habe ich immernoch keinen erfolg bei der beseitigung des Problems gefunden!

Ich denke allerdings, das es am

log all action mod liegt!

Kennt vll jemand das problem oder kann den fehler finden, warum der edit reason text nicht übertragen wird???

Log Action Mod Problem bei Edit Reason und/ oder Edit Notes

Verfasst: 25.10.2008 15:18
von Lago
djchrisnet hat geschrieben:Nach vielem Suchen meinerseits habe ich immernoch keinen erfolg bei der beseitigung des Problems gefunden!

Ich denke allerdings, das es am

log all action mod liegt!

Kennt vll jemand das problem oder kann den fehler finden, warum der edit reason text nicht übertragen wird???
hi djchrisnet,
das liegt daran, dass hier in diesem [Log-Actions]-Abschnitt der Code nicht entsprechend dem [Edit-Reason]-Mod angepasst ist.

Nach diesen Änderungen funzte es wieder wie vorher.

Ersetze mal diesen Abschnitt in der posting.php:

Code: Alles auswählen

// Log Actions Start
$username = ( !empty($HTTP_POST_VARS['username']) ) ? $HTTP_POST_VARS['username'] : '';
$subject = ( !empty($HTTP_POST_VARS['subject']) ) ? trim($HTTP_POST_VARS['subject']) : '';
$message = ( !empty($HTTP_POST_VARS['message']) ) ? $HTTP_POST_VARS['message'] : '';
$poll_title = ( isset($HTTP_POST_VARS['poll_title']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_title'] : '';
$poll_options = ( isset($HTTP_POST_VARS['poll_option_text']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_option_text'] : '';
$poll_length = ( isset($HTTP_POST_VARS['poll_length']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_length'] : '';
$bbcode_uid = '';

prepare_post($mode, $post_data, $bbcode_on, $html_on, $smilies_on, $error_msg, $username, $bbcode_uid, $subject, $message, $poll_title, $poll_options, $poll_length);

if ( $error_msg == '' )
{
   $topic_type = ( $topic_type != $post_data['topic_type'] && !$is_auth['auth_sticky'] && !$is_auth['auth_announce'] ) ? $post_data['topic_type'] : $topic_type;

   submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("\'", "''", $username), str_replace("\'", "''", $subject), str_replace("\'", "''", $message), str_replace("\'", "''", $poll_title), $poll_options, $poll_length);
      
   // Log actions MOD Start
   if ( $is_auth['auth_mod'] )
   {
      log_action('edit', $topic_id, $userdata['user_id'], $userdata['username']);
   }
   // Log actions MOD End
}
break;
// Log Action End 

komplett hiernit:

Code: Alles auswählen

 
// Log Actions Start
$username = ( !empty($HTTP_POST_VARS['username']) ) ? $HTTP_POST_VARS['username'] : '';
$subject = ( !empty($HTTP_POST_VARS['subject']) ) ? trim($HTTP_POST_VARS['subject']) : '';
$message = ( !empty($HTTP_POST_VARS['message']) ) ? $HTTP_POST_VARS['message'] : '';
$poll_title = ( isset($HTTP_POST_VARS['poll_title']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_title'] : '';
$poll_options = ( isset($HTTP_POST_VARS['poll_option_text']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_option_text'] : '';
$poll_length = ( isset($HTTP_POST_VARS['poll_length']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_length'] : '';
$bbcode_uid = '';

    $edit_reason = ( !empty($HTTP_POST_VARS['edit_reason']) ) ? trim($HTTP_POST_VARS['edit_reason']) : '';
    $post_data['edit_reason'] = $edit_reason;


prepare_post($mode, $post_data, $bbcode_on, $html_on, $smilies_on, $error_msg, $username, $bbcode_uid, $subject, $message, $poll_title, $poll_options, $poll_length, $edit_reason);

if ( $error_msg == '' )
{
	$topic_type = ( $topic_type != $post_data['topic_type'] && !$is_auth['auth_sticky'] && !$is_auth['auth_announce'] ) ? $post_data['topic_type'] : $topic_type;

	submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("\'", "''", $username), str_replace("\'", "''", $subject), str_replace("\'", "''", $message), str_replace("\'", "''", $poll_title), $poll_options, $poll_length, $edit_reason);

	// Log actions MOD Start
	if ( $is_auth['auth_mod'] )
	{
		log_action('edit', $topic_id, $userdata['user_id'], $userdata['username']);
	}
	// Log actions MOD End
}
break;
// Log Action End

wer zusätzlich auch den Mod [Edit Notes] installiert hat, muss es komplett damit ersetzen:

Code: Alles auswählen


// Log Actions Start
$username = ( !empty($HTTP_POST_VARS['username']) ) ? $HTTP_POST_VARS['username'] : '';
$subject = ( !empty($HTTP_POST_VARS['subject']) ) ? trim($HTTP_POST_VARS['subject']) : '';
$message = ( !empty($HTTP_POST_VARS['message']) ) ? $HTTP_POST_VARS['message'] : '';
$poll_title = ( isset($HTTP_POST_VARS['poll_title']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_title'] : '';
$poll_options = ( isset($HTTP_POST_VARS['poll_option_text']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_option_text'] : '';
$poll_length = ( isset($HTTP_POST_VARS['poll_length']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_length'] : '';
$bbcode_uid = '';

			$edit_reason = ( !empty($HTTP_POST_VARS['edit_reason']) ) ? trim($HTTP_POST_VARS['edit_reason']) : '';
			$post_data['edit_reason'] = $edit_reason;


prepare_post($mode, $post_data, $bbcode_on, $html_on, $smilies_on, $error_msg, $username, $bbcode_uid, $subject, $message, $poll_title, $poll_options, $poll_length, $edit_notes, $edit_reason);

if ( $error_msg == '' )
{
	$topic_type = ( $topic_type != $post_data['topic_type'] && !$is_auth['auth_sticky'] && !$is_auth['auth_announce'] ) ? $post_data['topic_type'] : $topic_type;

	submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("\'", "''", $username), str_replace("\'", "''", $subject), str_replace("\'", "''", $message), str_replace("\'", "''", $poll_title), $poll_options, $poll_length, $edit_notes, $edit_reason);

	// Log actions MOD Start
	if ( $is_auth['auth_mod'] )
	{
		log_action('edit', $topic_id, $userdata['user_id'], $userdata['username']);
	}
	// Log actions MOD End
}
break;
// Log Action End

Verfasst: 25.10.2008 16:16
von djchrisnet
Danke für deine Mühe, ich muss dir leider sagen, dass ich vor 13 Monaten auf phpBB3 umgestiegen bin und der code sehr lange nicht mehr existiert. Selbst der Webspace nicht xD =)

Nichts für ungut