Ich hab gerade mal geschaut, was man bearbeiten muss, damit bei einer Antwort auf ein Thema die Überschrift (dann die vom Topic) automatisch eingefügt wird, wenn sie leer ist. Das sind im wesentlichen 3 Zeilen in zwei Dateien:
Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------
#
posting.php
#
#-----[ 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);
#
#-----[ REPLACE WITH ]------------------------------------------
#
prepare_post($mode, $post_data, $bbcode_on, $html_on, $smilies_on, $error_msg, $username, $bbcode_uid, $subject, $message, $poll_title, $poll_options, $poll_length, $post_info['topic_title']);
#
#-----[ OPEN ]------------------------------------------
#
includes/functions_post.php
#
#-----[ FIND ]------------------------------------------
#
function prepare_post(&$mode, &$post_data, &$bbcode_on, &$html_on, &$smilies_on, &$error_msg, &$username, &$bbcode_uid, &$subject, &$message, &$poll_title, &$poll_options, &$poll_length)
#
#-----[ REPLACE WITH ]------------------------------------------
#
function prepare_post(&$mode, &$post_data, &$bbcode_on, &$html_on, &$smilies_on, &$error_msg, &$username, &$bbcode_uid, &$subject, &$message, &$poll_title, &$poll_options, &$poll_length, &$topic_title)
#
#-----[ FIND ]------------------------------------------
#
else if ($mode == 'newtopic' || ($mode == 'editpost' && $post_data['first_post']))
{
$error_msg .= (!empty($error_msg)) ? '<br />' . $lang['Empty_subject'] : $lang['Empty_subject'];
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
else if ($mode == 'reply' && empty($subject))
{
$subject = htmlspecialchars(trim($topic_title));
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
Wenn Du alternativ Deine Benutzer zwingen willst, ein Betreff anzugeben, kannst Du in der includes/functions_post.php folgendes machen:
Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------
#
includes/functions_post.php
#
#-----[ FIND ]------------------------------------------
#
else if ($mode == 'newtopic' || ($mode == 'editpost' && $post_data['first_post']))
#
#-----[ REPLACE WITH ]------------------------------------------
#
else
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
nur läufst Du dann Gefahr, dass Deine Nutzer Dir irgendwelchen Müll darein schreiben, weil sie genervt sind.
Alternativ könntest Du noch das Subject bei einer Antwort standardmäßig mit dem Thementitel im Formular ausfüllen, und wenn der Nutzer mag, kann er dann ja die Überschrift editiern. Dazu machst Du folgendes:
Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------
#
posting.php
#
#-----[ FIND ]------------------------------------------
#
//
// Output the data to the template
//
#
#-----[ BEFORE, ADD ]------------------------------------------
#
if (empty($subject) && $mode != 'newtopic')
{
$subject = $post_info['topic_title'];
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
Hoffe mal, das hilft was weiter.
Viele Grüsse,
Carsten