habe in der viewtopic.php folgendes hinzugefügt:
(keine Garantie auf ev. Schäden / die nachfolgenden Edits habe ich nur durch Duchsehen der Datei aufgelistet, hoffe, dass ich nix übersehen habe)
find:
Code: Alles auswählen
// Configure style, language, etc.
$user->setup('viewforum', $forum_data['forum_style']);
after, add:
Code: Alles auswählen
if ( $forum_data['forum_style'] == 13 )
{
$erstes_posting_text = 1;
}
find:
Code: Alles auswählen
// Grab all topic data
$rowset = $announcement_list = $topic_list = $global_announce_list = array();
$sql_array = array(
'SELECT' => 't.*',
'FROM' => array(
TOPICS_TABLE => 't'
),
'LEFT_JOIN' => array(),
);
after, add:
Code: Alles auswählen
# Zusatz für erstes Posting
if ( $erstes_posting_text == 1)
{
$sql_array['LEFT_JOIN'][] = array(
'FROM' => array(POSTS_TABLE => 'p'),
'ON' => "t.topic_first_post_id = p.post_id"
);
$sql_array['SELECT'] .= ', p.*';
}
find:
Code: Alles auswählen
// SQL array for obtaining topics/stickies
$sql_array = array(
'SELECT' => $sql_array['SELECT'],
'FROM' => $sql_array['FROM'],
'LEFT_JOIN' => $sql_array['LEFT_JOIN'],
'WHERE' => $sql_where . '
AND t.topic_type IN (' . POST_NORMAL . ', ' . POST_STICKY . ")
$sql_approved
$sql_limit_time",
'ORDER_BY' => 't.topic_type ' . ((!$store_reverse) ? 'DESC' : 'ASC') . ', ' . $sql_sort_order,
);
das " ', ' . $sql_sort_order, " in der letzten Zeile muss auch dazu, dann es dann so aussieht wie hier unter "find"!!
BEFORE, add:
Code: Alles auswählen
if ( $erstes_posting_test == 1)
{
$sql_sort_order = " t.topic_time DESC";
}
find:
Code: Alles auswählen
// Generate all the URIs ...
$view_topic_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . (($row['forum_id']) ? $row['forum_id'] : $forum_id) . '&t=' . $topic_id);
$topic_unapproved = (!$row['topic_approved'] && $auth->acl_get('m_approve', $forum_id)) ? true : false;
$posts_unapproved = ($row['topic_approved'] && $row['topic_replies'] < $row['topic_replies_real'] && $auth->acl_get('m_approve', $forum_id)) ? true : false;
$u_mcp_queue = ($topic_unapproved || $posts_unapproved) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=queue&mode=' . (($topic_unapproved) ? 'approve_details' : 'unapproved_posts') . "&t=$topic_id", true, $user->session_id) : '';
after, add:
Code: Alles auswählen
#erstes Posting Text
#-----------------
if ( $erstes_posting_text == 1)
{
include_once($phpbb_root_path . 'includes/bbcode.' . $phpEx);
$bbcode_bitfield = '';
$bbcode = new bbcode(base64_encode($row['bbcode_bitfield']));
// Parse the message and subject
$post_text = censor_text($row['post_text']);
// Second parse bbcode here
if ($row['bbcode_bitfield'])
{
$bbcode->bbcode_second_pass($post_text, $row['bbcode_uid'], $row['bbcode_bitfield']);
}
$post_text = str_replace("\n", '<br />', $post_text);
// maximum Länge
#$post_text = ( utf8_strlen($post_text) > 100 )? (utf8_substr($post_text,0,100) . '...') : ($post_text);
// Always process smilies after parsing bbcodes
$post_text = smiley_text($post_text);
}
####
die "maximale Länge funzt zwar, wenn man das "#" wegmacht, aber es bricht auch mitten in URL's etc. um, sodaß dann der Style darunter leidet!
find:
Code: Alles auswählen
'S_TOPIC_TYPE_SWITCH' => ($s_type_switch == $s_type_switch_test) ? -1 : $s_type_switch_test,
after, add:
Code: Alles auswählen
'FIRST_POST_TEXT' => $post_text,
'FIRST_POST_ID' => $row['topic_first_post_id'])
dies sind auch die variablen, die Du in das/die Template einfügen musst.
Viel Erfolg!