Ehmm Posting.php richtig angepasst ! ich habe da keine änderung gemacht müsste ich dort was eintragen damit sie funktioniert?
Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------
#
posting.php
#
#-----[ FIND ]------------------------------------------
#
$post_data = array();
switch ( $mode )
{
case 'newtopic':
#
#-----[ AFTER, ADD ]------------------------------------------
#
$newtopic = "1";
#
#-----[ FIND ]------------------------------------------
#
$select_sql = (!$submit) ? ', t.topic_title, p.enable_bbcode, p.enable_html, p.enable_smilies, p.enable_sig, p.post_username, pt.post_subject, pt.post_text, pt.bbcode_uid, u.username, u.user_id, u.user_sig, u.user_sig_bbcode_uid' : '';
#
#-----[ IN-LINE FIND ]------------------------------------------
#
pt.post_subject
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, pt.post_thumb
#
#-----[ FIND ]------------------------------------------
#
$subject = ( !empty($HTTP_POST_VARS['subject']) ) ? trim($HTTP_POST_VARS['subject']) : '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$thumb = ( !empty($HTTP_POST_VARS['thumb']) ) ? trim($HTTP_POST_VARS['thumb']) : '';
#
#-----[ FIND ]------------------------------------------
#
prepare_post($mode, $post_data, $bbcode_on, $html_on, $smilies_on, $error_msg, $username, $bbcode_uid, $subject, $message, $poll_title, $poll_options, $poll_length);
#
#-----[ IN-LINE FIND ]------------------------------------------
#
$subject
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, $thumb
#
#-----[ FIND ]------------------------------------------
#
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);
#
#-----[ IN-LINE FIND ]------------------------------------------
#
str_replace("\'", "''", $subject)
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, str_replace("\'", "''", $thumb)
#
#-----[ FIND ]------------------------------------------
#
$subject = ( !empty($HTTP_POST_VARS['subject']) ) ? htmlspecialchars(trim(stripslashes($HTTP_POST_VARS['subject']))) : '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$thumb = ( !empty($HTTP_POST_VARS['thumb']) ) ? htmlspecialchars(trim(stripslashes($HTTP_POST_VARS['thumb']))) : '';
#
#-----[ FIND ]------------------------------------------
#
$subject = '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$thumb = '';
#
#-----[ FIND ]------------------------------------------
#
$subject = '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$thumb = '';
#
#-----[ FIND ]------------------------------------------
#
$subject = ( $post_data['first_post'] ) ? $post_info['topic_title'] : $post_info['post_subject'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$thumb = $post_info['post_thumb'];
#
#-----[ FIND ]------------------------------------------
#
$subject = ( !empty($subject) ) ? preg_replace($orig_word, $replace_word, $subject) : '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$thumb = ( !empty($thumb) ) ? preg_replace($orig_word, $replace_word, $thumb) : '';
#
#-----[ FIND ]------------------------------------------
#
$template->assign_block_vars('switch_not_privmsg', array());
#
#-----[ AFTER, ADD ]------------------------------------------
#
$template->assign_block_vars('switch_not_privmsg', array());
if (($post_id == $post_info['topic_first_post_id']) || ($newtopic == '1'))
{
if ($post_data['first_post'] != '0')
{
$template->assign_block_vars('newtopic', array());
}
}
#
#-----[ FIND ]------------------------------------------
#
'SUBJECT' => $subject,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'THUMB' => $thumb,
'L_THUMB' => $lang['Portal_thumb'],
'L_THUMB_EXPL' => $lang['Portal_thumb_expl'],