Code: Alles auswählen
// MOD - TODAY AT - BEGIN
$lang['Today_at'] = "<font color='#FF0000'><b>Heute</b></font> %s"; // %s is the time
$lang['Yesterday_at'] = "Gestern um %s"; // %s is the time
// MOD - TODAY AT - END
Code: Alles auswählen
// MOD - TODAY AT - BEGIN
$lang['Today_at'] = "<font color='#FF0000'><b>Heute</b></font> %s"; // %s is the time
$lang['Yesterday_at'] = "Gestern um %s"; // %s is the time
// MOD - TODAY AT - END
Versuchs doch einfach mal .Dominik Müller hat geschrieben:Kann mir auch jemand helfen?!?
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>';
Code: Alles auswählen
if ( $board_config['time_today'] < $forum_data[$j]['post_time'])
{
$last_post = sprintf($lang['Today_at'], create_date($board_config['default_timeformat'], $forum_data[$j]['post_time'], $board_config['board_timezone'])) . '<br />';
}
else if ( $board_config['time_yesterday'] < $forum_data[$j]['post_time'])
{
$last_post = sprintf($lang['Yesterday_at'], create_date($board_config['default_timeformat'], $forum_data[$j]['post_time'], $board_config['board_timezone'])) . '<br />';
}
else
{
$last_post = $last_post_time . '<br />';
}
Code: Alles auswählen
$last_post = $last_post_time . '<br />';
Code: Alles auswählen
$last_post .= $last_post_time . ' ' . $lang['by'] . ' ';
Code: Alles auswählen
// OLD
// $last_post .= $last_post_time . ' ' . $lang['by'] . ' ';
//
// MOD - TODAY AT - BEGIN
//
if ( $board_config['time_today'] < $forum_data[$j]['post_time'])
{
$last_post = sprintf($lang['Today_at'], create_date($board_config['default_timeformat'], $forum_data[$j]['post_time'], $board_config['board_timezone'])) . '<br />';
}
else if ( $board_config['time_yesterday'] < $forum_data[$j]['post_time'])
{
$last_post = sprintf($lang['Yesterday_at'], create_date($board_config['default_timeformat'], $forum_data[$j]['post_time'], $board_config['board_timezone'])) . '<br />';
}
else
{
$last_post .= $last_post_time . ' ' . $lang['by'] . ' ';
}
// MOD - TODAY AT - END