Seite 2 von 3

Verfasst: 30.03.2006 15:00
von StarWolf3000
war aber fast richtig:

Code: Alles auswählen

$lang['Today_at'] = "<b>Heute um %s</b>"; // %s is the time
so und nicht anders

Verfasst: 30.03.2006 16:15
von all-around-board
Hey, danke, hat Super geklappt! Ist es jetzt auch noch möglich, das fettgeschriebene jetzt auch noch farbig (gelb) zu machen? Wie sieht dann der Code aus, kenn mich damit net aus? mfG

Verfasst: 14.05.2006 15:33
von all-around-board
*Thread wieder hochzieh*

Wie kann ich diese Zeile "heute" farbig anzeigen lassen, wie gesagt, das ist der Code:

Code: Alles auswählen

// MOD - TODAY AT - BEGIN
$lang['Today_at'] = "<b>Heute</b> %s"; // %s is the time
$lang['Yesterday_at'] = "Gestern um %s"; // %s is the time
// MOD - TODAY AT - END

Verfasst: 14.05.2006 15:44
von Markus67
Hi ...
// 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
Markus

Verfasst: 28.06.2006 23:37
von Dominik Müller
Bräuchte hier bei mal Hilfe. In der Install steht:
#
#-----[ FIND ]-----------------------------------
#
$last_post = $last_post_time . '<br />';

#
#-----[ REPLACE WITH ]-----------------------------------
#

// OLD
// $last_post = $last_post_time . '<br />';
//
// 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 . '<br />';
}
// MOD - TODAY AT - END
Aber bei mir sieht der Bereich so aus:
//
// Censor topic title
//
if ( count($orig_word) )
{
$topic_title = preg_replace($orig_word, $replacement_word, $topic_title);
$topic_title2 = preg_replace($orig_word, $replacement_word, $topic_title2);
}

if (strlen($topic_title)>27) {
$topic_title = substr($topic_title,0,24) . '...';
}


$last_post_time = create_date($board_config['default_dateformat'], $forum_data[$j]['post_time'], $board_config['board_timezone']);
$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>';
$last_post .= $last_post_time . '&nbsp;<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'] . '&nbsp;';
$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> ';
// Begin Simple Subforums MOD
$last_post_sub = '<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="' . ($unread_topics ? $images['icon_newest_reply'] : $images['icon_latest_reply']) . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';
$last_post_time = $forum_data[$j]['post_time'];
// End Simple Subforums MOD
}
else
{
$last_post = $lang['No_Posts'];
$last_post_sub = '<img src="' . $images['icon_minipost'] . '" border="0" alt="' . $lang['No_Posts'] . '" title="' . $lang['No_Posts'] . '" />';
$last_post_time = 0;
}

if ( count($forum_moderators[$forum_id]) > 0 )
{
$l_moderators = ( count($forum_moderators[$forum_id]) == 1 ) ? $lang['Moderator'] : $lang['Moderators'];
$moderator_list = implode(', ', $forum_moderators[$forum_id]);
}
else
{
$l_moderators = '&nbsp;';
$moderator_list = '';
}
Was soll ich da machen?

Verfasst: 29.06.2006 10:20
von all-around-board
Markus67 hat geschrieben:Hi ...
// 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
Markus
Also das geht auch nicht! Kommt diese Fehlermeldung:

Parse error: parse error, unexpected T_VARIABLE in ***********lang_german/lang_main.php on line 1245

Verfasst: 29.06.2006 10:31
von Markus67
Hi ...

das sollte aber schon so funktionieren ... verlinke doch mal bitte die lang_main.php als txt-Datei.
KB:datei

Markus

Verfasst: 29.06.2006 11:09
von all-around-board
http://www.all-around-board.de/textfiles/lang_main.txt

Ist jetzt wieder ursprünglich ohne die Farbe. mfG

Verfasst: 29.06.2006 11:31
von Simlau

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

Verfasst: 29.06.2006 12:04
von Dominik Müller
Kann mir auch jemand helfen?!? :P