Seite 1 von 1

CH Mod Frage zu Posting.php

Verfasst: 17.04.2007 09:42
von Tari_Narmolanya
Hallo zusammen,

ich versuche gerade den Mod einzubauen, und hänge an folgender Stelle:

Code: Alles auswählen

#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search: the full line is longer
#
				submit_post(
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : categories hierarchy ------------------------------------------------
//-- delete
/*
#
#-----[ AFTER, ADD ]------------------------------------------
#
*/
//-- add
				$input_data = array(
					'topic_type' => $topic_type,
					'bbcode_on' => $bbcode_on,
					'html_on' => $html_on,
					'smilies_on' => $smilies_on,
					'attach_sig' => $attach_sig,
					'bbcode_uid' => $bbcode_uid,
					'post_username' => stripslashes($username),
					'post_subject' => stripslashes($subject),
					'post_message' => stripslashes($message),
					'poll_title' => stripslashes($poll_title),
					'poll_options' => $poll_options,
					'poll_length' => $poll_length,
					'post_icon' => $post_icon,
					'topic_duration' => $topic_duration,
					'calendar_time' => $calendar_time,
					'calendar_duration' => $calendar_duration,
					'sub_title' => $sub_title,
					'topic_sub_type' => $topic_sub_type,
				);
				submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $input_data);
				unset($input_data);
//-- fin mod : categories hierarchy --------------------------------------------
Das Before Add ist klar, aber das After Add nicht ... setze ich das hinter die

Code: Alles auswählen

submit_post(
oder hinter die komplette Zeile, wenn ja, wo endet sie genau :o

Verfasst: 17.04.2007 10:34
von Elvis
dann verlinke mal deine komplette Datei wo es geändert werden soll.

Eine PHP-Datei zum Download bereitstellen

Verfasst: 17.04.2007 10:39
von Tari_Narmolanya
Huhu :)

Bitte schön :)
Posting.txt

Verfasst: 17.04.2007 10:45
von Elvis
so müßte das aussehen

Code: Alles auswählen

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;


//-- mod : categories hierarchy ------------------------------------------------
//-- delete
/* 
				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);
*/
//-- add
            $input_data = array(
               'topic_type' => $topic_type,
               'bbcode_on' => $bbcode_on,
               'html_on' => $html_on,
               'smilies_on' => $smilies_on,
               'attach_sig' => $attach_sig,
               'bbcode_uid' => $bbcode_uid,
               'post_username' => stripslashes($username),
               'post_subject' => stripslashes($subject),
               'post_message' => stripslashes($message),
               'poll_title' => stripslashes($poll_title),
               'poll_options' => $poll_options,
               'poll_length' => $poll_length,
               'post_icon' => $post_icon,
               'topic_duration' => $topic_duration,
               'calendar_time' => $calendar_time,
               'calendar_duration' => $calendar_duration,
               'sub_title' => $sub_title,
               'topic_sub_type' => $topic_sub_type,
            );
            submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $input_data);
            unset($input_data);
//-- fin mod : categories hierarchy --------------------------------------------				
			}
			break;

		case 'delete':
		case 'poll_delete':
oder ersetzte einfach alles von

Code: Alles auswählen

if ( $error_msg == '' )
bis

Code: Alles auswählen

case 'poll_delete':
mit meinem Code.
Das ist die komplette Zeile

Code: Alles auswählen

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);

Verfasst: 17.04.2007 10:48
von Tari_Narmolanya
Prima, danke dir Elvis :)
Dann hoffen wir mal, das ich sonst keine Fehler reinhaue :)

Verfasst: 17.04.2007 12:08
von Elvis
Dann hoffen wir mal, das ich sonst keine Fehler reinhaue
nimm dir Zeit und Ruhe dann klappt das auch ;)