Seite 2 von 2

Verfasst: 03.07.2004 10:08
von haba
Schade, ich habe gedacht hier könnte mir jemand helfen?!

Verfasst: 03.07.2004 10:46
von chaotix
Habe das gleiche Problem wie Du .

Ich habe jetzt einfach in den Color_Groups die Farben so definiert, wie sie bei den Users_of_the_day ausgegeben weden.

Obwohl bei den Color-Groups die Farbe "orange" nicht expliziet angegeben ist, nimmt der Mod sie trotzdem.

Mir stellt sich nun auch noch das Problem, das sich der Color_Group Mod überhaupt nicht mit dem last_post_topic_index verträgt.

Die Anweisung lautet dort :

#
#-----[ ACTION Find ]------------------[phpBB 2.0.5]-----------------------
#
if ( $forum_data[$j]['forum_last_post_id'] )
{
$last_post_time = create_date($board_config['default_dateformat'], $forum_data[$j]['post_time'], $board_config['board_timezone']);

$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>';
}
In meiner index.php steht nun durch den Color_Groups aber was anderes :

if ( $forum_data[$j]['forum_last_post_id'] )
{
$last_post_time = create_date($board_config['default_dateformat'], $forum_data[$j]['post_time'], $board_config['board_timezone']);

$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'] . ' ' ) :
color_group_colorize_name($forum_data[$j]['user_id']);

$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>';
}
Auch hier habe ich schon alles möglich versucht - aber keinen Plan, wie ich die beiden zusammenbringe.

Gruss