Achtung: funktioniert nur im "kompakten Block Style"! Änderungen:
- Der Link geht direkt auf den letzten Beitrag des Themas (statt auf den Ersten)
- Der Autor des letzten Posts wird angezeigt (nicht Themenersteller) + Link auf das Profil
- Die Zeit des letzten Beitrags wird angezeigt (nicht Startzeit des Themas)
Öffne /portal/includes/functions.php
suche:
Code: Select all
$sql = 'SELECT
t.forum_id,
t.topic_id,
t.topic_last_post_id,
t.topic_time,
t.topic_title,
t.topic_attachment,
t.topic_views,
t.poll_title,
t.topic_replies,
t.forum_id,
t.topic_poster,
u.username,
u.user_id,
u.user_type,
u.user_colour,
p.post_id,
p.post_text,
p.post_attachment,
p.enable_smilies,
p.enable_bbcode,
p.enable_magic_url,
p.bbcode_bitfield,
p.bbcode_uid
FROM
' . TOPICS_TABLE . ' AS t,
' . USERS_TABLE . ' AS u,
' . POSTS_TABLE . ' AS p
WHERE
' . $topic_type . '
' . $from_forum . '
' . $post_time . '
t.topic_poster = u.user_id AND
t.topic_first_post_id = p.post_id AND
t.topic_status <> 2 AND
t.topic_approved = 1Code: Select all
$sql = 'SELECT
t.forum_id,
t.topic_id,
t.topic_last_post_id,
t.topic_last_post_time,
t.topic_title,
t.topic_attachment,
t.topic_views,
t.poll_title,
t.topic_replies,
t.forum_id,
t.topic_last_poster_id,
u.username,
u.user_id,
u.user_type,
u.user_colour,
p.post_id,
p.post_text,
p.post_attachment,
p.enable_smilies,
p.enable_bbcode,
p.enable_magic_url,
p.bbcode_bitfield,
p.bbcode_uid
FROM
' . TOPICS_TABLE . ' AS t,
' . USERS_TABLE . ' AS u,
' . POSTS_TABLE . ' AS p
WHERE
' . $topic_type . '
' . $from_forum . '
' . $post_time . '
t.topic_last_poster_id = u.user_id AND
t.topic_first_post_id = p.post_id AND
t.topic_status <> 2 AND
t.topic_approved = 1Code: Select all
$posts[$i]['topic_time'] = $user->format_date($row['topic_time']); Code: Select all
$posts[$i]['topic_time'] = $user->format_date($row['topic_last_post_time']); suche:
Code: Select all
<img src="{T_THEME_PATH}/images/arrow_right.gif" alt="»"/>
<a href="{news_row.U_VIEW_COMMENTS}"><strong style="font-size:1.1em;">{news_row.TITLE}</strong></a>
<br style="clear:both" />
<span style="float: left;">
<a href="{news_row.U_VIEW_COMMENTS}" title="{L_VIEW_COMMENTS}"><span style="font-size:0.9em;"><em>{L_COMMENTS}: {news_row.REPLIES}</em></span></a>
<span style="font-size:0.9em;"><em>{L_TOPIC_VIEWS}: {news_row.TOPIC_VIEWS}</em></span>
</span>
<span style="float: right;">{news_row.TIME}</span>
<br />Code: Select all
<span style="float: left;"><img src="{T_THEME_PATH}/images/arrow_right.gif" alt="»"/>
<!-- <a href="{news_row.U_VIEW_COMMENTS}"><strong style="font-size:1.1em;">{news_row.TITLE}</strong></a> -->
<a href="{news_row.U_LAST_COMMENTS}" title="Zum neuesten Beitrag springen"><strong style="font-size:1.1em;">{news_row.TITLE}</strong></a></span>
<span style="float: right;">Letzter Beitrag von: <strong><a href="{news_row.U_USER_PROFILE}">{news_row.POSTER}</a></strong></span>
<br style="clear:both" />
<span style="float: left;">
<a href="{news_row.U_VIEW_COMMENTS}" title="Zum ersten Beitrag springen"><span style="font-size:0.9em;"><em>{L_COMMENTS}: {news_row.REPLIES}</em></span></a>
<span style="font-size:0.9em;"><em>{L_TOPIC_VIEWS}: {news_row.TOPIC_VIEWS}</em></span>
</span>
<span style="float: right;">am <strong>{news_row.TIME}</strong></span>
<hr />
