Seite 1 von 1
Frage zu Last Post Topic Mod
Verfasst: 05.02.2005 00:34
von darot
Hi....
Wollte mal fragen ob es irgendwie möglich ist, dass wenn man auf der Indexseite auf den letzten Beitrag klickt das Thema von anfang an gezeigt wird und nicht der letzte Beitrag in diesem Thema.
Dafür wenn man neben den Autor klickt der letzte Beitrag angezeigt wird.
Gruss,darot
Verfasst: 05.02.2005 14:41
von punkface
Hallo..
Meinst du den MOD:
http://phpbbhacks.com/download/3349 ?
Wenn ja, versuch mal folgendes:
index.php
suche
Code: Alles auswählen
default:
$sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id, t.topic_title, t.topic_last_post_id " .
ersetzte mit
Code: Alles auswählen
default:
$sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id, t.topic_id, t.topic_title, t.topic_last_post_id " .
suche
Code: Alles auswählen
$last_post = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' .
$forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '" title="' . $topic_title2 . '">' . $topic_title . '</a><br>';
ersetzte mit
Code: Alles auswählen
$last_post = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . '=' . $forum_data[$j]['topic_id']). '" title="' . $topic_title2 . '">' . $topic_title . '</a><br>';
gruß
Verfasst: 05.02.2005 14:54
von darot
Hi....
Ja genau das meinte ich.
Vielen Dank es funktioniert.
Wie kann ich noch einstellen das den letzten Beitrag anzeigen neben dem Autor und nicht neben dem Datum erscheint?
Gruss, darot
Verfasst: 05.02.2005 15:00
von punkface
suche
Code: Alles auswählen
$last_post .= $last_post_time . ' <a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '"></a><br>' . $lang['by'] . ' ';
$last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $forum_data[$j]['user_id']) . '">' . $forum_data[$j]['username'] . '</a> ';
ersetzte mit
Code: Alles auswählen
$last_post .= $last_post_time . '<br>';
$last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $forum_data[$j]['user_id']) . '">' . $forum_data[$j]['username'] . '</a> ';
$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '"></a><br>' . $lang['by'] . ' ';
funktioniert's?
gruß
Verfasst: 05.02.2005 15:45
von darot
Hi...
Nein hat leider nicht funktioniert.
Das Datum steht nicht mehr nur noch letzten Beitrag anzeigen und der Autor.