Verfasst: 03.03.2004 12:50
Also ich hab das mal getestet, aber das Ganze war für mich nun etwas verwirrend und momentan bekomme ich es hin, dass entweder das Datum des Kommentars angezeigt wird oder beim Aufklappen der Text des ersten Beitrags, aber beides irgendwie nicht.
Daher nochmal meine Nachfrage:
Ich mache zuerst das:
Dann ändere ich
in
Und dann ändere ich das:
Soweit richtig? Wobei AND p.post_id = t.topic_first_post_id ja gar nicht mehr existiert, da schon mit AND p.post_id = t.topic_last_post_id ersetzt wurde. Soll daher dort nun
oder
stehen?
Vielen Dank für deine Mühe!!
Jessica
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