Seite 2 von 2

Verfasst: 03.03.2004 12:50
von Jessica
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:

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 ---
Dann ändere ich

Code: Alles auswählen

$topic_time = create_date($board_config['news_time_format'], $news[$i]['topic_time'], $board_config['board_timezone']);
in

Code: Alles auswählen

$topic_time = create_date($board_config['news_time_format'], $news[$i]['comment_time'], $board_config['board_timezone']);
Und dann ändere ich das:

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
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

Code: Alles auswählen

AND p.post_id = t.topic_first_post_id
AND p2.post_id = t.topic_last_post_id
oder

Code: Alles auswählen

AND p.post_id = t.topic_last_post_id
AND p2.post_id = t.topic_last_post_id
stehen?

Vielen Dank für deine Mühe!!
Jessica

Verfasst: 03.03.2004 13:21
von Acid
Wenn du willst, das weiterhin die News beim Aufklappen angezeigt wird, anstatt der letzte Kommentar, dann bräuchtest du die Änderung von netzmeister (das erste) nicht machen.