Daher nochmal meine Nachfrage:
Ich mache zuerst das:
Code: Alles auswählen
#--- ÖFFNE ---
includes/news.php
#--- FINDE ---
AND p.post_id = t.topic_first_post_id
#--- ERSETZE MIT ---
AND p.post_id = t.topic_last_post_id
#--- SAVE/CLOSE ---
Code: Alles auswählen
$topic_time = create_date($board_config['news_time_format'], $news[$i]['topic_time'], $board_config['board_timezone']);
Code: Alles auswählen
$topic_time = create_date($board_config['news_time_format'], $news[$i]['comment_time'], $board_config['board_timezone']);
Code: Alles auswählen
#
#--- [ FINDE (nur ein Auszug) ]---
#
$sql = "SELECT t.topic_id
FROM " . FORUMS_TABLE . " f
WHERE f.forum_news = '" . TRUE . "'
AND t.forum_id = f.forum_id
AND p.topic_id = t.topic_id
AND p.post_id = t.topic_first_post_id
#
#--- [ FINDE in diesem Codeblock ]---
#
pt.bbcode_uid
#
#--- [ DANACH EINFÜGEN ]---
#
, p2.post_time AS comment_time
#
#--- [ FINDE in diesem Codeblock ]---
#
" . POSTS_TEXT_TABLE . " pt
#
#--- [ DANACH EINFÜGEN ]---
#
, ". POSTS_TABLE ." p2
#
#--- [ FINDE in diesem Codeblock ]---
#
AND p.post_id = t.topic_first_post_id
#
#--- [ DARUNTER EINFÜGEN ]---
#
AND p2.post_id = t.topic_last_post_id
Code: Alles auswählen
AND p.post_id = t.topic_first_post_id
AND p2.post_id = t.topic_last_post_id
Code: Alles auswählen
AND p.post_id = t.topic_last_post_id
AND p2.post_id = t.topic_last_post_id
Vielen Dank für deine Mühe!!
Jessica