hey kein Streß meine Physik Hausaufgabe will gemacht werden
also bauen wir mal das SQL Statement ein bissel um:
suche nach
Code: Alles auswählen
$sql = "SELECT topic_id,topic_time,topic_title,topic_last_post_id,forum_id
FROM " . TOPICS_TABLE . "
WHERE forum_id NOT IN (" . $except_forum_id . ") AND topic_status <> 2
ORDER BY topic_last_post_id DESC
LIMIT 0," . $CFG['number_recent_topics'];
und ersetze dies durch
Code: Alles auswählen
$sql = "SELECT t.topic_id,t.topic_time,t.topic_title,t.topic_last_post_id,t.forum_id,p.post_time
FROM " . TOPICS_TABLE . " t, " . POSTS_TABLE . " p
WHERE t.forum_id NOT IN (" . $except_forum_id . ") AND t.topic_status <> 2 AND t.topic_last_post_id = p.post_id
ORDER BY topic_last_post_id DESC
LIMIT 0," . $CFG['number_recent_topics'];
suche nach
Code: Alles auswählen
'LAST_POST_TIME' => create_date($board_config['default_dateformat'], $recent_topic_row[$i]['topic_time'], $board_config['board_timezone']),
und ersetze es durch
Code: Alles auswählen
'LAST_POST_TIME' => create_date($board_config['default_dateformat'], $recent_topic_row[$i]['post_time'], $board_config['board_timezone']),
jetzt aber *hoff*